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

Coming soon to a (small|big) screen near you

Coming soon to a (small|big) screen near you

Yet again, this year has been huge for iOS developers. Not only did Apple release Apple Watch, and brought apps to small displays attached to your wrist, but they are also going after your big screens with the imminent launch of new app-enabled Apple TV.

In this keynote, Paul will discuss the recent Apple announcements – like the the new tvOS, iPad Pro and Pencil – and where all of these fit within Apple’s yearning for your hearts and abode. We will also discuss the various changes in the Apple SDKs, tools and business, and try predicting next year’s developments – HomeKit anyone?!

Paul Ardeleanu

October 07, 2015
Tweet

More Decks by Paul Ardeleanu

Other Decks in Technology

Transcript

  1. Coming soon to a
    screen near you
    Paul Ardeleanu
    Software Engineer @ LUPO

    View Slide

  2. Coming soon to a
    screen near you
    (small | big)
    Paul Ardeleanu
    Software Engineer @ LUPO

    View Slide

  3. View Slide

  4. [“hip” , ”hip”]

    View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. http://bit.ly/imworld

    View Slide

  9. Living la Vida Nerdy!

    View Slide

  10. What is this talk’s about?

    View Slide

  11. View Slide

  12. https://archive.org/details/byte-magazine-1981-04

    View Slide

  13. View Slide

  14. http://agilemanifesto.org

    View Slide

  15. What is this talk’s purpose?
    • Overview of the Apple platform
    • the WHY?
    • 2015 additions & updates
    • the HOW?
    • Predictions
    • the WHAT?

    View Slide

  16. Who am I ?

    View Slide

  17. View Slide

  18. View Slide

  19. http://pardel.net

    View Slide

  20. View Slide

  21. Overview

    View Slide

  22. AAPL

    View Slide

  23. Hardware

    View Slide

  24. Software

    View Slide

  25. Software

    View Slide

  26. View Slide

  27. Apple needs developers

    View Slide

  28. • maximise the number of developers
    • keeping existing developers happy

    View Slide

  29. Swift

    View Slide

  30. Swift history
    1.0 unveiled at WWDC 14 - official Sept 2014
    1.1 - Oct 14
    1.2 - April 15
    2.0 - WWDC 15 - official Sept 2015

    View Slide

  31. struct MyAppAccount {
    let latch = Latch(service: (NSBundle.mainBundle().bundleIdentifier ?? "com.example.MyApp"))
    var username: String? {
    get { return getValueForKey("username") }
    set(newObject) { setValueForKey("username", value: newObject) }
    }
    var password: String? {
    get { return getValueForKey("password") }
    set(newObject) { setValueForKey("password", value: newObject) }
    }
    private func getValueForKey(key: String) -> String? {
    guard let data = latch.dataForKey(key), let value = NSString(data: data, encoding: NSUTF8StringEncoding) else {
    return nil
    }
    return value as String
    }
    private func setValueForKey(key: String, value: String?) {
    if let value = value where value.characters.count > 0, let data = value.dataUsingEncoding(NSUTF8StringEncoding) {
    latch.setObject(data, forKey: key)
    } else {
    latch.removeObjectForKey(key)
    }
    }
    }
    var account = MyAppAccount()
    account.username = "[email protected]"
    account.password = "password"

    View Slide

  32. Benefits
    • Safety
    • type safe language - type checks performed at compilation
    • Optimisation
    • compiler optimised for performance
    • language optimised for development
    • Expressivity (a.k.a. Magic)

    View Slide

  33. Optionals
    var answer1 = 42
    var answer2: Int = nil
    var theAnswer: Int?

    theAnswer = 42

    nil
    {Some 42}

    View Slide

  34. Closures
    sortedFilters = filters.filter({ (filter) -> Bool in
    return filter.parent == nil
    }).sort({ (filter1: Filter, filter2: Filter) -> Bool in
    return filter1.displayOrder < filter2.displayOrder
    })

    View Slide

  35. Generics
    func swapTwoStrings(inout a: String, inout _ b: String) {
    let temporaryA = a
    a = b
    b = temporaryA
    }
    func swapTwoDoubles(inout a: Double, inout _ b: Double) {
    let temporaryA = a
    a = b
    b = temporaryA
    }

    View Slide

  36. Generics
    func swapTwoStrings(inout a: String, inout _ b: String) {
    let temporaryA = a
    a = b
    b = temporaryA
    }
    func swapTwoDoubles(inout a: Double, inout _ b: Double) {
    let temporaryA = a
    a = b
    b = temporaryA
    }
    func swapTwoValues(inout a: T, inout _ b: T) {
    let temporaryA = a
    a = b
    b = temporaryA
    }

    View Slide

  37. Emojis

    View Slide

  38. View Slide

  39. LLVM & Clang
    gcc => llvm-gcc => llvm

    View Slide

  40. http://lowlevelbits.org/bitcode-demystified/

    View Slide

  41. App Thinning
    http://lowlevelbits.org/bitcode-demystified/

    View Slide

  42. Playgrounds

    View Slide

  43. View Slide

  44. View Slide

  45. View Slide

  46. 2015 Updates

    View Slide

  47. iOS 9

    View Slide

  48. https://developer.apple.com/
    support/app-store/ https://developer.android.com/about/
    dashboards/index.html

    View Slide

  49. iOS 9 API changes
    • Contacts (Added)
    • ContactsUI (Added)
    • CoreSpotlight (Added)
    • GameplayKit (Added)
    • MetalKit (Added)
    • MetalPerformanceShaders (Added)
    • ModelIO (Added)
    • ReplayKit (Added)
    • simd (Added)
    • WatchConnectivity (Added)

    View Slide

  50. View Slide

  51. View Slide

  52. iOS 9.1 to tvOS 9.0 API Differences
    https://developer.apple.com/library/prerelease/tvos/releasenotes/General/tvOS90APIDiffs/index.html
    • Accelerate
    • Accounts (Removed)
    • AddressBook (Removed)
    • AddressBookUI (Removed)
    • AssetsLibrary (Removed)
    • AudioToolbox
    • AudioUnit
    • AVFoundation
    • AVKit
    • CloudKit
    • Contacts (Removed)
    • ContactsUI (Removed)
    • CoreAudioKit (Removed)
    • CoreBluetooth
    • CoreData
    • CoreFoundation
    • CoreGraphics
    • CoreLocation
    • CoreMIDI (Removed)
    • CoreMotion (Removed)
    • CoreSpotlight
    • NotificationCenter (Removed)
    • ObjectiveC
    • PassKit (Removed)
    • Photos (Removed)
    • PhotosUI (Removed)
    • PushKit (Removed)
    • QuickLook (Removed)
    • ReplayKit (Removed)
    • SafariServices (Removed)
    • simd
    • Social (Removed)
    • StoreKit
    • Swift
    • TVMLKit (Added)
    • TVServices (Added)
    • Twitter (Removed)
    • UIKit
    • VideoToolbox (Removed)
    • WatchConnectivity (Removed)
    • WatchKit (Removed)
    • WebKit (Removed)
    • CoreTelephony (Removed)
    • Darwin
    • EventKit (Removed)
    • EventKitUI (Removed)
    • ExternalAccessory (Removed)
    • Foundation
    • GameController
    • GameKit
    • GSS (Removed)
    • HealthKit (Removed)
    • HomeKit (Removed)
    • iAd (Removed)
    • LocalAuthentication (Removed)
    • MachO
    • MapKit (Removed)
    • MediaPlayer
    • MessageUI (Removed)
    • Metal
    • MultipeerConnectivity (Removed)
    • NetworkExtension (Removed)
    • NewsstandKit (Removed)

    View Slide

  53. Storage
    • no persistent storage on device
    • consume data from:
    • iCloud
    • web service

    View Slide

  54. 2 ways of building TV apps
    • TVMLKit : XML & Javascript
    • Native : UIKit, TVServices, Metal, CloudKit, etc.

    View Slide

  55. TVML Templates
    var Template = function() { return `



    Loading...


    `
    }
    https://developer.apple.com/library/prerelease/tvos/
    documentation/TVMLJS/Reference/TVJSFrameworkReference/

    View Slide

  56. application.js
    App.onLaunch = function(options) {
    var javascriptFiles = [
    `${options.BASEURL}js/ResourceLoader.js`,
    `${options.BASEURL}js/Presenter.js`
    ];
    evaluateScripts(javascriptFiles, function(success) {
    if (success) {
    resourceLoader = new ResourceLoader(options.BASEURL);
    var index = resourceLoader.loadResource(`${options.BASEURL}templates/Index.xml.js`,
    function(resource) {
    var doc = Presenter.makeDocument(resource);
    doc.addEventListener("select", Presenter.load.bind(Presenter));
    navigationDocument.pushDocument(doc);
    });
    } else {
    /*
    Be sure to handle error cases in your code. You should present a readable, and friendly
    error message to the user in an alert dialog.
    See alertDialog.xml.js template for details.
    */
    var alert = createAlert("Evaluate Scripts Error", "There was an error attempting to evaluate the external
    JavaScript files.\n\n Please check your network connection and try again later.");
    navigationDocument.presentModal(alert);
    throw ("Playback Example: unable to evaluate scripts.");
    }

    View Slide

  57. • maximise the number of developers
    • keeping existing developers happy

    View Slide

  58. Predictions

    View Slide

  59. Swift

    View Slide

  60. http://www.apple.com/live/2015-june-event/

    View Slide

  61. Naive vs. Native

    View Slide

  62. View Slide

  63. My Connector

    View Slide

  64. Multi-platform solutions
    iOS/OSX Android Windows
    C++

    View Slide

  65. +

    View Slide

  66. View Slide

  67. HomeKit

    View Slide

  68. HomeHub

    View Slide

  69. iPad Pro

    View Slide

  70. good artists copy,
    real artists steal

    View Slide

  71. iPad Pro

    View Slide

  72. New technologies & devices

    View Slide

  73. Car

    View Slide

  74. View Slide

  75. Lockheed Lounge

    View Slide

  76. Apple Car

    View Slide

  77. http://appleinsider.com/articles/15/02/18/high-res-photos-reveal-
    apple-mysterious-vans-equipment-package

    View Slide

  78. My predictions
    • autonomous electric car
    • on the market in 3-5 years
    • direct sales only
    • starting at $150,000

    View Slide

  79. Tesla

    View Slide

  80. https://www.nasa.gov/content/nasas-journey-to-mars

    View Slide

  81. View Slide

  82. View Slide

  83. View Slide

  84. View Slide

  85. https://en.wikipedia.org/wiki/Abraham_Maslow

    View Slide

  86. https://www.youtube.com/watch?v=XCvwCcEP74Q

    View Slide

  87. https://www.youtube.com/watch?v=XCvwCcEP74Q

    View Slide

  88. Privacy

    View Slide

  89. View Slide

  90. https://www.startwithwhy.com
    why
    how
    what

    View Slide

  91. http://www.flickr.com/photos/adrianblack/371301544/

    View Slide

  92. Then the iPhone happened…

    View Slide

  93. View Slide

  94. THANK YOU!
    @pardel
    pardel.net
    [email protected]
    Paul Ardeleanu
    Software Engineer @ LUPO

    View Slide

  95. Question Time
    @pardel
    pardel.net
    [email protected]
    Paul Ardeleanu
    Software Engineer @ LUPO

    View Slide