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

iOS アプリとMVA

iOS アプリとMVA

Re:try! Swift で発表した資料です。
https://mokumoku-ios-at-next.connpass.com/event/51983/

## 参考資料

Minimum Viable Architecture -- Good Enough is Good Enough in a Startup
https://www.slideshare.net/RandyShoup/minimum-viable-architecture-good-enough-is-good-enough-in-a-startup

iOSアプリ設計大全集 2016
http://qiita.com/tattn/items/d4b95af0b60c3849243a

10分で振り返るソフトウェアアーキテクチャの歴史2017
https://speakerdeck.com/takasek/10fen-tezhen-rifan-rusohutoueaakitekutiyafalseli-shi-2017

データレイヤを分離する (LT) | try! Swift Tokyo 2017 #tryswiftconf Day1-9 聞き起こし
http://niwatako.hatenablog.jp/entry/2017/03/02/154103

kumamotone

March 31, 2017
Tweet

More Decks by kumamotone

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • ۽ຊ ࿨ਖ਼ • ࢁޱݝग़਎ • iOSΤϯδχΞˏYahoo! JAPAN •

    CAMPFIRE (#yjcamp) iOSओ࠻ • Twitter: @kumamo_tone • Github: @kumamotone 2
  2. σʔλϨΠϠΛ෼཭͢Δ • M: Minimum V: Viable A: Architecture ͷ঺հ •

    ೔ຊޠͰ͸ඞཁ࠷খݶͷΞʔΩςΫνϟ • ΞʔΩςΫνϟͱ͍͏ΑΓ͸ϝλ֓೦ • ΞʔΩςΫνϟઓࠃ࣌୅ͷiOSΞϓϦ։ൃք۾ʹͱͬͯ ྑ͍ݴ༿ͱײͨ͡ 6
  3. σʔλϨΠϠΛ෼཭͢Δ • MVA1 • MVC ͩͱViewController͕ංେ͕ͪ͠ɺ ͳΜͰ΋Ͱ͖ΔਆManager஀ੜ͕ͪ͠ • Clean Architecture,

    VIPER ͳͲ͸ɺ΍Γ͗͢ͳ͜ͱ͕ଟ͍ • ͓ͦΒ͘ MVP ΍ MVVM ʹ͓ͪͭ͘͜ͱ͕ଟ͍ 1 https://www.slideshare.net/RandyShoup/minimum-viable-architecture-good-enough-is-good-enough-in-a-startup 7
  4. ઃܭΛͬ͘͟Γ஌Δ • ઌਓͷ·ͱΊΛݟΔ • iOSΞϓϦઃܭେશू 2016 2016, tattn • 10෼ͰৼΓฦΔιϑτ΢ΣΞΞʔΩςΫνϟͷྺ࢙2017

    2017, takasek 2017, takasek https://speakerdeck.com/takasek/10fen-tezhen-rifan-rusohutoueaakitekutiyafalseli-shi-2017 2016, tattn http://qiita.com/tattn/items/d4b95af0b60c3849243a 9
  5. ઃܭΛͬ͘͟Γ஌Δ • Model + □□ • MVC / MVVM /

    MVP • ੹຿͕ࡉ͔ܾ͘·͍ͬͯΔ • VIPER / Clean Architecture 10
  6. ઃܭΛͬ͘͟Γ஌Δ • MVP • MVC ͷ ViewController ͷංେԽΛղܾ • (iOSΞϓϦͷ࣮૷Ͱ͸)

    MVCʹPresenter(P) ͕͍ͭͨ΍ͭ P ͸ UI ͷ͜ͱΛ஌Βͳ͍ • MVVM • ΄΅ MVPɻModelͷมߋΛݕ஌͠ɺViewʹ఻͑Δ࢓૊Έ 11
  7. ઃܭΛͬ͘͟Γ஌Δ • VIPER • P ͱ M Λ P ͱ

    I ͱ E ͱ M ʢͱRʣʹ • MVPΑΓ۠෼͕૿͑ͯɺΑΓ੹຿͕໌֬ʹ • CleanArchitecture • ԁঢ়ʹ૚Λ෼ׂɹ੹຿աଟΛղফͭͭ͠ɺ ΍ΓͱΓ͕֎͔Βத΁੍ݶ͞Ε͍ͯΔͷͰɺͨ͘͞Μґଘ 12