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      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

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.