[英]How to prevent covering a ScrollView embedded in ZStack when scrolling to the bottom of the ScrollView?
您可以删除ZStack
并使用.safeAreaInset
修饰符声明粘在底部的视图,例如:
ScrollView {
// etc.
}
.safeAreaInset(edge: .bottom) {
MessageInput()
}
有关使用 Swift和Apple 开发人员文档进行黑客攻击的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.