SwiftUI Essentials - iOS Edition
eBook - ePub

SwiftUI Essentials - iOS Edition

  1. 813 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

SwiftUI Essentials - iOS Edition

Book details
Book preview
Table of contents
Citations

About This Book

Learn the ropes of application development for iOS 13Key Featuresā€¢ Take a guided tour of Xcode in SwiftUI development modeā€¢ Delve deep into Swift 5 with control flow, property wrappers, error handling, and moreā€¢ Work with UI design concepts such as modifiers, tabbed views, and UI navigationBook DescriptionBeginning with the basics, this book provides an outline of the steps necessary to set up an iOS development environment and introduces you to Swift Playgrounds so that you can learn and experiment with Swift.You'll begin with an introduction to the key concepts of SwiftUI and its architecture. You'll learn how to create custom SwiftUI views and combine them to create user interface layouts including how to use stacks, frames, and forms. As you progress, you'll learn how to handle data using state properties. You'll also learn how to use graphics, animation, transitions, and gestures in your user interface. The book finishes by explaining how to package an application and upload it to the App Store for publication.By the end of the book, you'll have all the necessary skills to develop your own applications for iOS 13 with SwiftUI, Swift 5, and Xcode 11.What you will learnā€¢ Install and configure Xcode 11ā€¢ Draw 2D graphicsā€¢ Work with SwiftUI views and subviewsā€¢ Integrate SwiftUI views into existing UIKit-based projectsā€¢ Design data-driven applicationsā€¢ Master the declarative syntax of SwiftUIWho This Book Is ForSwiftUI Essentials - iOS Edition is ideal for UI developers who want to use SwiftUI and Swift 5 to their advantage and improve their user interfaces. Some experience in UI development will help you easily understand the concepts explained in this book.

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access SwiftUI Essentials - iOS Edition by Neil Smyth in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Mobile Devices. We have over one million books available in our catalogue for you to explore.

Information

Year
2018
ISBN
9781951442064
Edition
1

1. Start Here

The goal of this book is to teach the skills necessary to build iOS 13 applications using SwiftUI, Xcode 11 and the Swift 5 programming language.
Beginning with the basics, this book provides an outline of the steps necessary to set up an iOS development environment together with an introduction to the use of Swift Playgrounds to learn and experiment with Swift.
The book also includes in depth chapters introducing the Swift 5 programming language including data types, control flow, functions, object-oriented programming, property wrappers and error handling.
An introduction to the key concepts of SwiftUI and project architecture is followed by a guided tour of Xcode in SwiftUI development mode. The book also covers the creation of custom SwiftUI views and explains how these views are combined to create user interface layouts including the use of stacks, frames and forms.
Other topics covered include data handling using state properties and both observable and environment objects, as are key user interface design concepts such as modifiers, lists, tabbed views, context menus and user interface navigation.
The book also includes chapters covering graphics drawing, user interface animation, view transitions and gesture handling.
Chapters are also provided explaining how to integrate SwiftUI views into existing UIKit-based projects and explains the integration of UIKit code into SwiftUI.
Finally, the book explains how to package up a completed app and upload it to the App Store for publication.
Along the way, the topics covered in the book are put into practice through detailed tutorials, the source code for which is also available for download.
The aim of this book, therefore, is to teach you the skills necessary to build your own apps for iOS 13 using SwiftUI. Assuming you are ready to download the iOS 13 SDK and Xcode 11 and have an Intel-based Mac you are ready to get started.

1.1 For Swift Programmers

This book has been designed to address the needs of both existing Swift programmers and those who are new to both Swift and iOS app development. If you are familiar with the Swift 5.1 programming language, you can probably skip the Swift specific chapters. If you are not yet familiar with the new language features of Swift 5.1, however, we recommend that you at least read the sections covering implicit returns from single expressions, opaque return types and property wrappers. These features are central to the implementation and understandin...

Table of contents

  1. 1. Start Here. 1
  2. 2. Joining the Apple Developer Program.. 3
  3. 3. Installing Xcode 11 and the iOS 13 SDK. 7
  4. 4. An Introduction to Xcode 11 Playgrounds. 11
  5. 5. Swift Data Types, Constants and Variables. 25
  6. 6. Swift Operators and Expressions 39
  7. 7. Swift Control Flow.. 49
  8. 8. The Swift Switch Statement 57
  9. 9. An Overview of Swift 5 Functions, Methods and Closures 63
  10. 10. The Basics of Object-Oriented Programming in Swift 75
  11. 11. An Introduction to Swift Subclassing and Extensions 87
  12. 12. An Introduction to Swift Structures. 93
  13. 13. An Introduction to Swift Property Wrappers 97
  14. 14. Working with Array and Dictionary Collections in Swift 103
  15. 15. Understanding Error Handling in Swift 5. 111
  16. 16. An Overview of SwiftUI 117
  17. 17. Using Xcode in SwiftUI Mode. 121
  18. 18. The Anatomy of a Basic SwiftUI Project 141
  19. 19. Creating Custom Views with SwiftUI 145
  20. 20. SwiftUI Stacks and Frames 157
  21. 21. Working with SwiftUI State, Observable and Environment Objects 169
  22. 22. A SwiftUI Example Tutorial 177
  23. 23. SwiftUI Observable and Environment Objects ā€“ A Tutorial 191
  24. 24. SwiftUI Stack Alignment and Alignment Guides. 199
  25. 25. SwiftUI Lists and Navigation. 217
  26. 26. A SwiftUI List and Navigation Tutorial 227
  27. 27. Building Tabbed Views in SwiftUI 243
  28. 28. Building Context Menus in SwiftUI 247
  29. 29. Basic SwiftUI Graphics Drawing. 251
  30. 30. SwiftUI Animation and Transitions 261
  31. 31. Working with Gesture Recognizers in SwiftUI 273
  32. 32. Integrating UIViews with SwiftUI 281
  33. 33. Integrating UIViewControllers with SwiftUI 291
  34. 34. Integrating SwiftUI with UIKit 299
  35. 35. Preparing and Submitting an iOS 13 Application to the App Store. 311
  36. An Introduction to Swift Playgrounds
  37. Working with Array and Dictionary Collections in Swift
  38. The Swift Switch Statement
  39. Swift Control Flow
  40. The Basics of Object-Oriented Programming in Swift
  41. Creating Custom Views with SwiftUI
  42. Integrating UIViews with SwiftUI
  43. Installing Xcode 11 and the iOS 13 SDK
  44. SwiftUI Stacks and Frames
  45. Joining the Apple Developer Program
  46. An Overview of Swift 5 Functions, Methods and Closures
  47. SwiftUI Stack Alignment and Alignment Guides
  48. A SwiftUI Example Tutorial
  49. SwiftUI Observable and Environment Objects ā€“ A Tutorial
  50. SwiftUI Lists and Navigation
  51. The Anatomy of a Basic SwiftUI Project
  52. SwiftUI Animation and Transitions
  53. Working with SwiftUI State, Observable and Environment Objects
  54. A SwiftUI List and Navigation Tutorial
  55. Integrating UIViewControllers with SwiftUI
  56. Integrating SwiftUI with UIKit