![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FOOxaw%2FbtqRx0PJKVu%2FiN7Kf0bzd8MyOdOUu49BX0%2Fimg.png)
[Swift UI] Tutorial 02 - 기본 구조
·
Mac/Swift
developer.apple.com/tutorials/swiftui/creating-and-combining-views Apple Developer Documentation developer.apple.com 1. 새 프로젝트 만들기 2. [프로젝트 이름].swift SwiftUI app life cycle을 사용하는 앱은 앱 프로토콜을 준수하는 구조가 있다. 이 구조의 속성은 하나 이상의 scene을 반환하고, 이 장면은 다시 표시할 내용을 제공한다. @main속성은 앱의 시작점을 식별한다. import SwiftUI @main struct SwiftUI_Tutorial_01App: App { var body: some Scene { WindowGroup { ContentView() } } } 3. C..