Swift Cookbook : Proven Recipes for Developing Robust IOS Applications with Swift 5. 9.
Saved in:
Main Author: | |
---|---|
Other Authors: | , , |
Format: | Ebook |
Language: | English |
Published: |
Birmingham :
Packt Publishing, Limited,
2023.
|
Edition: | 3rd ed. |
Online Access: | Click here to view this book |
Table of Contents:
- Cover
- Title Page
- Copyright and Credits
- Dedication
- Contributors
- Table of Contents
- Preface
- Chapter 1: Swift Fundamentals
- Technical requirements
- Writing your first code in Swift
- Getting ready
- How to do it…
- There's more…
- See also
- Using the basic types - strings, ints, floats, and booleans
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Reusing code in functions
- Getting ready
- How to do it…
- There's more…
- See also
- Encapsulating functionality in object classes
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Bundling values into structs
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Enumerating values with enums
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Passing around functionality with closures
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Using protocols to define interfaces
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Chapter 2: Mastering the Building Blocks
- Technical requirements
- Bundling variables into tuples
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Ordering your data with arrays
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Containing your data in sets
- Getting ready
- How to do it...
- How it works...
- See also
- Storing key-value pairs with dictionaries
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Subscripts for custom types
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Changing your name with a type alias
- Getting ready
- How to do it...
- There's more...
- See also.
- Getting property changing notifications using property observers
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Extending functionality with extensions
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Controlling access with access control
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 3: Data Wrangling with Swift
- Technical requirements
- Making decisions with if/else
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Handling all cases with switch
- Getting ready
- How to do it...
- How it works...
- See also
- Looping with for loops
- Getting ready
- How to do it...
- How it works...
- See also
- Looping with while loops
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Handling errors with try, throw, do, and catch
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Checking upfront with guard
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Doing it later with defer
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Bailing out with fatalError and precondition
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 4: Generics, Operators, and Nested Types
- Technical requirements
- Using generics with types
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using generics with functions
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using generics with protocols
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using advanced operators
- Getting ready
- How to do it.
- See also
- Defining option sets
- Getting ready
- How to do it...
- How it works...
- See also
- Creating custom operators
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Nesting types and namespacing
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 5: Beyond the Standard Library
- Technical requirements
- Comparing dates with Foundation
- Getting ready
- How to do it…
- How it works…
- See also
- Fetching data with URLSession
- Getting ready
- How to do it…
- How it works…
- See also
- Working with JSON
- Getting ready
- How to do it...
- There's more...
- Working with XML
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 6: Understanding Concurrency in Swift
- Technical requirements
- Getting ready
- How to do it...
- How it works...
- See also
- Leveraging DispatchGroups
- Getting ready
- How to do it...
- How it works...
- See also
- Implementing the operation class
- Getting ready
- How to do it...
- How it works...
- See also
- Async/Await in Swift
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 7: Building iOS Apps with UIKit
- Technical requirements
- Building an iOS app using UIKit and storyboards
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Unit and integration testing with XCTest
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- UI testing with XCUITest
- Getting ready
- How to do it...
- There's more...
- See also
- Chapter 8: Building iOS Apps with SwiftUI
- Technical requirements
- Declarative syntax
- Getting ready
- How to do it…
- How it works...
- There's more...
- See also.
- Function builders, property wrappers, and opaque return types
- Getting ready
- How to do it…
- There's more...
- See also
- Building simple views in SwiftUI
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Combine and data flow in SwiftUI
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 9: Getting to Grips with Combine
- Technical requirements
- Using Reactive Streams
- Getting ready
- How to do it...
- How it works...
- See also
- Understanding Observable Objects
- How to do it...
- How it works...
- See also
- Understanding publishers and subscribers
- How to do it...
- How it works...
- See also
- Combine versus Delegate pattern
- How to do it...
- How it works...
- Chapter 10: Using CoreML and Vision in Swift
- Technical requirements
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using CoreML models to detect objects in images
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Building a video capture app
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using CoreML and the Vision framework to detect objects in real time
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 11: Immersive Swift with ARKit and Augmented Reality
- Technical requirements
- Surface detection with ARKit
- Getting ready
- How to do it...
- How it works...
- There's more…
- See also
- Using 3D models with ARKit
- Getting ready
- How to do it…
- How it works...
- There's more…
- Using Reality Composer Pro for visionOS
- Getting ready
- How to do it...
- How it works...
- There's more…
- See also
- Chapter 12: Visualizing Data with Swift Charts
- Technical requirements
- Building a chart with data
- Getting ready.
- How to do it…
- How it works...
- See also
- Displaying multiple datasets
- How to do it...
- How it works...
- Exploring chart marks and modifiers
- How to do it...
- How it works...
- There's more...
- Index
- Other Books You May Enjoy.