Код: Выделить всё
VStack {
...
}
.fixedSize(horizontal: false, vertical: true)
.clipped()
.background {
Color.blue
}
.persistentSystemOverlays(.hidden)
.transition(.move(edge: .bottom))
Код: Выделить всё
.overlay(alignment: .bottom, content: {
if showColorCorrectionMenu {
ColorCorrectionMenu()
.ignoresSafeArea(edges: [.bottom]).frame(height:170)
}
}
Код: Выделить всё
withAnimation(.easeInOut(duration:0.3)) {
showColorCorrectionMenu.toggle()
}

Подробнее здесь: https://stackoverflow.com/questions/787 ... not-smooth
Мобильная версия