Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Swift Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Swift Second Edition

Learning Swift Second Edition

By : Andrew J Wagner
5 (1)
close
close
Learning Swift Second Edition

Learning Swift Second Edition

5 (1)
By: Andrew J Wagner

Overview of this book

Swift is Apple’s new programming language and the future of iOS and OS X app development. It is a high-performance language that feels like a modern scripting language. On the surface, Swift is easy to jump into, but it has complex underpinnings that are critical to becoming proficient at turning an idea into reality. This book is an approachable, step-by-step introduction into programming with Swift for everyone. It begins by giving you an overview of the key features through practical examples and progresses to more advanced topics that help differentiate the proficient developers from the mediocre ones. It covers important concepts such as Variables, Optionals, Closures, Generics, and Memory Management. Mixed in with those concepts, it also helps you learn the art of programming such as maintainability, useful design patterns, and resources to further your knowledge. This all culminates in writing a basic iOS app that will get you well on your way to turning your own app ideas into reality.
Table of Contents (14 chapters)
close
close
13
Index

What this book covers

Chapter 1, Introducing Swift, will take the reader through the process of installing Swift and running their first Swift program, in order to expose its power right away.

Chapter 2, Building Blocks - Variables, Collections, and Flow Control, introduces you to the various built-in mechanisms Swift has for representing complex information in expressive and accessible ways, with the help of a real-world example.

Chapter 3, One Piece at a Time - Types, Scopes, and Projects, introduces the tools necessary to closely model the real world with code. It will teach you how to define your own custom types using structures, classes, and enumerations. It also explores the concept of scope and access control.

Chapter 4, To Be or Not To Be - Optionals, focuses on a special and critical type in Swift, called optionals. It includes a detailed explanation of how optionals work and how they can be used, which turns a seemingly complex topic into a very intuitive concept.

Chapter 5, A Modern Paradigm - Closures and Functional Programming, introduces you to a new way of thinking about code called functional programming. We learn how Swift supports this technique and how we can apply it to our programs to make it even more understandable and expressive.

Chapter 6, Make Swift Work For You - Protocols and Generics, describes what generics and protocols are and how they can provide power and safety at the same time.

Chapter 7, Everything Is Connected - Memory Management, dives deeper into the inner-workings of Swift. We discuss how a computer stores information and how we can use that knowledge in combination with some new tools in Swift, to ensure that our code remains responsive and minimizes its effect on battery life.

Chapter 8, Paths Less Traveled – Error Handling, goes into gracefully handling error situations in Swift with error throwing and catching.

Chapter 9, Writing Code the Swift Way - Design Patterns and Techniques, introduces the reader to the art of programming by taking them through a number of specific design patterns that help reduce the complexity of code.

Chapter 10, Harnessing the Past - Understanding and Translating Objective-C, develops a basic understanding of Objective-C with a focus on how it compares to Swift. This allows the reader to make use of the vast resources that exist in Objective-C to help with their Swift development.

Chapter 11, A Whole New World - Developing an App, focuses on explaining the process of creating a real world iOS application, with the help of an example.

Chapter 12, What's Next? - Resources, Advice, and the Next Steps, discusses how to move forward to become the best app developer you possibly can. It provides a list of resources and advice the reader can use to continue their Swift and app development learning process.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY