ZStack-iOS 14 beta-Zstack在键盘上飞

时间:2020-08-12 13:11:03

标签: swiftui ios14 zstack

在新的IOS 14 beta中,我使用ZStack在选项卡上显示徽章。出现键盘时-zstack fly on the keyboard,但必须将其固定在底部。 iOS 13-没有这样的东西。

ZStack {
            Circle()
              .foregroundColor(.red)
            Text("\(self.realm.ItemsAll.count)")
              .foregroundColor(.white)
              .font(Font.system(size: 11))
             
             
}.frame(width: 15, height: 15)

0 个答案:

没有答案