AndreaMiotto / PartialSheet

A SwiftUI Partial Sheet fully customizable with dynamic height
https://github.com/AndreaMiotto/PartialSheet/wiki
MIT License
1.72k stars 192 forks source link

Bugfix PartailSheet height adjustment when keyboard is shown #168

Closed adrianhartanto004 closed 1 year ago

adrianhartanto004 commented 1 year ago

Co-Authored-By: @adrianhartanto004 Co-Authored-By: @naufalazzaahid

Background

Fix calculate sheetPosition when keyboard is shown with a text field

Approach

  1. Remove subtracting self.keyboardOffset on calculating sheetPosition position

Video

https://user-images.githubusercontent.com/50439894/212048871-30d46f02-1414-4289-9c1b-d9d4e0710920.mp4

https://user-images.githubusercontent.com/50439894/212049759-c45980b2-867f-4db2-910a-53fef5f25b80.mp4

Known Issue