contentview
unknown
plain_text
a year ago
661 B
6
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