본문 바로가기

TodayILearned6

[상태 관리] 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.
[TIL] A Swift Tour 대충이지만 읽기 완료! 내 글은 구독자를 위해 쓰여 있지 않다. 약간 서브 브레인 역할을 블로그가 하고 있기 때문에. 친절한 포스트는 아니다.ㅎㅎ 이렇게 쓰다가 나도 찾지 못하거나, 이해 못하진 않을까 하는 생각도 든다. 이전 글 : https://hensorflow.tistory.com/46 [TIL] 정말로 처음 시작하는 Swift 오늘도,,, 일은 안하고 동료 분들이랑 스몰(이 아닌 것 같은)토크와 개인 공부를 하고 있다. (담배 피우는 사람들 따라나가기도 함ㅋㅋㅋ) 크로스 플랫폼 앱 개발을 한다해도 네이티브가 필요한 hensorflow.tistory.com 이어서 읽어가기! async - await 예제 코드 func fetchUserID(from server: String) async -> Int { if server.. 2023. 9. 13.