ios - Adding a single swift file to an existing objective-c project -
I have a purpose-built project, I want to create a fast file in the project and use it to initialize visualization and To do the presentation is to give a sharp file. Note that I do not want to import the entire motion project just one quick file.
I have added "Import" to "MySwift-SWIFT H" and I can get anything on the web but none of them work.
To create a file, right-click on your project name and < Strong> Click 'New File' . . Then make sure that you are in the iOS section , scroll through the categories at that point (I believe you can find it in 'source') and 'Swift file Click '. .
Name whatever you want and make sure it is a subdivision of UIViewController Then change the class to enroll in your storyboard, in the inspector .
Hope it helps,
Will
Comments
Post a Comment