Skip to content

Yashraghuvans/SwiftFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftFlow Weather Application

This is a simple weather application built using SwiftUI. It displays the current weather for a specified city and a 5-day forecast.

Author

Yash Raghuvanshi

Features

  • 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.

Screenshots

Screenshot 2025-03-30 at 10 47 48 PM Screenshot 2025-03-30 at 10 47 56 PM

Technologies Used

  • Swift
  • Xcode

Getting Started

  1. Clone the repository:

    git clone https://github.com/Yashraghuvans/SwiftFlow.git
    cd SwiftFlow
  2. Open the project in Xcode:

    Open App.xcodeproj in Xcode.

  3. Run the application:

    Select a simulator or connect your iOS device and run the application.

Project Structure

  • 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.

Customization

  • You can change the city name in ContentView.swift by modifying the cityName variable in the CityName view.
  • You can customize the weather icons and temperatures in ContentView.swift and WeatherDayView.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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages