Abstract
Every iOS app needs a user interface, but that user interface won’t do anything until you write Swift code to make it work. While you could write all your code in a single file, it’s better to divide your code into files where each file contains related code. A simple app might only contain a handful of files, but a more complicated app could contain dozens or even hundreds of separate files that contain related Swift code. Within each file, you can further organize your Swift code into separate functions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Wallace Wang
About this chapter
Cite this chapter
Wang, W. (2019). Writing Swift Code. In: Beginning iPhone Development with Swift 5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4865-2_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4865-2_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4864-5
Online ISBN: 978-1-4842-4865-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)