I think this is a bit difficult to understand compared with the commonly used implementation. For example, It's does not need set some property in UIViewController for post data to next UIViewController when tap a button.
Swift
@IBAction func complete(_ sender: Any) {
let text = "some data"
let drawingViewController = DrawingViewController(text: text)
navigationController?.pushViewController(drawingViewController, true)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: