Skip to content

mizadi/iOSImageGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 AI Image Generator (iOS)

A simple and powerful SwiftUI app that generates beautiful AI illustrations from text prompts using Apple's ImagePlayground framework. Just type a prompt and watch your imagination come to life β€” all on-device and lightning fast.


πŸ“Έ Features

  • βœ… Prompt-based image generation
  • 🎨 Uses ImagePlayground's .illustration style
  • 🧠 Async image generation with Swift concurrency
  • ⚠️ Graceful error handling
  • πŸš€ Built entirely in SwiftUI

πŸ“± Requirements

  • Xcode 16+
  • iOS 18+
  • Swift Concurrency support (iOS 15+ baseline if using modern SwiftUI)

πŸ› οΈ Installation

  1. Clone the repo:

    git clone https://github.com/mizadi/AIImageGenerator.git
  2. Open the project in Xcode:

    open AIImageGenerator.xcodeproj
  3. Build and run on an iOS 18+ simulator or device.

πŸ”’ No API keys, no cloud dependencies β€” the app uses Apple’s on-device AI image generation.


πŸš€ Usage

  1. Launch the app
  2. Type any creative prompt into the input field
  3. Tap "Generate Image"
  4. Wait a few seconds β€” your illustration will appear!

πŸ’‘ Example

Prompt:

A cat wearing sunglasses surfing a wave

Result:

Generated Image

⚠️ Your results may vary β€” ImagePlayground creates new images every time based on the prompt and style.


πŸ“‚ Folder Structure

.
β”œβ”€β”€ PromptImageView.swift      # Main SwiftUI interface
β”œβ”€β”€ ImageGenerator.swift       # Image generation logic
β”œβ”€β”€ AIImageGeneratorApp.swift  # App entry point
β”œβ”€β”€ Assets.xcassets            # App icons & colors
β”œβ”€β”€ example/
β”‚   └── cat-surfing.png        # Example result image
└── README.md

🧩 Built With


πŸ“Œ License

This project is licensed under the MIT License. Feel free to fork, use, and build on it.


πŸ™Œ Acknowledgments

Thanks to Apple for introducing ImagePlayground and on-device creativity tools. This app was inspired by the potential of AI and SwiftUI together.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages