Swift recipes for iOS developers real-life code from App Store apps

Boost your iOS developer career by learning from real-life examples and start writing code for one of the most successful platforms ever. No matter if you're an experienced developer or just a beginner, you'll find something new and something useful for your future projects here. All of th...

Descripción completa

Detalles Bibliográficos
Otros Autores: Nekrasov, Alexander, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: New York, New York : Apress Media LLC [2022]
Edición:[First edition]
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009686299106719
Tabla de Contenidos:
  • Intro
  • Table of Contents
  • About the Author
  • About the Technical Reviewer
  • Acknowledgments
  • How to Use This Book
  • Chapter 1: Working with Data
  • Conversion Between Data Types
  • Safe Number Conversion
  • Conversion from Number to String and Back
  • Boolean Conversions
  • String to Data and Back
  • Dates, Timestamps, and ISO 8601 Format
  • Extracting Data from Dictionaries and Arrays
  • Complex Data Types
  • Extracting Data from Dictionary
  • Extracting Data from Array
  • Summary
  • Chapter 2: Working with JSON and Other Popular Formats
  • How Devices Exchange Data
  • What Are Serialization and Deserialization
  • Working with JSON
  • Parsing JSON to Dictionary or Array
  • Generating JSON from Dictionary or Array
  • Working with XML
  • Parsing XML
  • Generating XML
  • Working with YAML
  • URL-Encoded Strings
  • Serialization and Deserialization
  • Serializing an Object
  • Deserializing an Object
  • Coding Keys
  • Using @propertyWrapper
  • Unit Conversion
  • Distance and Length Units
  • Area Units
  • Volume Units
  • Weight Units
  • Summary
  • Chapter 3: Working with Strings
  • Analyzing String Content
  • First, Last, and Other Names
  • Email Address
  • Password
  • Phone Number
  • Gender
  • Date of Birth
  • Credit Card Information
  • Base64 and Hex Encoding
  • Base64 Encoding
  • Hex Encoding
  • MD5, SHA, and Other Hashes
  • MD5 Hash
  • SHA Hashes
  • Hashable Protocol and Swift Hashes
  • Salt
  • Integer Indexing
  • Localization
  • NSLocalizedString Macro
  • Files with Translations
  • LocalizedStringKey Struct
  • Syntactic Sugar
  • Summary
  • Chapter 4: UIKit and Storyboards
  • Navigation Between App Screens
  • Screens, Windows, and Views
  • Navigation in iOS Apps
  • Scenes
  • Going Back
  • Replacing Root View
  • Modifying UINavigationController Stack
  • Removing Elements from the Navigation Stack.
  • Returning the User to a Specific View Controller
  • Popups and Dialogs
  • Showing Alerts, Errors, and Warnings
  • Asking General Questions
  • Asking Questions with a One-Line String Answer
  • Picking Date and Time
  • What Is SnapKit?
  • Date and Time Selector Popup
  • Date and Time Inside the Bottom Sheet
  • Maps and Navigation
  • Showing Apple Map in an iOS App
  • Showing Google Maps in an iOS App
  • Dynamic Navigation
  • Rounded Corners, Shadows, and Other Effects
  • Rounded Corners, Content Cropping, and Borders
  • Shadows
  • UITextField Paddings
  • UITextView placeholder
  • Gradients
  • Blurs
  • Summary
  • Chapter 5: Image Processing
  • Reading and Writing Images
  • Image Buffer
  • File Formats
  • Loading (Reading) Images from Files
  • Saving (Writing) Images to Files
  • Downloading and Caching Images
  • Downloading Files
  • Downloading Files with Alamofire
  • Downloading Files with URLSession/URLRequest
  • Turning Function with Completion Handler into an Asynchronous One
  • Caching Files in Memory
  • Caching Files in Filesystem
  • Obtaining Directory Paths
  • Saving Files to Cache
  • Verifying Cache Size
  • Resizing and Cropping
  • Image Scaling
  • Image Cropping
  • Preparing and Showing Profile Pictures
  • Processing Profile Pictures Before Uploading
  • Showing Profile Pictures
  • Image Masks
  • Merging Images
  • Applying Mask
  • Effects and Filters
  • CoreImage
  • GPUImage
  • GIF Animations
  • AnimatedImageView from Kingfisher
  • SwiftyGif
  • Summary
  • Chapter 6: Text Editing
  • Analyzing User Input in Real Time
  • Formatting User Input
  • Formatting Phone Numbers
  • Formatting Bank Card Numbers
  • Working with Emojis
  • Detecting Emojis in Strings
  • Blocking Emoji from User Input
  • Floating Prefix or Suffix
  • Adding Prefix
  • Adding Suffix
  • Keyboard Handling
  • Hiding the Keyboard When the User Clicks the Outside Text Field.
  • Hiding the Keyboard in Scrollable Areas
  • Hiding the Keyboard When the User Leaves the Screen
  • Changing Your Layout When the Keyboard Appears
  • Scrolling to Show Current Text Field
  • Pin Pad UI Component
  • Summary
  • Chapter 7: UI Animation and Effects
  • Animating Views
  • Animating UIView's Own Properties
  • Animating Layout by Changing Constraints
  • Restrictions
  • Animating Layout When Keyboard Appears
  • Parallax Effect
  • Parallax Header with UIScrollView
  • Preparing User Interface
  • Parallax Functionality
  • Parallax Header with UITableView and UICollectionView
  • Hero Animation
  • Hero Animation Within the Same UIViewController
  • Create and Show UIView
  • Calculate Transformation
  • Apply Transformation
  • Hide Source UIView and Show Destination UIView
  • Animate
  • Final Code
  • Hero Flying to a New UIViewController
  • Getting and Using UIWindow
  • Details
  • Transition Between Screens
  • Standard Transitions
  • Creating a Custom Transition
  • Transition Libraries
  • Summary
  • Chapter 8: SwiftUI
  • Basic Overview of SwiftUI
  • Basic App
  • Building Blocks
  • Modifying Controls
  • Compositions
  • Inserting UIKit Components
  • Creating a SwiftUI Component from a UIKit Component
  • Example with Custom Label
  • Applying Styles with ViewModifier
  • Creating a ViewModifier
  • Chaining Modifiers in SwiftUI
  • HeaderText without UIKit
  • Creating Custom Views
  • Drawing on a Canvas
  • Component State
  • Data Binding
  • Summary
  • Index.