Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS Development with Swift

iOS Development with Swift

Getting started with swift and iOS development. My talk at MVP Mix 2015 in Dallas, Texas

Venkat Palivela

March 27, 2015
Tweet

More Decks by Venkat Palivela

Other Decks in Programming

Transcript

  1. Hi, my name is Venkat I’m a Senior Consultant at

    ThoughtWorks Developing Mobile Apps 2
  2. What is Swift? 5 New Language for Apple Functional Object

    Oriented Statically Typed Type Inference
  3. What does it all mean? 6 Top Down vs Bottom

    Up Object Oriented Programming is top down Functional Programming is bottom up Swift is both…
  4. Language Constructs • Types and Type Inferencing • Optional Types

    • First class functions • Closures • Reactive Programming 7
  5. Types 8 var  someString  =  “Hello  World!” let  someOtherString  =

     “Hello  World!” var  someString:  String  =  “Hello  World!”   let  someOtherString:  String  =  “Hello  World!”
  6. Optional Types 9 var  user:  User? var  userName  =  user?.fullName.uppercaseString

    var  postalCode  =  user?.address?.state?.uppercaseString
  7. Functions & Closures 10 func  lessThanTen(number:  Int)  -­‐>  Bool  {

             return  number  <  10   }   func  someOperation(  input:  Int,     success:  (result:  String)  -­‐>  Void,     failure:  (error:  NSError)  -­‐>  Void)  {   //  Do  some  async  operation   }
  8. Code Katas 12 • Prime Factors • Bowling • Mars

    Rover • Poker • Vending Machine • Conway’s Game of Life
  9. Swift and Objc 13 Objective - C Runtime Swift Objective

    - C All Swift programs execute inside Objective-C runtime. As a result bridging between Swift and Objective -C is possible However, Swift only language constructs are not visible to Objective-C Bridging