> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/languages/swift-and-ios/swiftui.md).

# SwiftUI

SwiftUI는 2019년에 Apple에 의해 도입된 비교적 새로운 UI 프레임워크입니다. 선언적 프로그래밍 패러다임을 사용하여 UI를 구축하며, 개발자는 UI의 각 요소가 어떻게 보이고 동작하는지 설명하고 시스템이 이를 구현하도록 합니다.

### 장점

{% hint style="success" %}
• **선언적 구문**\
UI 코드가 간결하고 이해하기 쉽습니다.

• **크로스 플랫폼 호환성**\
iOS, macOS, watchOS, tvOS 등 여러 Apple 플랫폼에서 사용할 수 있습니다.

• **동적 UI**\
간단한 방법으로 상태 변화에 따라 UI가 자동으로 업데이트 됩니다.

• **코드 통합**\
UI와 로직을 같은 코드 내에서 관리할 수 있어 개발이 통합적이고 효율적입니다.
{% endhint %}

### 단점

{% hint style="warning" %}
• **새로운 학습 곡선**\
기존 [UIKit (유저 인터페이스 킷)](broken://pages/a6e9c59719c98cfc2be352992ad4247c83ffe69d) 사용자에게는 새로운 개념과 구문을 익혀야 합니다.

• **하위 호환성**\
iOS 13 이상에서만 작동하며, 이전 버전의 iOS에서는 사용할 수 없습니다.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/programming/languages/swift-and-ios/swiftui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
