TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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 RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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.