Open
Conversation
sozohoy
approved these changes
Dec 2, 2024
Comment on lines
+14
to
+16
| // 여기는 부모 뷰! switch넣어서 값 변경하고 싶으면, buttonTitleLabel을 @State private var isButton 로 선언했어야 함 ! ! ! | ||
| // 하위 뷰에서 @Binding var isButton 로 선언하여 하위 뷰에 넘겨줄 수 있다 !! + 하위에서 값을 변경하여야 할 때! @State로 버튼을 선언할 경우, 부모 뷰의 버튼상태와 서로 다른 생명주기?를 갖게 됨. | ||
| //parameter 넘길 때 $사인이 필요 |
Member
There was a problem hiding this comment.
- 이 파일에 다 들어있는 구조가 좀 이상한 것 같아요. 분리해봅시다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
6주차 SwiftUI실습코드 구현