Book description
Ready to build truly stunning apps for iPhone, iPad, and Apple Watch? This cookbook—written exclusively in Swift 3—provides more than 120 proven solutions for tackling the latest features in iOS 10 and watchOS 3. With these code-rich recipes, you’ll learn how to build dynamic voice interfaces with Siri and messaging apps with iMessage. You’ll also learn how to use interactive maps, multitasking functionality, the UI Testing framework, and many other features.
Table of contents
- Preface
-
iMessage Stickers and Apps
- 1.1. Setting Up a Sticker Pack Application
- 1.2. Adjusting Sticker Sizes
- 1.3. Building a Full-Fledged iMessage Application
- 1.4. Adding an iMessage App Extension to an Existing App
- 1.5. Utilizing an Expanded View in a Sticker Pack App
- 1.6. Appending Rich Information to Stickers
- 1.7. Creating Interactive Conversations with iMessage Apps
- SiriKit
-
Measurements and Units
- 3.1. Converting Between and Working with Length Units
- 3.2. Working with and Switching Between Angle Units
- 3.3. Representing and Converting Between Durations of Time
- 3.4. Using and Working with Frequency Units
- 3.5. Working with and Using Power Units
- 3.6. Representing and Comparing Temperature Units
- 3.7. Working with and Converting Volume Units
- Core Data
-
Swift 3.0, Xcode 8, and Interface Builder
- 5.1. Handling Errors in Swift
- 5.2. Specifying Preconditions for Methods
- 5.3. Ensuring the Execution of Code Blocks Before Exiting Methods
- 5.4. Checking for API Availability
- 5.5. Categorizing and Downloading Assets to Get Smaller Binaries
- 5.6. Exporting Device-Specific Binaries
- 5.7. Linking Separate Storyboards Together
- 5.8. Adding Multiple Buttons to the Navigation Bar
- 5.9. Optimizing Your Swift Code
- 5.10. Showing the Header View of Your Swift Classes
- 5.11. Creating Your Own Set Types
- 5.12. Conditionally Extending a Type
- 5.13. Building Equality Functionality into Your Own Types
- 5.14. Looping Conditionally Through a Collection
- 5.15. Designing Interactive Interface Objects in Playgrounds
- 5.16. Grouping Switch Statement Cases Together
- 5.17. Bundling and Reading Data in Your Apps
-
The User Interface
- 6.1. Animating Views
- 6.2. Attaching Live Views to Playgrounds
- 6.3. Running Playgrounds as Interactive and Continuous Apps
- 6.4. Arranging Your Components Horizontally or Vertically
- 6.5. Customizing Stack Views for Different Screen Sizes
- 6.6. Creating Anchored Constraints in Code
- 6.7. Allowing Users to Enter Text in Response to Local and Remote Notifications
- 6.8. Dealing with Stacked Views in Code
- 6.9. Showing Web Content in Safari View Controller
- 6.10. Laying Out Text-Based Content on Your Views
- 6.11. Improving Touch Rates for Smoother UI Interactions
- 6.12. Supporting Right-to-Left Languages
- 6.13. Associating Keyboard Shortcuts with View Controllers
- 6.14. Recording the Screen and Sharing the Video
-
Apple Watch
- 7.1. Downloading Files onto the Apple Watch
- 7.2. Noticing Changes in Pairing State Between the iOS and Watch Apps
- 7.3. Transferring Small Pieces of Data to and from the Watch
- 7.4. Transferring Dictionaries in Queues to and from the Watch
- 7.5. Transferring Files to and from the Watch
- 7.6. Communicating Interactively Between iOS and watchOS
- 7.7. Setting Up Apple Watch for Custom Complications
- 7.8. Constructing Small Complications with Text and Images
- 7.9. Displaying Time Offsets in Complications
- 7.10. Displaying Dates in Complications
- 7.11. Displaying Times in Complications
- 7.12. Displaying Time Intervals in Complications
- 7.13. Recording Audio in Your Watch App
- 7.14. Playing Local and Remote Audio and Video in Your Watch App
- Contacts
- Extensions
- Web and Search
- Multitasking
-
Maps and Location
- 12.1. Displaying a Specific Location on the Map
- 12.2. Requesting the User’s Location a Single Time
- 12.3. Requesting the User’s Location in the Background
- 12.4. Customizing the Tint Color of Pins on the Map
- 12.5. Providing Detailed Pin Information with Custom Views
- 12.6. Displaying Traffic, Scale, and Compass Indicators on the Map
- 12.7. Providing an ETA for Transit Transport Type
- 12.8. Launching the iOS Maps App in Transit Mode
- 12.9. Showing Maps in Flyover Mode
- UI Testing
- Core Motion
- Security
- Multimedia
-
UI Dynamics
- 17.1. Adding a Radial Gravity Field to Your UI
- 17.2. Creating a Linear Gravity Field on Your UI
- 17.3. Creating Turbulence Effects with Animations
- 17.4. Adding Animated Noise Effects to Your UI
- 17.5. Creating a Magnetic Effect Between UI Components
- 17.6. Designing a Velocity Field on Your UI
- 17.7. Handling Collisions Between Nonrectangular Views
- Index
Product information
- Title: iOS 10 Swift Programming Cookbook
- Author(s):
- Release date: December 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491966433
You might also like
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
book
C++ Concurrency in Action, Second Edition
C++ Concurrency in Action, Second Edition is the definitive guide to writing elegant multithreaded applications in …
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
book
Swift in Depth
Swift in Depth guides you concept by concept through the skills you need to build professional …