본문 바로가기

튜토리얼3

[상태 관리] Swift - observable, View life cycle 참고 : https://developer.apple.com/tutorials/app-dev-training/making-classes-observable https://developer.apple.com/tutorials/app-dev-training/responding-to-events 이번에는 상태 관리(State Management)에 대해서 간단하게 정리해보려고 한다. Making a class observable class ScrumTimer: ObservableObject { @Published var activeSpeaker = "" @Published var secondsElapsed = 0 @Published var secondsRemaining = 0 // ... } - Observab.. 2023. 10. 24.
[TIL] 스위프트 공식 튜토리얼 따라하기(2) - 카드 뷰(card view) 만들기 출처 : https://developer.apple.com/tutorials/app-dev-training/creating-a-card-view Creating a card view | Apple Developer Documentation Scrumdinger keeps a list of daily scrums that the user attends, and it displays that list in its root view. developer.apple.com 안녕하세요. 리액트해본 스위프트 입문자입니다. 블로그 글 쓰는게 공부하는 것보다 더 오래걸리는 것 같습니다. 쓰다보면 좀 더 빨리 쓰게 되겠죠..? 1. 프로젝트에 Models 라는 이름의 그룹 추가 : 폴더 추가 같은거임. 그 안에 Theme.. 2023. 10. 16.
[TIL] 스위프트 공식 튜토리얼 따라하기(1) - 스택을 이용한 배열 출처 : https://developer.apple.com/tutorials/app-dev-training/using-stacks-to-arrange-views Using stacks to arrange views | Apple Developer Documentation Create, modify, and combine views to compose your app’s user interface using the SwiftUI declarative syntax. You’ll start building Scrumdinger, an app that manages meetings, by arranging groups of views to create the meeting timer screen. As you .. 2023. 10. 13.