반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- operator
- Bug
- RxCocoa
- Operators
- swift6
- RxSwift
- typeorm
- NullObject
- RFC1738/1808
- Creating Operators
- vim
- SWIFT
- NavigationLink
- SwiftUI
- URL(string:)
- dismiss
- @Binding
- nestjs
- IOS
- ios14
- init
- graphql
- @State
- Xcode
- subject
- nonisolated
- init?
- @Environment
- Operater
- @EnvironmentObject
Archives
- Today
- Total
목록ScenePhase (1)
Tunko Development Diary

신규 프로젝트 생성시에 라이프 사이클을 선택하면 AppDelegate가 없어진 새로운 life cycle 이 적용된 프로젝트가 생성됩니다. 새로 만든 프로젝트 이름은 ’Test’라고 명명했습니다. 이후 (프로젝트명+App).swift 파일을 보면 아래 코드가 나옵니다. import SwiftUI @main struct TestApp: App { var body: some Scene { WindowGroup { ContentView() } } } 우선 제일 먼저 뜯어 볼건 @main 입니다. @main @main 기능은 앱의 시작점인 Entry Points 를 지정하는 것 입니다. @main swift-book 기존 방식인 AppDelegate에서 프레임워크 및 리소스 초기화를 진행했지만 SwiftUI 에..
Development/iOS 개발
2021. 2. 14. 13:15