
Swift Recipes for iOS Developers: Real-Life Code from App Store Apps
Alexander Nekrasov
Résumé
All of the recipes in this book are taken from real-life commercial projects that have been approved by Apple and published on the App Store. You won't write "Hello, world!" and similar programs. Instead you'll see how to parse different data formats; run JavaScript code right inside your iOS app; and enhance storyboard editor with several simple extensions. You'll make beautiful modern-looking dialogs with blurs, shadows and rounded corners using only a few lines of code, and safely convert data after analyzing text strings. Go on to animate your layout and get your app shored up to crash as little as possible
Each recipe offers a code snippet to copy and paste to your project as a tool to boost your knowledge, as well as, create plug-and-play features. Each of recipe shows the description for each line of code while explaining the logic of it, contains references to documentation, and gives you an opportunity to modify or write something similar that fits your project better.
A good piece of code should not work but also be short, clear, and stable. And that combo will be our priority in these code recipes. Well-written code snippets must run in any environment and be easily transferrable from one project to another. Most of the provided recipes will migrate from one project to another with little to no changes at all, and with years of real-world application have proven themselves to be useful and stable. Dive into the world of iOS development and write clear, functioning, and safe Swift code!
What You'll Learn
- Parse, convert, and print Swift data
- Develop stunning UIs quickly
- Write effective and portable Swift extensions
- Make your code cleaner and safer
Who This Book Is For
Beginners in iOS development who want to improve their skills with real-life examples. Developers switching to mobile development from other areas. All iOS developers looking for code recipes.
Chapter 1. Introduction
Chapter 2. Working with Data
* Conversion between data types
* Extracting data from dictionaries
* Parsing JSON, XML and other formats
* Serialization and deserialization
Chapter 3. Working with Strings
* String and NSString
* Analyzing String content
* Data verification. Emails and phone numbers
* Encoding and decoding Base64
* MD5 and other hashes
Chapter 4. UIKit and Storyboards
* Navigation between screens
* Popups and dialogs
* Maps and navigation
* Rounded corners, shadows and other effects
Chapter 5. Image Processing
* Reading and writing images
* Downloading and caching images
* Resizing and cropping
* Preparing and showing profile picture
* Image masks
* Effects and filters
Chapter 6. Text Editing
* Analyzing user input in real time
* Formatting users input
* Work with emojis
* Floating prefix or suffix
* Keyboard handling
Chapter 7. UI Animations and Effects
* Animating views
* Parallax effect
* Hero animation
Chapter 8. SwiftUI
* Inserting UIKit components
* Applying styles with ViewModifier
* Creating custom views
Audience: Beginning
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Apress |
Auteur(s) | Alexander Nekrasov |
Parution | 29/09/2022 |
Nb. de pages | 348 |
EAN13 | 9781484280973 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse