How to access file included in app bundle in Swift?

后端 未结 7 1917
灰色年华
灰色年华 2020-11-30 05:46

I know there are a few questions pertaining to this, but they\'re in Objective-C.

How can I access a .txt file included in my app using Swift on

7条回答
  •  难免孤独
    2020-11-30 06:22

    Bundles can be written. You can use Bundle.main.path to overwrite file by adding it into Copy Bundles Resource.

提交回复
热议问题