SwiftUI
Developer(s) | Apple Inc. |
---|---|
Initial release | June 3, 2019 |
Repository |
|
Written in | Swift |
Engine | |
Operating system | iOS, macOS, watchOS, tvOS |
Platform | Apple platforms |
Type | User interface framework |
License | Proprietary |
SwiftUI is a user interface toolkit developed by Apple Inc. for building UIs across all Apple platforms using the Swift programming language. It was introduced at the WWDC in 2019.
Overview[edit | edit source]
SwiftUI provides a declarative syntax that allows developers to build user interfaces by describing what they want the UI to do. This approach contrasts with the imperative style used in UIKit and AppKit, where developers must write code to manage the state and behavior of the UI components.
Features[edit | edit source]
- **Declarative Syntax**: Developers can create complex interfaces with simple and readable code.
- **Live Previews**: Integrated with Xcode, SwiftUI allows developers to see real-time previews of their UI as they code.
- **Cross-Platform**: SwiftUI is designed to work seamlessly across iOS, macOS, watchOS, and tvOS.
- **Dynamic Type**: Supports dynamic type and accessibility features out of the box.
- **Animations**: Built-in support for creating smooth and complex animations.
Components[edit | edit source]
SwiftUI includes a variety of built-in components that developers can use to build their applications:
- **Views**: Basic building blocks like Text, Button, Image, etc.
- **Layouts**: Tools for arranging views, such as HStack, VStack, and ZStack.
- **Modifiers**: Methods that can be applied to views to change their appearance and behavior.
Adoption[edit | edit source]
Since its introduction, SwiftUI has been adopted by many developers for building modern applications on Apple platforms. It is seen as the future of UI development in the Apple ecosystem, gradually replacing older frameworks like UIKit and AppKit.
See also[edit | edit source]
References[edit | edit source]
External links[edit | edit source]
Navigation: Wellness - Encyclopedia - Health topics - Disease Index - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Contributors: Prab R. Tumpati, MD