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

社内Swiftもくもく会成果発表

horimislime
December 14, 2016

 社内Swiftもくもく会成果発表

horimislime

December 14, 2016
Tweet

More Decks by horimislime

Other Decks in Programming

Transcript

  1. Swift΋͘΋͘ձ੒Ռൃද
    2016/12/14 (ਫ)
    1

    View full-size slide

  2. ΞδΣϯμ
    • ੒Ռ෺ʹ͍ͭͯʢmacOSΞϓϦʣ
    • macOSΞϓϦΛ։ൃͯ͠Έͯ
    • ޻෉ͨ͠఺
    • ࠓճͷ։ൃΛ௨ֶͨ͡ͼ
    • ·ͱΊ
    2

    View full-size slide

  3. EsaMenu
    • macOS༻ͷεςʔλεόʔৗறΞϓϦ
    • WIPهࣄʹ΋ؾ͚ͮΔΑ͏ʹ͍ͨ͠ͱ͍͏ͷ͕Ϟνϕʔγϣϯ
    • ৽ணΛ௨஌ηϯλʔͰड͚औΓ͔͕ͨͬͨະ࣮૷!
    5

    View full-size slide

  4. macOSΞϓϦΛ։ൃͯ͠Έͯ
    6

    View full-size slide

  5. iOS։ൃऀʹ͸ೃછΈ΍͍͢؀ڥʢʹݟ͑Δʣ
    • Xcode
    • Swift, Foundation, Storyboard, Xib
    • AppKit (NSView, NSButton,...etc)
    7

    View full-size slide

  6. ϑλΛ։͚ͯΈΔͱɾɾɾ
    • APIͷҹ৅͸UIKitΑΓ਺೥஗ΕɻਵॴʹϨΨγʔײ
    • UIKitͰ౰વͷΑ͏ʹ࢖͍ͬͯΔΞϨίϨ͕༻ҙ͞Ε͍ͯͳ͍
    • Webͷ৘ใͷগͳ͞΋ਏ͞ʹܨ͕͍ͬͯΔ
    override func viewDidLoad() {
    ...
    tableView.setDelegate(self)
    tableView.setDataSource(self)
    }
    8

    View full-size slide

  7. ΤίγεςϜͷ໰୊
    • UIपΓͷϥΠϒϥϦ͸macOSඇରԠ͕ଟ͍
    • fastlane΋࣮͸େ൒ͷaction͕iOS͔͠ରԠ͍ͯ͠ͳ͍ʂ
    • RevealʢUIσόοΨʣ΋࢖͑ͣۤ࿑
    9

    View full-size slide

  8. AppKitͷྑ͔ͬͨͱ͜Ζ
    • iOSʹൺ΂ͯඪ४ͷUIίϯϙʔωϯτ͕ॆ࣮͍ͯ͠Δ
    • Interface BuilderͰ΄΅׬੒ܗͷݟͨ໨Λ࣮ݱͰ͖Δ
    10

    View full-size slide

  9. ޻෉ͨ͠఺
    11

    View full-size slide

  10. ૣ͍ஈ֊Ͱ৭ʑఘΊͨ
    • AppKitपΓ͕஍ཕͩΒ͚Ͱ৭ʑఘΊΔܾஅ
    • Swift3ɺࢼ͍ͨ͠ϥΠϒϥϦ͸ະ஌ͷཁૉ͕ଟ͍ͷͰ΍Ίͨ
    • σβΠϯ͸࣌ؒΛ͔͚ͯ΋ྑ͘Ͱ͖ͦ͏ʹͳ͔ͬͨͷͰஅ೦
    12

    View full-size slide

  11. ݁Ռͱͯ͠
    • ҰԠϦϦʔεঢ়ଶʹ͸͍͚࣋ͬͯͨ !
    • ͔͠͠ɺݱࡏετΞਃ੥͕௨Βͳ͍ঢ়ଶ
    • RSS feedతͳػೳ͚ͩͩͱμϝɺͱͷࣄ
    • ౰໘͸GitHub ReleasesͰzip഑෍͢Δ༧ఆ
    13

    View full-size slide

  12. ࠓճͷ։ൃΛ௨ֶͨ͡ͼ
    14

    View full-size slide

  13. ϦϦʔε͢Δͱؾָ͕ʹͳΔ
    • Ұ୴Ұ۠੾Γ෇͚ΒΕΔ
    • ೤ྔ͕Ͳ͏ͯ͠΋࣌ؒͱͱ΋ʹݮ͖ͬͯͯ͠·͏
    • Ұ౓ετΞ / GitHubެ։ʹ͚͗ͭ͜Δͱͦͷޙͷվળ͕ؾָ
    15

    View full-size slide

  14. ۀ຿ͷ։ൃͱ΋௨͡ΔԿ͔
    • ෆ֬ఆཁૉΛ͍͔ʹ௵͍͔͕ͯ͘͠੒ޭͷΧΪ
    • ࢓ࣄɿݻ·͍ͬͯͳ͍࢓༷ɺ֎෦ཁҼɺϢʔβFB
    • ࠓճɿAppKitɺSwift3ɺઑͬͨϥΠϒϥϦ
    • ʮ଎͘׬੒͍ͤͨ͞ʯͱʮྑ͍ίʔυʹ͍ͨ͠ʯͷδϨϯϚ
    16

    View full-size slide

  15. macOS։ൃʹ͍ͭͯࢥ͏ࣄ
    • ਖ਼௚Electronָ͕͔΋...ͱ͍͏ؾ࣋ͪ͸͋Δ
    • PhotonͳͲͰUI΋͍͍ײ͡ʹͰ͖ͦ͏
    • ͨͩ͠ύϑΥʔϚϯε͸Cocoa͕ѹ౗తʹྑ͍
    17

    View full-size slide

  16. ·ͱΊ
    • macOS޲͚ͷΞϓϦ։ൃ͸͍Ζ͍Ζେม
    • ݸਓ։ൃͱͯ͠ɺΞϓϦͱ͍͏ܗ͸৭ʑֶͼ͕͋Γྑ͔ͬͨ
    • CocoaɾElectronͲͪΒ΋macOS։ൃͷબ୒ࢶͱͯ͠ΞϦ
    18

    View full-size slide