Post

Replies

Boosts

Views

Activity

Can't figure out. how to convert Int to CGFloat
I am building a Dungeons and Dragons monster stats app. I have images that represent each monster, and each image needs a different scale size to fit inside the parameters. I added each scale size to the JSON file, but as an int. When I parse the JSON and assign everything to the variable that holds them. I try to convert the Int to a CGFloat, it throws an error. Anyone know what to do?
2
0
449
Oct ’21