Author(s): Sam Davies, Jeff Rames, Rich Turton
Edition: 1st Edition
Publisher: Razeware
Year: 2016
Language: English
Pages: 315
Tags: iOS, Swift
Table of Contents : Extended......Page 7
Introduction......Page 11
Who this book is for......Page 12
What's in store......Page 13
How to use this book......Page 18
Book updates......Page 19
Acknowledgments......Page 20
About the cover......Page 21
Chapter 1: What’s New in Swift 3......Page 22
The Grand Renaming......Page 23
Foundation value types......Page 26
Working with C APIs......Page 28
Language feature changes......Page 29
Where to go from here?......Page 34
Chapter 2: Xcode 8 Debugging Improvements......Page 35
Getting started......Page 36
Investigating the project......Page 37
Memory Graph debugging......Page 39
Thread Sanitizer......Page 48
View debugging......Page 54
Static analyzer enhancements......Page 60
Where to go from here?......Page 61
Chapter 3: Xcode 8 Source Editor Extensions......Page 62
Getting started......Page 63
Why source editor extensions?......Page 64
Creating a new extension......Page 65
Building the Asciiify extension......Page 68
Dynamic commands......Page 78
Where to go from here?......Page 81
Getting started......Page 82
Creating a sticker application......Page 85
Where to go from here?......Page 100
Getting started......Page 101
Adding the first child view controller......Page 102
Switching view controllers......Page 105
Creating a message......Page 107
Custom message content......Page 110
Getting a second chance......Page 116
Where to go from here?......Page 117
Chapter 6: SiriKit......Page 118
Would you like to ride in my beautiful balloon?......Page 119
99 (passengers in) red balloons......Page 125
You can’t handle the truth......Page 130
Making a balloon animal, er, UI......Page 133
Where to go from here?......Page 136
Chapter 7: Speech Recognition......Page 137
Getting started......Page 138
Transcription basics......Page 141
Audio file speech transcription......Page 142
Transcription and locales......Page 146
Live speech recognition......Page 149
Usage guidelines......Page 156
Where to go from here?......Page 157
Chapter 8: User Notifications......Page 158
Getting started......Page 159
The User Notifications framework......Page 160
Managing notifications......Page 165
Notification content extensions......Page 171
Notification Service app extensions......Page 183
Where to go from here?......Page 189
Chapter 9: Property Animators......Page 190
Getting started......Page 191
Timing is everything......Page 192
Controlling your frog......Page 195
Spring animations......Page 197
Inspecting in-progress animations......Page 200
Pausing and scrubbing......Page 201
Stopping......Page 203
Reversing......Page 205
Multiple animators......Page 207
View controller transitions......Page 211
Where to go from here?......Page 214
Chapter 10: Measurements and Units......Page 215
Measurement and Unit......Page 216
I want to ride my bicycle......Page 217
Uranium Fever......Page 219
Measure for MeasurementFormatter......Page 221
(Custom) Dimension......Page 224
Chain of fools......Page 225
Turning it up to 11......Page 226
24 Hours From Tulsa......Page 228
Where to go from here?......Page 231
Chapter 11: What’s New with Core Data......Page 232
An eye to new data models......Page 233
A stack with a peel......Page 236
Frenched russet controllers......Page 238
Digging in to the background......Page 241
Where to go from here?......Page 246
Smile, you’re on camera!......Page 247
Taking a photo......Page 252
Making it fabulous......Page 259
Live photos......Page 263
Editing Live Photos......Page 267
Where to go from here?......Page 273
Chapter 13: What’s New with Search......Page 274
Getting started......Page 275
Enabling search continuation......Page 277
Implementing search continuation......Page 278
Core Spotlight Search API......Page 282
Proactive suggestions for location......Page 289
Where to go from here?......Page 294
Chapter 14: Other iOS 10 Topics......Page 295
Getting started......Page 296
Data source prefetching......Page 297
UIPreviewInteraction......Page 301
Haptic feedback......Page 311
Where to go from here?......Page 314
Conclusion......Page 315