© 2019

Swift 4 Recipes

Hundreds of Useful Hand-picked Code Snippets


  • Covers the latest version of Swift 4

  • Follows a dictionary-like approach, without unnecessary text—just the solutions you need

  • Offers a wide range of topics with over 340 recipes


Table of contents

  1. Front Matter
    Pages i-lxi
  2. Beginner

    1. Front Matter
      Pages 1-1
    2. Yanis Zafirópulos
      Pages 3-6
    3. Yanis Zafirópulos
      Pages 7-16
    4. Yanis Zafirópulos
      Pages 17-31
    5. Yanis Zafirópulos
      Pages 33-36
    6. Yanis Zafirópulos
      Pages 37-57
  3. Intermediate

    1. Front Matter
      Pages 59-59
    2. Yanis Zafirópulos
      Pages 61-82
    3. Yanis Zafirópulos
      Pages 83-130
    4. Yanis Zafirópulos
      Pages 131-201
    5. Yanis Zafirópulos
      Pages 203-226
  4. Advanced

    1. Front Matter
      Pages 227-227
    2. Yanis Zafirópulos
      Pages 229-286
    3. Yanis Zafirópulos
      Pages 287-296
    4. Yanis Zafirópulos
      Pages 297-348
    5. Yanis Zafirópulos
      Pages 349-362
  5. Back Matter
    Pages 363-371

About this book


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. 


Swift iOS programming coding app macOS

Authors and affiliations

  1. 1.GranadaSpain

About the authors

Ioannis Zafeiropoulosis a 32-year-old developer from Greece, living in the south of Spain. Before becoming a programmer, he studied medicine. But his lifelong passion for programming beginning when he was 7-year-olds has led to him writing code in practically every programming languages. He’s even created his own langauge. Swift Recipes has been his own day-to-day companion, whenever he’s need to find a solution to some Swift programming problem, or simply cannot remember one.

Bibliographic information

Industry Sectors
IT & Software