Update ChatScrollView on WatchOS 10
This commit is contained in:
parent
142d7a38bc
commit
1d964ce68e
|
@ -12,23 +12,17 @@ struct ChatScrollView<Content: View>: View {
|
|||
}
|
||||
|
||||
var body: some View {
|
||||
if #available(watchOS 10.0, *) {
|
||||
ScrollView {
|
||||
content()
|
||||
}
|
||||
.defaultScrollAnchor(.bottom)
|
||||
} else {
|
||||
ScrollView(showsIndicators: false) {
|
||||
content()
|
||||
.rotationEffect(.degrees(180))
|
||||
}
|
||||
.rotationEffect(.degrees(180))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if #available(watchOS 10.0, *) {
|
||||
// ScrollView {
|
||||
// content()
|
||||
// }
|
||||
// .defaultScrollAnchor(.bottom)
|
||||
// } else {
|
||||
// ScrollView(showsIndicators: false) {
|
||||
// content()
|
||||
// .rotationEffect(.degrees(180))
|
||||
// }
|
||||
// .rotationEffect(.degrees(180))
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue