52.8 Using MyScrollView
The final step in this example is to check that MyScrollView can be used from within SwiftUI. To achieve this, load the ContentView.swift file into the editor and modify it so that it reads as follows:
.
.
struct ContentView: View {
var body: some View {
MyScrollView(text: "UIView in SwiftUI")
}
}
.
.
Use Live Preview to test that the view works as expected.