簡體   English   中英

SwiftUI 列表視圖在 iOS 13.5 上具有 GroupedListStyle 和 HorizontalSizeClass 常規中斷,當切換到橫向模式時

[英]SwiftUI list view with GroupedListStyle and horizontalSizeClass regular breaks on iOS 13.5 when turned to landscape mode

看起來 iOS 13.5 引入了一個新錯誤,這在 iOS 13.3 中無法重現。 當使用以下代碼並使用具有 notch 的設備切換到橫向模式時,列表中的文本會被截斷。 有沒有人有任何解決方法或修復? 向 Apple 提交了錯誤報告。

var body: some View {
    List {
        Text("Some Text")
    }
    .listStyle(GroupedListStyle())
    .environment(\.horizontalSizeClass, .regular)
}

在此處輸入圖像描述

此問題已在 Xcode 12 和 iOS 14 中修復。#FB7744163

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM