I have a private document format for which I need to be able to draw the contents into a custom view.
I have seen that we can create a custom UIView and "plug" it into a SwiftUI app.
However, I have not been able to find how to insert the view into a scrollview and
- correctly size it's height depending on the size of the document to be displayed.
- request a redraw/layout on document size changes
In addition, I would need to know which functions should be overridden so that putting the view into a SwiftUI ScrollView will integrate correctly.
This will represent a graphical document for which the existing SwiftUI/UIView objects are not suited.
Where can I find the necessary information for doing this, please ?