Book Image

Swift by Example

By : Giordano Scalzo
Book Image

Swift by Example

By: Giordano Scalzo

Overview of this book

Table of Contents (15 chapters)

Index

A

  • Alamofire
    • URL / Implementing the basic menu screen
  • app record
    • creating, on iTunes Connect / Creating an app record on iTunes Connect
  • Automatic Reference Counter (ARC)
    • about / The first look at Swift

B

  • background, Flappy Swift game
    • implementing / A stage for a bird
    • SpriteKit, in nutshell / SpriteKit in a nutshell
    • code, explaining / Explaining the code
    • three-dimensional world, simulating with parallax / Simulating a three-dimensional world using parallax
    • scrolling, implementing / How to implement the scrolling

C

  • cards images, Memory Game
    • inserting / Put the cards on the table
    • assets, adding / Adding the assets
    • CardCell structure, implementing / The CardCell structure
    • touches, handling / Handling touches
  • Cartography
    • URL / Implementing the Todos ViewController
  • character, Flappy Swift game
    • adding / A flying bird
    • Bird node, adding / Adding the Bird node
    • flight of bird, implementing / Making the bird flap
  • classes
    • about / Classes – common behavior objects
  • closure / Transforming the values using functions
  • CocoaPods
    • URL / Adding third-party libraries with CocoaPods
  • components, Flappy Swift game
    • interacting / Making the components interact
    • collision detection engine, setting up / Setting up the collision detection engine
  • containers
    • variables, collecting in / Collect variables in containers
  • Cube Runner
    • about / The app is…
    • implementing / Implementing Cube Runner
    • game skeleton / The game skeleton
    • menu, implementing / Implementing the menu
    • touches, adding / Adding a few touches, Adding the juice
    • real game, making / Making it a real game
    • collision detection, implementing / Detecting collisions
    • Game Over! condition / Game Over!
    • integrating, with Game Center / Game Center

D

  • 3D world, Cube Runner
    • about / Flying in a 3D world
    • scene, setting up / Setting up the scene
    • fighter, adding / Adding the fighter
    • world, texturing / Texturing the world
    • actions, applying to nodes / Make it move
    • cubes, adding / Adding the cubes
    • obstacles, adding / Adding more obstacles
  • deck of cards, Memory Game
    • implementing / Implementing a deck of cards, What we are expecting
    • Card entity / The Card entity
    • crafting / Crafting the deck
    • shuffling / Shuffling the deck
    • finishing / Finishing the deck

E

  • enhancement, Flappy Swift game
    • about / Adding juiciness
    • sound effects, adding / Let there be sounds!
    • soundtrack, playing / Playing the soundtrack
    • screen, shaking / Shaking the screen!
  • enumerations, on steroids
    • about / Enumerations on steroids

F

  • fake user accounts
    • creating, for testing Game Center / Creating fake user accounts to test Game Center
  • features, Game Center
    • leaderboards / What Game Center provides
    • achievements / What Game Center provides
    • multiplayer / What Game Center provides
  • Fisher-Yates algorithm
    • about / Shuffling the deck
    • URL / Shuffling the deck
  • Flappy Swift game
    • about / The app is…
    • skeleton, building of app / Building the skeleton of the app
    • background, implementing / A stage for a bird
    • characters, adding / A flying bird
    • pipes, adding / Pipes!
    • components, interacting / Making the components interact
    • completing / Completing the game
    • birds, colliding with pipes / Colliding with the pipes
    • score, adding / Adding the score
    • restarting popup, adding / Adding a restarting popup
    • enhancing / Adding juiciness
  • flow
    • controlling / Controlling the flow
  • FontAwesome
    • URL / Implementing TodoViewCell
  • FontAwesomeKit
    • URL / Implementing TodoViewCell
  • functions
    • used, for transforming values / Transforming the values using functions

G

  • Game Center
    • about / Integrating with Game Center
    • features / What Game Center provides
    • setting up / Setting up Game Center
    • enabling / Enabling Game Center
    • fake user accounts, creating for testing / Creating fake user accounts to test Game Center
    • player, authenticating / Authenticating a player
  • GameCenter class, features
    • authentication / Game Center
    • score, reporting / Game Center
    • leaderboard, showing / Game Center
  • game screen, Memory Game
    • about / The game screen
    • structure / The structure
    • CollectionView class, adding / Adding the collectionView class
    • components, sizing / Sizing the components
    • datasource and delegate, connecting / Connecting the datasource and the delegate
  • Guard / Implementing the game logic
  • Guess the Number app
    • about / A Guess the Number app in Swift
    • interface / The app is…
    • skeleton app, building / Building a skeleton app
    • graphic components, adding / Adding the graphic components
    • dots, connecting / Connecting the dots
    • code, adding / Adding the code
    • URL, for code / Adding the code

I

  • iTunes Connect
    • app record, creating on / Creating an app record on iTunes Connect
    • URL / Creating an app record on iTunes Connect

J

  • JSON (JavaScript Object Notation / Connecting to the server

L

  • Lato
    • URL / Implementing the Todos ViewController
  • list, TodoList App
    • about / Adding a list
    • ListViewCell, implementing / Implementing ListViewCell
    • ListViewController, building / Building ListViewController
    • datastore, updating / Updating the datastore
  • loose coupling, with protocols / Loose coupling with protocols

M

  • Memory Game
    • about / The app is…
    • skeleton, building / Building the skeleton of the app
    • menu screen / The menu screen
    • game screen / The game screen
    • deck of cards, implementing / Implementing a deck of cards
    • finishing / Finishing the game, Et voilà! The game is completed
    • game logic, implementing / Implementing the game logic
    • missing actions, implementing in private extension / We got a pair
  • menu screen, Memory Game
    • about / The menu screen
    • implementing / Implementing the basic menu screen
    • creating / Creating a nice menu screen
  • MGSwipeTableCell
    • URL / Swipe that cell!

O

  • Objective-C
    • about / The first look at Swift
  • OpenWeatherMap
    • URL / Getting the forecast from OpenWeatherMap
  • optionals value
    • existence, checking of / Check the existence of an optionals value

P

  • parallax
    • used, for simulating three-dimensional world / Simulating a three-dimensional world using parallax
  • pipes, Flappy Swift game
    • adding / Pipes!
    • pipes nodes, implementing / Implementing the pipes node
  • Pretty Weather App
    • about / The app is…
    • requisites / Building the skeleton
    • UI, implementing / Implementing the UI
    • background, blurring / Blurring the background
    • background image, downloading / Downloading the background image
    • background image, searching in Flickr / Searching in Flickr
    • geolocalising / Geolocalising the app
    • CoreLocation, using / Using CoreLocation
    • actual forecast, retrieving / Retrieving the actual forecast
    • actual forecast, retrieving from open OpenWeatherMap / Getting the forecast from OpenWeatherMap
    • CurrentWeatherView, rendering / Rendering CurrentWeatherView
    • WeatherHourlyForecastView, rendering / Rendering WeatherHourlyForecastView
    • WeatherDaysForecastView, rendering / Rendering WeatherDaysForecastView
    • connecting, to server / Connecting to the server

R

  • requisites, Pretty Weather App
    • about / Building the skeleton
    • project, creating / Creating the project
    • assets, adding / Adding the assets
    • assets, reference link / Adding the assets

S

  • Scene Kit
    • about / What is SceneKit?
    • empty scene, building / Building an empty scene
    • object, adding to scene / Adding a green torus
    • light, adding to scene / Let there be light!
    • light, actions, applying to nodes / Let's make it move!
  • screen, TodoList App
    • building / Building the Todos screen
    • entities, adding / Adding the entities
    • datastore, implementing / Implementing the datastore
    • datastore, connecting with ViewController / Connecting the datastore and the ViewController
    • tableview, configuring / Configuring tableView
    • TodoViewCell, implementing / Implementing TodoViewCell
    • cell, swiping / Swipe that cell!
  • skeleton, Flappy Swift game
    • building / Building the skeleton of the app
    • project, creating / Creating the project
    • menu, implementing / Implementing the menu
  • skeleton app, TodoList App
    • building / Building a skeleton app
    • empty app, implementing / Implementing an empty app
    • third-party libraries, adding with CocoaPods / Adding third-party libraries with CocoaPods
    • implementing, with Todos ViewController / Implementing the Todos ViewController
  • SpriteKit
    • about / SpriteKit in a nutshell
  • struct
    • about / Structs – custom compounds type
  • Swift
    • about / The first look at Swift
    • first program / Let's go to the playground

T

  • task, TodoList App
    • about / Adding a Todo task
    • Todo ViewController / The add a Todo ViewController
    • datastore, updating / Updating the datastore
  • three-dimensional world
    • simulating, parallax used / Simulating a three-dimensional world using parallax
  • TodoList App
    • about / The app is…
    • skeleton app, building / Building a skeleton app
    • Todos screen, building / Building the Todos screen
    • Todo task, adding / Adding a Todo task
    • list, adding / Adding a list
  • touches, Cube Runner
    • adding / Adding a few touches
    • score, adding / The score
    • music, adding / Let's add the music

U

  • UI, Pretty Weather App
    • implementing / Implementing the UI
    • in blocks / The UI in blocks
    • completing / Completing the UI
    • CurrentWeatherView interface / CurrentWeatherView
    • WeatherHourlyForecastView interface / WeatherHourlyForecastView
    • WeatherDaysForecastView interface / WeatherDaysForecastView

V

  • values
    • transforming, functions used / Transforming the values using functions
  • ValueType / Structs – custom compounds type
  • variables
    • about / The building blocks – variables and constants
    • defining / The building blocks – variables and constants
    • collecting, in containers / Collect variables in containers
  • var keyword / The building blocks – variables and constants

X

  • Xcode
    • about / Let's go to the playground
    • URL, for downloading / Let's go to the playground