Refactor frame reader API (#2016)

This commit is contained in:
Alfonso Grillo
2023-11-02 15:15:57 +01:00
committed by GitHub
parent 14badab01f
commit 4012aca661
9 changed files with 23 additions and 42 deletions
@@ -71,7 +71,7 @@ struct MessageComposer: View {
Color.clear
.overlay(alignment: .top) {
composerView
.background(ViewFrameReader(frame: $composerFrame))
.readFrame($composerFrame)
}
.frame(minHeight: ComposerConstant.minHeight, maxHeight: max(composerHeight, composerFrame.height),
alignment: .top)