Key Features
- Create robust applications by building a strong foundation in the Swift Language
- Utilize Swift 3 on the embedded Linux platform for IoT and Robotic projects
- Build more flexible and high-performing applications on desktop, server, and embedded Linux platforms
Book Description
Swift is a modern, fast, and safe programming language created by Apple. Writing Swift is interactive and fun, the syntax is concise yet expressive, and the code runs lightning-fast. Swift's move to open source has been embraced with open arms and has seen increased adoption in the Linux platform.
Our book will introduce you to the Swift language, further delving into all the key concepts you need to create applications for desktop, server, and embedded Linux platforms. We will teach you the best practices to design an application with Swift 3 via design patterns and Protocol-Oriented Programming.
Further on, you will learn how to catch and respond to errors within your application. When you have gained a strong knowledge of using Swift in Linux, we'll show you how to build IoT and robotic projects using Swift on single board computers. By the end of the book, you will have a solid understanding of the Swift Language with Linux and will be able to create your own applications with ease.
What you will learn
- Install Swift on the Linux platform
- Explore the power of the Swift language
- Get to know the proper design techniques
- Understand Swift's new Core Library
- Implement popular design patterns with Swift
- Integrate C libraries with Swift
- Using Swift on Single-Board Computers
- Learn how to add concurrency to your application with Grand Central Dispatch
- Learn how to work with Swift Generics
- Learn how to use the Protocol-Oriented design paradigm
About the Author
Jon Hoffman has over 20 years of experience in the field of information technology. Over these 20 years, Jon has worked in the areas of system administration, network administration, network security, application development, and architecture. Currently, Jon works as a senior software engineer for Syn-Tech Systems.
Jon has developed extensively for the iOS platform since 2008. This includes several apps that he has published in the App Store, apps that he has written for third parties, and numerous enterprise applications. What really drives Jon is the challenges that the field of information technology provides and there is nothing more exhilarating to him than overcoming a challenge.
You can follow Jon on his blogs: http://masteringswift.blogspot.com and http://myroboticadventure.blogspot.com.
Some of Jon's other interests are watching baseball (Go Sox) and basketball (Go Celtics). Jon also really enjoys Tae Kwon Do where he and his oldest daughter Kailey earned their black belts together early in 2014, Kim (his wife) earned her black belt in December 2014, and his youngest daughter is currently working towards her black belt.
Table of Contents
- Taking the First Steps with Swift
- Learning About Variables, Constants, Strings, and Operators
- Using Swift Collections and the Tuple Type
- Control Flow and Functions
- Classes and Structures
- Using Protocols and Protocol Extensions
- Protocol-Oriented Design
- Writing Safer Code with Error Handling
- Custom Subscripting
- Using Optional Types
- Working with Generics
- Working with Closures
- Using C Libraries with Swift
- Concurrency and Parallelism in Swift
- Swifts Core Libraries
- Swift on Single Board Computers
- Swift Formatting and Style Guide
- Adopting Design Patterns in Swift