SwiftUI
User interface toolkit for Apple platforms
SwiftUI
[[File:Script error: No such module "InfoboxImage".|frameless|alt=]]
Other names | |
---|---|
Original author(s) | |
Developer(s) | Apple Inc. |
Initial release | June 3, 2019 |
Repository |
|
Written in | Swift |
Middleware | |
Engine |
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]
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's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
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
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD