Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
개요
변경사항
키보드에 따른 content 위치조정
목표: 키보드가 표시됨에 따라 입력중인 TextField가 가려지지 않도록 하고자 고민하여 개발
목표달성
ScrollViewReader
내ScrollView
를 넣고, TextField 마다id
를 부여@FocusState
를 통해 입력하고자 하는 TextField를 인지.onChange
모디파이어를 통해 인지.scrollTo
모디파이어를 통해 TextField의 상단으로 스크롤되도록 구현에러사항
.ignoreSafearea(.keyboard)
모디파이어를 적용.padding
을 추가하여 문제를 해결함LoginSignupEnvironment 리펙토링
Reference