Skip to content

Feat: 6주차 SwiftUI 실습코드 구현#9

Open
HEHEEUN wants to merge 3 commits intomainfrom
feature/week6
Open

Feat: 6주차 SwiftUI 실습코드 구현#9
HEHEEUN wants to merge 3 commits intomainfrom
feature/week6

Conversation

@HEHEEUN
Copy link
Collaborator

@HEHEEUN HEHEEUN commented Nov 29, 2024

6주차 SwiftUI실습코드 구현

  • Section 작업 수행
  • NavigationStack

Simulator Screen Recording - iPhone 16 Pro - 2024-11-30 at 14 16 54

@HEHEEUN HEHEEUN requested a review from sozohoy November 30, 2024 05:18
Copy link
Member

@sozohoy sozohoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !

Comment on lines +14 to +16
// 여기는 부모 뷰! switch넣어서 값 변경하고 싶으면, buttonTitleLabel을 @State private var isButton 로 선언했어야 함 ! ! !
// 하위 뷰에서 @Binding var isButton 로 선언하여 하위 뷰에 넘겨줄 수 있다 !! + 하위에서 값을 변경하여야 할 때! @State로 버튼을 선언할 경우, 부모 뷰의 버튼상태와 서로 다른 생명주기?를 갖게 됨.
//parameter 넘길 때 $사인이 필요
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 그렇군요 !!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 이 파일에 다 들어있는 구조가 좀 이상한 것 같아요. 분리해봅시다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants