Skip to content
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

update Assign - error with optional type assignment #66

Closed
heckj opened this issue Jul 27, 2019 · 0 comments · Fixed by #72
Closed

update Assign - error with optional type assignment #66

heckj opened this issue Jul 27, 2019 · 0 comments · Fixed by #72
Labels
enhancement New feature or request

Comments

@heckj
Copy link
Owner

heckj commented Jul 27, 2019

I reported the strange error as feedback, but also asked in the dev forms, why I wasn't able to assign() to image on UIImageView.

The answer was that the error was a type mismatch. It was attempting to assign UIImage to UIImage? (an optional), which caused the compiler to have it's freakout, reporting only: error: type of expression is ambiguous without more context

One option that was suggested was making a non-optional argument, and assigning into that.

In any case, it's good detail for updating the reference on assign() and how to use it

@heckj heckj added the enhancement New feature or request label Jul 27, 2019
@heckj heckj added this to To do in first edition content via automation Jul 27, 2019
@heckj heckj moved this from To do to In progress in first edition content Jul 28, 2019
@heckj heckj mentioned this issue Jul 28, 2019
@heckj heckj closed this as completed in #72 Jul 28, 2019
first edition content automation moved this from In progress to Done Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant