On top of that, if the caller makes any changes to the text style, the text view will be refreshed and updated with the new text style. In this case, while you are typing in the text view, the method will be called and we will update the text of UITextView. The Content can be anything from a text field to scrollable content. It requires that we provide the Content that is a View type. Whenever there is a state change in SwiftUI, the framework automatically calls the updateUIView method to update the configuration of the view. To show a Navigation Bar using SwiftUI, we should use the NavigationView component that is responsible for this purpose. While the makeUIView method is responsible for creating and initializing the view object, the updateUIView method is responsible for updating the state of the UIKit view.
0 Comments
Leave a Reply. |