Everything you need to get started coding an iOS application in Swift.
- With your Apple ID, make an Apple developer account. It is free to use Xcode and build apps locally- you are only required
to pay an annual fee if you wish to publish on the App Store.
- Go to
developer.apple.com
and go to theAccount
tab. - If you skip this step, you will see a "failure to create provisioning profile" error in Signing in your project.
- Go to
- Go to the App Store and download Xcode. You will need your Apple ID and password.
- If your OS isn't up to date, Xcode may fail to install without telling you why. It is most likely because
the latest Xcode is not supported on your OS. You can get a previous version of Xcode by going to
developer.apple.com/downloads
.
- If your OS isn't up to date, Xcode may fail to install without telling you why. It is most likely because
the latest Xcode is not supported on your OS. You can get a previous version of Xcode by going to
This collection is organized into three tiers of information, based on how much time you may have.
- Use the Storyboard editor and its Outlets
- Install and use frameworks through Cocoapods
- Decode data from a file
- Design patterns, e.g. delegates, protocols
- Style Guide + Swiftlint
- Unit Testing with XCTest
- Bridging with Objective-C code
- Ray Wenderlich is the de facto authority on all things iOS - do yourself a favor and check out the guides and videos on https://www.raywenderlich.com.
- Should I go native or hybrid?
- How does Swift compare to other languages?
- Swift highlights:
- It has a clean and modern syntax
- offers seamless access to existing C and Objective-C code and frameworks
- is memory safe by default
- How popular is Swift?
- It is fairly high on the TIOBE index, updated monthly.
- Java vs. Swift vs. Python
- How object oriented is Swift?
- you can subclass classes, and you can override functions in subclasses, but enums and structs are not really OO
- Do I need to purchase an Apple developer account?
- You do not need a developer account to develop in Xcode and use the device simulator.
- A Developer account lets you run your app on a real device and publish to the app store.
- Why did you include style? Is style checking really that important?
- Fun fact, consistent indentation style is one of the most statistically significant indicators of low bug density
- Swiftlint helps enforce best practices.
- Can I please just download an example project and start there?
- In addition to the Storyboard tutorial and file decoding example above, here is a nice variety of 30 Example Projects
- How is the documentation?
- Pretty darn thorough: