contentview

 avatar
unknown
plain_text
5 months ago
661 B
2
Indexable
import SwiftUI
import Photos

struct ContentView: View {
    let memeDestroyer = MemeDestroyer() // Create an instance of the MemeDestroyer class
    
    var body: some View {
        VStack {
            Button(action: {
                // Asynchronously call requestPhotoAccess
                DispatchQueue.main.async {
                    memeDestroyer.requestPhotoAccess()
                }
            }) {
                Text("Clean Up Memes")
                    .padding()
                    .background(Color.blue)
                    .foregroundColor(.white)
                    .cornerRadius(8)
            }
        }
        .padding()
    }
}
Editor is loading...
Leave a Comment