This is a simple weather application built using SwiftUI. It displays the current weather for a specified city and a 5-day forecast.
- Displays the current city name.
- Shows the main weather icon and temperature.
- Provides a 5-day weather forecast with icons and temperatures.
- Includes a button to simulate changing day/time (currently prints "tapped" to the console).
- Uses a gradient background for a visually appealing look.


-
Clone the repository:
git clone https://github.com/Yashraghuvans/SwiftFlow.git cd SwiftFlow
-
Open the project in Xcode:
Open
App.xcodeproj
in Xcode. -
Run the application:
Select a simulator or connect your iOS device and run the application.
ContentView.swift
: Contains the main view of the weather app.WeatherDayView.swift
: Defines the view for each day in the 5-day forecast.BackgroundColor.swift
: Creates the gradient background.CityName.swift
: Displays the city name.MainWeather.swift
: Displays the main weather information (icon and temperature).WeatherBtn.swift
: Defines the custom button for changing day/time.
- You can change the city name in
ContentView.swift
by modifying thecityName
variable in theCityName
view. - You can customize the weather icons and temperatures in
ContentView.swift
andWeatherDayView.swift
. - The gradient background colors can be changed in
BackgroundColor.swift
. - The button action can be modified in
ContentView.swift
to implement actual day/time changes or other functionalities.