Learn How to Program with Swift 5.7!
Swift is the easiest way to get started developing on Apple's platforms: iOS, iPadOS, macOS, watchOS and tvOS. In this book, you'll learn the basics of Swift from getting started with playgrounds to simple operations to building your own types. Everything you'll learn is platform-neutral; you'll have a firm understanding of Swift type system and how you can use them to bend problems to your will by the end of this book.
Who This Book Is For:
This book is for complete beginners to Swift. No prior programming experience is necessary!
Topics Covered in The Swift Apprentice: Fundamentals
- Playground Basics: Learn about the coding environment where you can quickly and easily try out your code as you learn.
- Basic Types: Numbers and strings are the basic kinds of data in any app - learn how to use them in Swift.
- Flow Control: Your code doesn't always run straight through - learn how to use conditions and decide what to do.
- Functions: Group your code together into reusable chunks to run and pass around.
- Collection Types: Discover the many ways Swift offers to store and organize data into collections.
- Structures, Enumerations & Classes: The type system is how you organize code into meaningful, easy to understand units. You'll understand what type to use and when to use it to solve problems.
- Protocols & Generics: Define protocols to make your code more interface-based and compositional and generics to build families of strong, reusable types.
After reading this book and completing the included exercises and challenges, you'll have a solid understanding of Swift's fundamental building blocks and how you can use it to solve problems! You'll be ready to go Beyond the Basics and learn more advanced conce