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

SwiftUI Inspectorが難しすぎる / Mobile Act OSAKA 18

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

SwiftUI Inspectorが難しすぎる / Mobile Act OSAKA 18

Avatar for Yutaro Muta

Yutaro Muta

March 06, 2026

More Decks by Yutaro Muta

Other Decks in Programming

Transcript

  1. yutailang0119 • 株式会社はてな ◦ ◦ ◦ • • @京都オフィス アプリケーションエンジニア

    サービスプラットフォームチーム try! Swift Tokyo Organizer ◦ 2026チケット販売中 AVP座談会 🥽 2
  2. 5

  3. 6

  4. 8

  5. 9

  6. 11

  7. 12

  8. ① Inside navigation struct Inspectors: View { @State private var

    isPresented: Bool = false var body: some View { NavigationStack { RootView() .toolbar { Toggle(isOn: $isPresented) } .inspector(isPresented: $isPresented) {} } } } 18
  9. 19

  10. Inspector内でNavigationLink struct Inspectors: View { var body: some View {

    NavigationStack { RootView() .toolbar { Toggle(isOn: $isPresented) } .inspector(isPresented: $isPresented) { NavigationStack { NavigationLink() } } } } } 21
  11. 22

  12. 23

  13. 24

  14. 27

  15. ② Outside navigation struct Inspectors: View { @State private var

    isPresented: Bool = false var body: some View { NavigationStack { RootView() .toolbar { Toggle(isOn: $isPresented) } } .inspector(isPresented: $isPresented) {} } } 29
  16. 30

  17. 31

  18. Outside navigationの注意点 struct Inspectors: View { var body: some View

    { NavigationStack { RootView() } .inspector(isPresented: $isPresented) { NavigationStack { Inspector() .toolbar { Toggle(isOn: $isPresented) } } } } } 33
  19. 34

  20. 35

  21. 45

  22. try! Swift Tokyo 2026 • 2026/04/12 (日) - 14 (火)

    • 立川ステージガーデン • https://tryswift.jp/ 46