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

SwiftUIで「意図」を伝える / swiftui_intention

42a6a049ac8f5265f31858a9509217fb?s=47 uhooi
July 26, 2022

SwiftUIで「意図」を伝える / swiftui_intention

集まれSwift好き!Swift愛好会 vol.69 @ オンライン
https://love-swift.connpass.com/event/254858/

## 参考リンク

- Effective SwiftUI 候補(仮説)
https://github.com/YusukeHosonuma/Effective-SwiftUI

- Food Truck
Apple 公式のサンプルコード
https://github.com/apple/sample-food-truck

- WWDC のセッション
https://developer.apple.com/wwdc22/sessions/

- #SwiftUIレイアウト一本勝負
https://twitter.com/hashtag/SwiftUIレイアウト一本勝負?src=hashtag_click&f=live

42a6a049ac8f5265f31858a9509217fb?s=128

uhooi

July 26, 2022
Tweet

More Decks by uhooi

Other Decks in Programming

Transcript

  1.  Ր  ू·Ε4XJGU޷͖ʂ4XJGUѪ޷ձWPM!ΦϯϥΠϯ !UIF@VIPPJ 4XJGU6*ͰʮҙਤʯΛ఻͑Δ📣

  2. ࠷ۙͷָ͠Έ 4XJGU6*ϨΠΞ΢τҰຊউෛͷ͓୊Λղ͘

  3. ʮ4XJGU6*ʯͱ͸ʁ

  4. ʮ4XJGU6*ʯͱ͸ʁ 6*Λએݴతʹߏங͢ΔϑϨʔϜϫʔΫ

  5. None
  6. 26*,JUͱ4XJGU6*ͷ 
 Ұ൪ͷҧ͍͸ʁ

  7. "ίʔυϨϏϡʔ͠΍͍͢

  8. ͭ·Γ 
 Մಡੑͷߴ͍6*ͷίʔυ͕ 
 ٻΊΒΕΔ

  9. *NBHF 5FYUͷྫ HStack { Image(systemName: "swift") Text("Hello, SwiftUI!") }

  10. *NBHF 5FYUͷྫ HStack { Image(systemName: "swift") Text("Hello, SwiftUI!") } Label(

    "Hello, SwiftUI!", systemImage: "swift" ) -BCFMΛ࢖͏ͱ*NBHFͱ5FYUʹؔ࿈͕͋Δ͜ͱΛࣔͤΔ ⚠ ✅
  11. 4XJGU6*͸ಉ͡6*Λ 
 ༷ʑͳύλʔϯͰॻ͚Δ

  12. None
  13. 5FYUͷંΓฦ͠ͷྫ HStack { Text("༏ઌͯ͠ද͍ࣔͨ͠จࣈྻͰ͢") .fixedSize() Text("͋·Γͦ͏Ͱ΋ͳ͍จࣈྻͰ͢") }

  14. 5FYUͷંΓฦ͠ͷྫ HStack { Text("༏ઌͯ͠ද͍ࣔͨ͠จࣈྻͰ͢") .fixedSize() Text("͋·Γͦ͏Ͱ΋ͳ͍จࣈྻͰ͢") } HStack { Text("༏ઌͯ͠ද͍ࣔͨ͠จࣈྻͰ͢")

    .layoutPriority(1) Text("͋·Γͦ͏Ͱ΋ͳ͍จࣈྻͰ͢") } MBZPVU1SJPSJUZ @ Λ࢖͏ͱϨΠΞ΢τͷ༏ઌॱҐΛ෇͚ΒΕΔ ⚠ ✅
  15. ҙਤ͕఻ΘΔ࣮૷Λ 
 ৺ֻ͚Δ

  16. ·ͱΊ w 4XJGU6*ͷ7JFX͸ϨϏϡʔͰ͖Δ w 7JFXͷίʔυϨϏϡʔͰ͸ՄಡੑΛ֬ೝ͢Δ w ҙຯ͕Θ͔Βͳ͔ͬͨΒੵۃతʹίϝϯτ͠Α͏ w αϯϓϧίʔυ΍ެࣜυΩϡϝϯτͰ஌ࣝͷ෯Λ޿͛Δ

  17. Φεεϝจݙ w & ff FDUJWF4XJGU6*ީิʢԾઆʣ w 'PPE5SVDL 
 "QQMFެࣜͷαϯϓϧίʔυ w

    88%$ͷηογϣϯ w 4XJGU6*ϨΠΞ΢τҰຊউෛ 
 4XJGU6*ͷϨΠΞ΢τ໰୊ू
  18. J04%$+BQBO  ౔ EBZ 4XJGU6*ͷʮ໋໊ʯͱʮ෼ׂʯʹ͍ͭͯ࿩͠·͢✨

  19. ΢ϗʔΠ J04ΞϓϦΤϯδχΞ w ϙέΧָ͍͠