Linked e-resources
Details
Table of Contents
Intro
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Reviewers
Acknowledgement
Preface
Errata
Table of Contents
1. Swift Language
Introduction
Structure
Downloading Xcode
Defining variable
Optional Type and nil
Common ways to unwrap Optional Type
Forced Unwrapping
Optional Chaining
Logical operators
Conditional statements
Collection Type: Array
Collection type - Dictionary
Function
Scope
Struct
Class and Class vs Struct
2. Introduction to View in SwiftUI
Introduction
Structure
Fundamental view
View in SwiftUI
View Modifier
Conclusion
3. Implementing Layout in SwiftUI
Introduction
Structure
Layout in SwiftUI
Positioning View in SwiftUI
Alignment View in SwiftUI
Lifecycle methods in SwiftUI
Conclusion
4. State, Binding, Property Wrapper, and Property Observer
Introduction
Structure
Layout the Calculator
Making it Interactive
State
State versus Binding
Property Wrapper
Property Observer
Conclusion
5. Design Patterns with MVVM
Introduction
Structure
Design Pattern
Design Pattern in iOS development
Architecture patterns
Design patterns
MVVM Pattern
Implementing MVVM Pattern into the Calculator App (1)
ObservableObject and @StateObject
Implementing MVVM Pattern into the Calculator App (2)
Conclusion
6. Tab Bar, Navigation, and Compositional Layout
Introduction
Structure
Tab bar
Navigation in iOS development
NavigationView and NavigationLink
Navigation stack
Compositional layout
Load image
LazyVGrid and LazyHGrid
Conclusion
7. Networking with SwiftUI - Part 1
Introduction
Structure
Networking
RESTful APIs
JSON
URLSession
Making our first API call
JSONDecoder and Decodable.
Completion block, Enumeration, and threads
Main Thread
Background Thread
Asynchronous Programming with Async Await
Conclusion
8. Networking with SwiftUI - Part 2
Introduction
Structure
Laying out the project
OAuth 2.0
Setting up Unsplash APIs
Authorization with OAuth 2.0
Presenting a website inside our app with WebKit
POST request and GET request
Singleton design pattern
Completing the project
Downloading images from URL using URLSession
Conclusion
9. Local Storage with UserDefaults, CoreData, and File Manager
Introduction
Structure
Persistency with Local Storage
UserDefaults
Introduction to CoreData
Setting up CoreData in SwiftUI
Read and write data with CoreData in SwiftUI
Storing images inside users’ phones with File Manager
Conclusion
10. Construct Beautiful Charts with Swift Charts
Introduction
Structure
Introduction to Swift Charts
Swift Charts foundations
Setting up the project
Creating a Bar chart
Creating a Line chart
Creating a Pie chart
Creating a Donut chart
Conclusion
iOS 17 Appendix
Reference
Index.
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Reviewers
Acknowledgement
Preface
Errata
Table of Contents
1. Swift Language
Introduction
Structure
Downloading Xcode
Defining variable
Optional Type and nil
Common ways to unwrap Optional Type
Forced Unwrapping
Optional Chaining
Logical operators
Conditional statements
Collection Type: Array
Collection type - Dictionary
Function
Scope
Struct
Class and Class vs Struct
2. Introduction to View in SwiftUI
Introduction
Structure
Fundamental view
View in SwiftUI
View Modifier
Conclusion
3. Implementing Layout in SwiftUI
Introduction
Structure
Layout in SwiftUI
Positioning View in SwiftUI
Alignment View in SwiftUI
Lifecycle methods in SwiftUI
Conclusion
4. State, Binding, Property Wrapper, and Property Observer
Introduction
Structure
Layout the Calculator
Making it Interactive
State
State versus Binding
Property Wrapper
Property Observer
Conclusion
5. Design Patterns with MVVM
Introduction
Structure
Design Pattern
Design Pattern in iOS development
Architecture patterns
Design patterns
MVVM Pattern
Implementing MVVM Pattern into the Calculator App (1)
ObservableObject and @StateObject
Implementing MVVM Pattern into the Calculator App (2)
Conclusion
6. Tab Bar, Navigation, and Compositional Layout
Introduction
Structure
Tab bar
Navigation in iOS development
NavigationView and NavigationLink
Navigation stack
Compositional layout
Load image
LazyVGrid and LazyHGrid
Conclusion
7. Networking with SwiftUI - Part 1
Introduction
Structure
Networking
RESTful APIs
JSON
URLSession
Making our first API call
JSONDecoder and Decodable.
Completion block, Enumeration, and threads
Main Thread
Background Thread
Asynchronous Programming with Async Await
Conclusion
8. Networking with SwiftUI - Part 2
Introduction
Structure
Laying out the project
OAuth 2.0
Setting up Unsplash APIs
Authorization with OAuth 2.0
Presenting a website inside our app with WebKit
POST request and GET request
Singleton design pattern
Completing the project
Downloading images from URL using URLSession
Conclusion
9. Local Storage with UserDefaults, CoreData, and File Manager
Introduction
Structure
Persistency with Local Storage
UserDefaults
Introduction to CoreData
Setting up CoreData in SwiftUI
Read and write data with CoreData in SwiftUI
Storing images inside users’ phones with File Manager
Conclusion
10. Construct Beautiful Charts with Swift Charts
Introduction
Structure
Introduction to Swift Charts
Swift Charts foundations
Setting up the project
Creating a Bar chart
Creating a Line chart
Creating a Pie chart
Creating a Donut chart
Conclusion
iOS 17 Appendix
Reference
Index.