UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

SOLVED: SwiftUI not letting me use Image

Forums > SwiftUI

Hi everyone,

I created a new Xcode project a few weeks ago with Xcode 13 and whenever I try to use Image in that project (only that project), it will only autocomplete to init(from:) and init(size:text:). Screenshot

When I try using SF Symbols, I get the error

Argument type 'String' does not conform to expected type 'Decoder'

Screenshot

I've been Googling for a few days now, but couldn't find anything that could be helpful.

3      

@twostraws  Site AdminHWS+

Did you create your own custom type named Image? It looks like there is one that conforms to Decodable.

3      

Apparently I did! Thanks so much!!

3      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.