PhotoMania is a simple and delightful iOS app built with SwiftUI. The app allows users to fetch random images from an online source with the tap of a button. Designed with simplicity and a clean user interface, PhotoMania is perfect for those moments when you need inspiration or just want to explore random visuals.
- Fetch Random Images: Retrieve a new random image with a single tap.
- SwiftUI Design: Built with a modern and responsive SwiftUI layout.
- Smooth User Experience: Asynchronous image fetching ensures the app remains responsive.
- Clone this repository:
git clone https://github.com/Tope19/PhotoMania.git
- Open the project in Xcode:
cd PhotoMania open PhotoMania.xcodeproj - Ensure you have Xcode 15.0 or later installed.
- Build and run the app on your simulator or connected device.
- On launch, the app displays a placeholder image.
- Tap the "New Image" button to fetch a random image from the internet.
- The app fetches the image asynchronously and displays it in a styled container.
- SwiftUI: For building declarative and responsive user interfaces.
- URLSession: To fetch images from an online source.
- Combine: For state management with
@StateObjectand@Published.
PhotoMania/
├── PhotoManiaApp.swift // App entry point
├── ContentView.swift // Main UI and logic
└── Assets.xcassets // Image assets
- Add a loading indicator while fetching images.
- Include options to save fetched images to the device.
- Allow users to specify dimensions for the random image.
- Support sharing images directly from the app.
Contributions are welcome! If you'd like to add a feature or fix an issue:
- Fork this repository.
- Create a new branch for your changes.
- Open a pull request with your updates.