No more essential coding for iOS apps. 🙅
Take it one step further and learn how to design your UI in a declarative way. 😎
You deserve to build responsive iOS apps with less code. 😉
And we have something to help you.
Meet SwiftUI with tutorials! 📘
Our SwiftUI by Tutorials book is here to build flexible and attractive declarative UIs for apps with much less coding using SwiftUI!
What excites us about SwiftUI is that it allows you to build modern, responsive UIs and animations for all Apple devices, not just iOS. So, whether you’re building apps for iOS, watchOS, tvOS, or other Apple platforms, you can use the same concise and natural language to describe your UI and make it look great wherever your code runs. 🤩
Who is this book for?
If you have experience with iOS and want to learn all about SwiftUI to build your app’s UI in a declarative and modern way, then this book is for you!
What’s in the book?
This updated SwiftUI edition of Tutorials starts with the basics of SwiftUI and moves on to advanced concepts like testing and animation.
Section I: Dive into SwiftUI
In this section, we start our SwiftUI journey with the necessary basics. You will learn about:
- Basic terminology in Swift
- How SwiftUI Makes Declarative Development Easy
- Creating reusable modifiers
- Testing and Debugging
Here’s a sneak peek at the main views grouped into Controls, Layout, Paint, and Other Views, along with modifiers for Controls, Effects, Layouts, Text, Images, and more.
Section II: Building Blocks in SwiftUI
In this section, we build on what we learned in Section I and start using SwiftUI in more complex and advanced apps.
- Introduction to Controls: Text and Images
- Controls and user input
- Stacks and containers
Next, let’s take a quick look at Kuchi, the language flashcard app we’ll be building to learn the above concepts.
Section III: State and Data Flow
In this section, you will learn how the user interface responds to data flow and state changes. You will learn about:
- Data binding to UI.
- Develop responsive UI updates with state management.
- An in-depth use of properties related to SwiftUI.
- Advanced input controls like calendar and color picker.
- Keep your information with App Storage.
- Gesture processing and custom gesture development.
- Use SwiftUI accessibility API properties to improve your app’s accessibility UI.
Here’s a sneak peek at the setup screen we’ll be building on top of our previous app, Kuchi.
Section IV: Explore and Display Data
In this section of the book, you’ll learn how to use SwiftUI to navigate through your app’s screens and display data on the screen. You will learn about:
- View sheets and notifications
And more! Here’s a sneak peek at the flight data app we’ll be building in this section to practice the above concepts.
Section V: UI Extensions
In this section of the book, you will advance your SwiftUI knowledge through complex interfaces that implement animations and custom graphics. You will learn about:
- Draw and Custom Graphics
- Animations and view transitions
- complex interface
And more! Next, let’s take a quick look at the custom graphics we’ll be building in this section.
Section VI: SwiftUI for macOS
In the final section of this book, you will learn how to implement everything you know about SwiftUI in a macOS desktop application. You will learn how to:
- Build Mac apps
- Convert iOS apps to macOS
In the first chapter of this section, let’s take a quick look at the Markdown Editor macOS app.
What do you need?
To follow along with this book you will need:
- running Mac macOS Monterrey (12.0) or later.
- Xcode 13 or later. Xcode is the main development tool for writing code in Swift. This version includes the Swift 5.5 Xcode Playground, so at least Xcode 13 is required. You can download the latest version of Xcode for free from the Mac App Store here. apple.co/1FLn51R.
How to get your own copy
You can get this book in two ways.
- Please purchase individually: If you want to build a custom library without a subscription, you can choose to purchase the books individually. Available now for just $59.99 in our online store.
- Get it as part of your Pro subscription.: Access videos and mobile development books in your Ultimate Pro subscription, including SwiftUI in Tutorials! 1 year subscription now 20% off regular monthly subscriptions. It’s just the best investment for a development career.
Hope you enjoy this book! If you have any questions, please feel free to contact us.
Hello to our team! 👋
Meet the wonderful people who contributed to this book…
Antonio Bello [Author]: Antonio Bello is the author of this book. Antonio has devoted most of his life to writing code and has gained a lot of experience in multiple languages and technologies. A few years ago he fell in love with iOS development, and since then he’s always open to challenges and playing with new toys, but that’s what he’s been working on mostly since then. He believes that reputation is the most important skill in his profession and that “can’t” actually means “can do it, but it’s not economically convenient”. When he’s not working, he’ll probably play drums or make songs in his small but well-equipped home recording studio.
Bill Morefield [Author]: Bill Morefield is the author of this book. Bill spent most of his professional life writing code. At some point, he worked in almost any language other than COBOL. He bought his first Apple computer to learn iPhone programming and fell in love with the platform. He manages the web and mobile development team at the University of Tennessee, where he still writes code. When not connected to a keyboard, he enjoys hiking and taking pictures.
Audrey Tam [Author]: Audrey Tam is the author of this book. A retired computer science scholar, she is a technology generalist with the expertise to transform new knowledge into learning materials. Audrey currently teaches short courses on iOS app development to non-programmers and attends almost every Melbourne Cocoaheads monthly meeting. She also enjoys long train trips, knitting and trekking in the Australian wilderness.
Sarah Reykelt [Author]: Sarah Reichelt is the author of this book. She fell in love with having computers do what she told them a long time ago and never stopped loving it. She is inspired by Swift and now SwiftUI to learn a new approach to this, and is an avid evangelist for Mac app development. Sarah likes coffee, puzzles, reading, and cooking when she’s not using the computer. The day doesn’t start until you drink your first coffee and do a crossword puzzle!
Pablo Matteo [Final Pass Editor]: Pablo Mateo is the final pass editor for this book. He is the delivery manager of one of the largest banks in the world and is also the founder and CTO of a technology development company in Madrid. Although initially started as a creative art director, his expertise is focused on web and mobile app development. He worked for many years at the prestigious Technical School in Madrid (CICE) as Head of the Master’s Degree in iOS and Android Mobile Development. He has a master’s degree in artificial intelligence and machine learning and is currently studying quantum computing at MIT.
Gustavo Granya [Tech Editor]: Gustavo Graña is the technical editor of this book. He started coding 20 years ago to solve everyday problems he faced for communication in the early 2000s, initially as an mIRC scripting language but quickly developed into a broader interest in other technical fields. He has been working with Mobile since 2010 and Swift since 2014. He is motivated by his efforts to influence everyday life with technology and make the lives of others easier. Outside the realm of technology, Gustavo always wants to know how to live a healthier life.
Jeremy Greenwood [Tech Editor]: Jeremy Greenwood is the technical editor of this book. He has over 20 years of experience in technology, build, test and digital product innovation. His innate curiosity to understand every part of his technology has given him expertise at every layer of the stack, from hardware circuits and embedded protocols to visual experiences. Jeremy is passionate about moving product ideas from drawing boards to digital screens and finds joy in the opportunity to influence users through software. He is passionate about details that elevate projects from the ordinary to the extraordinary. When not working on software, Jeremy often dreams of creative solutions to everyday problems in the woods on the trail.
Start reading for free today
The SwiftUI edition of these newly updated Tutorials has been released. Besides, you can read this book for free.
The SwiftUI version of this updated tutorial was automatically added to the collection of all Ultimate Pro subscribers.
On behalf of the book team, I hope this book will help you learn SwiftUI and transition from an imperative coding approach to a declarative approach!