English 中文(简体)
展望组织Tabal Bar Preview是否有ug?
原标题:Is there a bug in VisionOS TabBar Preview?

环绕<条码>的游戏 在Xcode VisionOS模拟器上推出的Im 校正,迄今为止一切工作都很出色,但添加了<代码>TabView的预测码(即使是在运行时)。 我的法典就是这样。

TabView(selection: $selection) {
    Text("Tab 1")
        .tabItem {
            Label("Featured", systemImage: "star")
        }
        .tag(Tab.featured)

    Text("Tab 2")
        .tabItem {
            Label("List", systemImage: "list.bullet")
        }
        .tag(Tab.list)
 }

我可能失踪吗?

问题回答

没有ug。 Put TabView dans Navigation SplitView

NavigationSplitView {
    TabView {
        Text("Tab One")
            .tabItem { Label("Featured", systemImage: "star") }
        Text("Tab Two")
            .tabItem { Label("List", systemImage: "list.bullet") }
    }
    List {
        Text("Items")
    }
    .navigationTitle("Sidebar")
} detail: {
    // some code
}




相关问题
SwiftUI: How do I position a button x points above a sheet?

I am trying to recreate a Maps-style UI with a persistent bottom sheet and controls fixed above. Apple Maps UI with controls above ☝️ Example here, the "Look Around" binoculars button and ...

BraintreeDropIn deprecated functions error

I m getting this error on the latest release of BraintreeDropIn, I really don t get it since based on the patch notes, this should ve been addressed already, I have already tried cleaning derived data,...

how to limit zoom level in map swift ui?

how to limit zoom level in map swift ui i have map and need to make zoom level limited Map(coordinateRegion: $region,annotationItems: viewModel.nearbyGyms) { item in ...

UIImageView - How to get the file name of the image assigned?

Is it possible to read the name of an UIImageView s UIImage that s presently stored in the UIImageView? I was hoping you could do something kind of like this, but haven t figured it out. NSString *...

热门标签