https://github.com/tusharios/weatherappswiftui
Learning SwiftUI, Apple's modern and declarative framework for building user interfaces across all Apple platforms, is a great way to create apps for iOS.
https://github.com/tusharios/weatherappswiftui
Last synced: over 1 year ago
JSON representation
Learning SwiftUI, Apple's modern and declarative framework for building user interfaces across all Apple platforms, is a great way to create apps for iOS.
- Host: GitHub
- URL: https://github.com/tusharios/weatherappswiftui
- Owner: TushariOS
- Created: 2023-10-22T13:05:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T13:19:52.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T09:13:19.337Z (over 1 year ago)
- Language: Swift
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeatherAppSwiftUI
## Button
A `Button` in SwiftUI is used to create interactive elements that respond to user taps. You can customize the appearance and actions associated with a button.
Example:
Button("Tap Me") {
// Action to perform when the button is tapped
}
## Image
The Image view is used to display images in SwiftUI. You can load images from your app's assets, system symbols, or network resources.
Example:
Image("imageName") // Load an image from your asset catalog
Image(systemName: "star.fill") // Use a system symbol
## HStack and VStack
HStack and VStack are used to arrange views horizontally and vertically, respectively. They are the building blocks for creating flexible layouts in SwiftUI.
Example:
HStack {
Text("Left")
Text("Right")
}
VStack {
Text("Top")
Text("Bottom")
}
## Text
The Text view displays text in your SwiftUI app. You can customize the font, color, and other text attributes.
Example:
Text("Hello, World!")
.font(.title)
.foregroundColor(.blue)