Book Image

Learn Swift by Building Applications

By : Emil Atanasov, Giordano Scalzo, Emil Atanasov
Book Image

Learn Swift by Building Applications

By: Emil Atanasov, Giordano Scalzo, Emil Atanasov

Overview of this book

Swift Language is now more powerful than ever; it has introduced new ways to solve old problems and has gone on to become one of the fastest growing popular languages. It is now a de-facto choice for iOS developers and it powers most of the newly released and popular apps. This practical guide will help you to begin your journey with Swift programming through learning how to build iOS apps. You will learn all about basic variables, if clauses, functions, loops, and other core concepts; then structures, classes, and inheritance will be discussed. Next, you’ll dive into developing a weather app that consumes data from the internet and presents information to the user. The final project is more complex, involving creating an Instagram like app that integrates different external libraries. The app also uses CocoaPods as its package dependency manager, to give you a cutting-edge tool to add to your skillset. By the end of the book, you will have learned how to model real-world apps in Swift.
Table of Contents (14 chapters)
5
Adding Interactivity to Your First App

What this book covers

Chapter 1, Swift Basics – Variables and Functions, discusses the basics of the Swift language, starting from the A, B, and C.

Chapter 2, Getting Familiar with Xcode and Playgrounds, presents the Xcode—a free IDE that we will use when developing Swift. We shouldn't forget that Xcode is developed by Apple and that the playgrounds are the perfect place for learning Swift step by step.

Chapter 3, Creating a Minimal Mobile App, makes you examine the minimal mobile app and its structure. This is the basis of every iOS mobile app written in Swift.

Chapter 4, Structures, Classes, and Inheritance, covers the benefit of different data structures and how easily we can model a real-world problems.

Chapter 5, Adding Interactivity to Your First App, looks at the different ways to add interactivity to an app or how to interact with the user in the app.

Chapter 6, How to Use Data Structures, OOP, and Protocols, explores the data structures and different techniques to incorporate them in our solutions.

Chapter 7, Developing a Simple Weather App, focuses on how to build a real mobile app starting from the UI and displaying static data.

Chapter 8, Introducing CocoaPods and Project Dependencies, introduces the modern way of rapid development using various dependency managers of Swift libraries.

Chapter 9, Improving a Version of a Weather App, discusses about consuming information from the public API and displaying it in our Weather app.

Chapter 10, Building an Instagram-Like App, builds an app from the idea step by step starting with the design, defines the basic UI, and connects it with a real cloud service provider—Firebase.

Chapter 11, Instagram-Like App Continued, makes the app complete and functional so that it can look like a working product, ready to be shared with users.

Chapter 12, Contributing to an Open Source Project, takes you through the basics of contributing to an open source project.