-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I find some of the APIs in Media very difficult to understand. A real-world example of album.add() would be very helpful.
I am downloading random images, png, Jpeg or webp and would like to save in an album I have created. How does one construct a Photo object conforming to MediaProtocol?
I have a UIImage or cGImage and cannot figure out how to create the Photo...
// image was downloaded via KingFisher
let album = try Album.with(identifier: DEFAULT_ALBUM_NAME)
album?.add() <-- I have a UIImage or CGImage instance, how do I convert it to a `Photo`?

Metadata
Metadata
Assignees
Labels
No labels