Keyboard appearance in ScrollView (SwiftUI)

Viewed 26

I have set up a ScrollView and a TextView:

ScrollViewReader { proxy in
    ScrollView {
        // ...
    }
    .safeAreaInset(edge: .bottom, spacing: 0) {
        TextInputCellView() { value in
            vm.send(text: value)
        }
}

When the keyboard appears or resizes, the ScrollView resizes perfectly (as can be seen from the indicators in the video), however the item which was displayed at the bottom before the keyboard appeared should still be in the view after the appearance (same for when the keyboard size changes). How can i achieve that ?

enter image description here

0 Answers
Related