Reputation: 1200
Currently I am trying to do a plugin to integrate third party native SDK with Flutter and I'm not really familiar with Swift.
In the third party SDK, there is a line of code that need to be implemented:
present(VC, animated: true, completion: nil)
When I tried to run, there's an error cannot find 'present' in scope
.
I tried to use self.present
but still didn't work.
Upvotes: 2
Views: 1916
Reputation: 101
You can try use the rootViewController and show it in your custom view.
UIApplication.shared.keyWindow?.rootViewController?.present(...)
Upvotes: 1