Skip to content

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.

Notifications You must be signed in to change notification settings

TushariOS/WeatherAppSwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages