Welcome to the Maui Tutorials introductory section. We'll walk you through the basics to get you started with building your first Maui App.
Maui is a framework for building cross-platform mobile apps with a single codebase.
It's based on SwiftUI and leverages Swift & React for UI. It makes it easier to build apps for iOS, macOS, watchOS, and tvOS.
Key benefits: Rapid development, SwiftUI UI, cross-platform, component-based UI.
Maui comes with a rich set of pre-built components, including:
TextField
: For user input.Button
: For interactive elements.Image
: Displaying images.List
: For displaying lists.Table
: For tables.Card
: For displaying cards.A View
is a component that represents a UI element. Maui View
s are lightweight and highly reusable. They are fundamental to building your app's interface.
Examples:TextField
,Button
,List
,Card
.
Navigate to: Maui Documentation
This is a starting point! Explore the documentation and experiment with the examples.
Let's create a simple TextField
:
import SwiftUI
let text = "Hello, Maui!"
let greeting = text
print(greeting)