Implementing Page Based Navigation for SwiftUI Apple Watch App

前端 未结 2 1781
长情又很酷
长情又很酷 2020-12-11 03:11

I\'m building an Apple Watch app in SwiftUI and would like to implement page based navigation so when users swipe left on the home screen, they are taken to another view.

2条回答
  •  旧时难觅i
    2020-12-11 03:24

    You can use multiple WKHostingControllers to bind them into pages using Storyboard. Every WKHostingController will represent the page in your navigation flow.

提交回复
热议问题