-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error with trying to save Image #18
Comments
Hey @feodormak, can you please comment the code that you're trying to run? |
Ok, apologies. Solved it. My noob mistake. The UIImage optional needs to be unwrapped to be used. Thanks! |
Glad you figured it out :^) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried to save an image as shown in your example, and the app always crashes with,
fatal error: Optional does not conform to Encodable because UIImage does not conform to Encodable
When I hold down Alt/Option and hover over my declaration, it shows the declaration for the Codable initializer even though I've used Disk.save with an UIImage.
Any ideas if I am using it wrong?
The text was updated successfully, but these errors were encountered: