Get the most out of Swift 4 with this carefully compiled collection of select code snippets designed to solve everyday coding problems. This book features the Apress easy-to-use recipe format, with step-by-step instructions, and a no-fuss approach.
You'll explore a wide range of topics, all neatly organized according to the language’s own core elements and building blocks. You'll review common topics such as conditionals, loops, functions, classes, closures, and arrays. This book also includes recipes to some more advanced problems found in files, system programming, and algorithms.
With Swift 4 Recipes, your programming problems are easily resolved, without wading through paragraphs of text.
What You'll Learn
• Create if-switch statements, ternary operator, and nil-coalescing
• Work with numbers, conversions, mathematical functions
• Access the command line and retrieving system info
Who This Book Is For
Mac and iOS developers either looking for a quick problem-solution manual to get started or in search of a quick reference for everyday problems in a dictionary-like fashion.
Author(s): Yanis Zafirópulos
Edition: 1
Publisher: Apress
Year: 2019
Language: English
Commentary: True PDF
Pages: 371
Tags: macOS; Programming; iOS; Swift; Cookbook; Object-Oriented Programming
Front Matter ....Pages i-lxi
Front Matter ....Pages 1-1
Introduction (Yanis Zafirópulos)....Pages 3-6
Basics (Yanis Zafirópulos)....Pages 7-16
Conditionals (Yanis Zafirópulos)....Pages 17-31
Loops (Yanis Zafirópulos)....Pages 33-36
Functions (Yanis Zafirópulos)....Pages 37-57
Front Matter ....Pages 59-59
Classes and Closures (Yanis Zafirópulos)....Pages 61-82
Strings (Yanis Zafirópulos)....Pages 83-130
Arrays and Sets (Yanis Zafirópulos)....Pages 131-201
Dictionaries (Yanis Zafirópulos)....Pages 203-226
Front Matter ....Pages 227-227
Numbers and Dates (Yanis Zafirópulos)....Pages 229-286
Exceptions (Yanis Zafirópulos)....Pages 287-296
Web, Files, and System (Yanis Zafirópulos)....Pages 297-348
More Advanced Topics (Yanis Zafirópulos)....Pages 349-362
Back Matter ....Pages 363-371