website
website copied to clipboard
iOS Platform Views page is UIKit only, no mention of SwiftUI
Page URL
https://docs.flutter.dev/platform-integration/ios/platform-views/
Page source
https://github.com/flutter/website/tree/main/src/content/platform-integration/ios/platform-views.md
Describe the problem
Platform Views page doesn't document how to integrate SwiftUI views and is UIKit only.
Expected fix
We should add support for SwiftUI and/or deprecating the UIKit flow.
Additional context
I will be able to advise on implementation.
I would like to fix this problem.
- [ ] I will try and fix this problem on docs.flutter.dev.
@jwill, there is a SwiftUI tab on that page, but it describes a UIKit solution. What is the correct approach here? Is the name of the tab wrong or just the content?
The tabs on the page are for using either Objective-C or Swift(the language) for the code to wire up the native view to Flutter.
However when it comes to the actual code being used in FLNativeView to implement that view, it is using iOS's older UI framework, UiKit. SwiftUI is the newer UI framework.
The tab and current content correct but there's the question of if we should show the newer framework as well.