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

Working as an iOS Developer at Classmethod

Kato Jun
August 14, 2018

Working as an iOS Developer at Classmethod

Kato Jun

August 14, 2018
Tweet

More Decks by Kato Jun

Other Decks in Programming

Transcript

  1. !26

  2. !27

  3. !28

  4. !29

  5. !30

  6. !31

  7. !32

  8. !33

  9. γϣʔτΧοτΛϋϯυϧ !58 w࣮ࡍʹΠϯςϯτΛϋϯυϧ͢ΔΫϥεΛ࣮૷ w%P4PNFUIJOH*OUFOU)BOEMJOH΋ࣗಈੜ੒ͨ͠ϓϩτίϧ wDPOpSN JOUFOUDPNQMFUJPO ϝιου͕ఆٛ͞Ε͍ͯ·͕ͨ͠ɺͪ͜Βͷ࣮૷͸೚ҙ wΠϯςϯτͷछྨʹԠͯ͡ద੾ͳϋϯυϥʔΦϒδΣΫτΛฦ͢ॲཧΛ͍ͯ͠Δ class DoSomethingIntentHandler:

    NSObject, DoSomethingIntentHandling { func handle(intent: DoSomethingIntent, completion: @escaping (DoSomethingIntentResponse) -> Void) { guard let taskName = intent.taskName else { completion(DoSomethingIntentResponse(code: .failure, userActivity: nil)) return } // do something. let response = DoSomethingIntentResponse.success(taskName: taskName) completion(response) } }