ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • SwiftUI란? - Document 해석 및 정리
    SwiftUI/Essential 2020. 12. 14. 22:02

    출처 : https://developer.apple.com/xcode/swiftui/

     

    SwiftUI - Framework

    Declare the user interface and behavior for your app on every platform.

    모든 platform에서 당신의 앱의 UI와 행동을 선언하라.

     

    Overview

    SwiftUI provides views, controls, and layout structures for declaring your app’s user interface. The framework provides event handlers for delivering taps, gestures, and other types of input to your app, and tools to manage the flow of data from your app’s models down to the views and controls that users will see and interact with.

     

    해석 : 스위프트 유아이(이하 스유)는 앱의 UI를 선언하기 위해 views, controls, layout 구조체들을 제공한다. 이 프레임워크는 taps, gestures, 그리고 앱에 들어오는 다른 종류의 input들을 전달하기 위한 event handler들을 제공하고, 앱의 모델에서 view와 유저들이 사용하고 보게 될 control들로 전달되는 데이터 흐름을 관리하는 툴을 제공한다.

     

    Define your app structure using the App protocol, and populate it with scenes that contain the views that make up your app’s user interface. Create your own custom views that conform to the View protocol, and compose them with SwiftUI views for displaying text, images, and custom shapes using stacks, lists, and more. Apply powerful modifiers to built-in views and your own views to customize their rendering and interactivity. Share code between apps on multiple platforms with views and controls that adapt to their context and presentation.

     

    해석 : App 프로토콜을 사용하여 앱의 구조를 정의하고, 앱의 UI를 만들 뷰들로 채운 scene들을 채워 넣어라. View 프로토콜을 준수하는 커스텀 뷰들을 생성하고, text, images, list 등을 표시하기 위해 SwiftUI 뷰들로 구성하라. modifiers를 기존 view 그리고 렌더링이나 상호작용을 위해 커스터마이징 한 view들에 적용하라. 맥락과 표시에 적합한 뷰들과 컨트롤들의 코드를 멀티 플랫폼(macOS, iPadOS 등) 앱들 간에 공유하라

     

    You can integrate SwiftUI views with objects from the UIKit, AppKit, and WatchKit frameworks to take further advantage of platform-specific functionality. You can also customize accessibility support in SwiftUI, and localize your app’s interface for different languages, countries, or cultural regions.

     

    해석 : 당신은 플랫폼의 세세한 기능들의 이점을 극대화 시키기 위해 UIKit, AppKit, WatchKit 프레임워크들의 objecte들을 스유 view들과 통합시킬 수 있다. 또한 SwiftUI의 접근 지원을 커스터마이징 할 수 있고, 다른 언어, 지역, 문화적 종교들을 위한 앱의 인터페이스를 로컬라이즈 할 수 있다.

     

     

    *정리

    새로운 UI 컴포넌트에 적응하고, modifiers에만 적응하면 스위프트랑 비슷한 것 같다! 아님 말구...ㅠ

     

    이렇게 보니 Swift랑 뭐가 다른지 모르겠다... 그냥 Swift 처럼 하면 되는거 아닌가 ㅇㅁㅇ 배우다 보면 알겄지...

     

     

    *수정할 부분은 언제든지 말씀해주세요! 많이 배우고 적극 반영하도록 하겠습니다 :)*

     

    참고 : developer.apple.com/documentation/swiftui/

    'SwiftUI > Essential' 카테고리의 다른 글

    App Structure and Behavior 해석  (0) 2020.12.15
Designed by Tistory.