最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - iOS18.1 Issue SwiftUI's App - interactiveDismissDisabled - Stack Overflow

programmeradmin0浏览0评论

The interactiveDismissDisabled() function in SwiftUI no longer works as expected in iOS 18.1. Are there any other users experiencing the same issue and were able to resolve this?

With .interactiveDismissDisabled(true) I'm expecting to not be able to dismiss the sheet.

I encountered the problem on iPhone 14.

The code looks like this:

var screen: some View {
        StyledList {
            customButton
        }
        .bottomSheet(isPresented: $isPresented, config: config) {
            NavigationStack {
                MyScreen()
            }
            .interactiveDismissDisabled(true)
        }
}
发布评论

评论列表(0)

  1. 暂无评论