flutter 中導入swift

Important The plugin is written in Swift, so your project needs to have Swift support enabled. If you've created the project using flutter create -i swift [projectName] you are all set. If not, you can enable Swift support by opening the project with XCode, then choose File -> New -> File -> Swift File. XCode will ask you if you wish to create Bridging Header, click yes.git

The plugin supports Swift Version 4.2. Make sure you have this version set in your Build Settings -> SWIFT_VERSIONgithub

這個是我從multi_image_picker中找到的說明如何導入,測試成功,我新建了一個flutter swift的,第一種方法。swift

 

參考連接:https://github.com/Sh1d0w/multi_image_picker/blob/master/doc/initial-setup.md測試

相關文章
相關標籤/搜索