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

cluster_SwiftUI

 cluster_SwiftUI

9e32efa81b675ecd55c166fb7b0a1890?s=128

Cluster Inc.

March 10, 2022
Tweet

More Decks by Cluster Inc.

Other Decks in Technology

Transcript

  1. clusterͰͷSwiftUI׆༻ྫ 2022೥3݄3೔ ڮຊ

  2. Cluster, Inc. All Rights Reserved. ࣗݾ঺հ 2 • ϓϥοτϑΥʔϜࣄۀ෦GrowthTeamॴଐ •

    ໿1೥ؒͷΠϯλʔϯظؒΛܦͯɺ2017೥ʹ ৽ଔͰೖࣾ • ιϑτ΢ΣΞΤϯδχΞ⚡ • iOS/Unity
  3. Cluster, Inc. All Rights Reserved. ࠓ೔࿩͢͜ͱ 3 • SwiftUIಋೖͷܦҢ΍ํ਑ •

    clusterͰͷSwiftUIಋೖࣄྫ • ಋೖͯ͠ײͨ͡ྑ͍఺ɾ஫ҙ఺ • ࠓޙऔΓ૊Έ͍ͨ͜ͱ
  4. SwiftUIಋೖͷܦҢ΍ํ਑ 🗺

  5. Cluster, Inc. All Rights Reserved. ಋೖͷܦҢ 5 • Ϟμϯͳٕज़Λ࢖͍͔ͨͬͨ •

    ٕज़తͳνϟϨϯδWelcomeͳࣾ෩ • UIύʔπͷίϯϙʔωϯτԽ͕༰қ • ։ൃ଎౓ͷ޲্ • ࢖༻͍ͯ͠ΔطଘϥΠϒϥϦ͕SwiftUIʹରԠ͍ͯͨ͠ • Lottie, SDWebImage, etc…
  6. Cluster, Inc. All Rights Reserved. ಋೖͷํ਑ 6 • Collection/TableViewͷCellͷ಺෦ΛSwiftUIԽ͍ͯ͘͠ •

    ৽ͨʹ࣮૷͢Δը໘ʹ͸ੵۃతʹ࢖༻͢Δ • UIHostingControllerΛCellʹ৐ͤΔ
  7. clusterͰͷSwiftUIಋೖࣄྫ 🚀

  8. Cluster, Inc. All Rights Reserved. ͜Μͳͱ͜ΖͰ࢖ΘΕ͍ͯ·͢ 8 ϝοηʔδػೳ ϫʔϧυΫϥϑτ

  9. Cluster, Inc. All Rights Reserved. ৽͍͠APIͷ࢖༻ࣄྫ 9 ϝοηʔδػೳ contextMenu Long

    Tap
  10. ಋೖͯ͠ײͨ͡ྑ͍఺ 🙆ɾ஫ҙ఺ ⚠

  11. Cluster, Inc. All Rights Reserved. ྑ͍఺ 11 • Previewػೳ •

    UI࣮૷ͷΠςϨʔγϣϯߴ଎Խ • UIύʔπͷίϯϙʔωϯτԽ • ڞ௨෦෼Λ͋ͱ͔Β੾Γग़͠΍͍͢ • ίʔυϨϏϡʔ͠΍͘͢ • XMLΑΓ͸Δ͔ʹಡΈ΍͍͢
  12. Cluster, Inc. All Rights Reserved. ϝοηʔδػೳͰͷ׆༻ྫ 12 • ϝοηʔδόϒϧͷ۠ผɺจࣈͷݟ੾Εɺෳ਺ߦɺϦϯΫςΩετ

  13. Cluster, Inc. All Rights Reserved. ஫ҙ఺ 13 • Previewػೳ •

    දࣔ͞Εͳ͘ͳΓ͕ͪ • ࢖͑ΔAPIͷਫ਼ࠪ • iOSόʔδϣϯʹΑͬͯ࢖͑ΔAPI͕ҧ͏ • ViewͷαΠζऔಘ͕ࠔ೉ • GeometryReader͕Ή͍ͣ
  14. ࠓޙऔΓ૊Έ͍ͨ͜ͱ 💪

  15. Cluster, Inc. All Rights Reserved. ࠓޙऔΓ૊Έ͍ͨ͜ͱ 15 • SwiftUIͷίϯϙʔωϯτ؅ཧ •

    ݱঢ়Ͳ͜ͰԿ͕࢖ΘΕ͍ͯΔͷ͔͕෼͔ΓͮΒ͍ • ModuleԽɺStorybook • ΞʔΩςΫνϟ౷Ұ • SwiftUI + Combine Ͱ MVVM
  16. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠