iOS Swift Decodable: Error: Cannot invoke initializer for type with no arguments

Review has no default value , You need to change this

var profileValue = ProfileValue()

to

var profileValue:ProfileValue?

OR

var review: ReviewValues?

OR

supply init method in ProfileValue struct


Your ProfileValue struct doesn’t have a default value for the review property. That is why the compiler is unhappy, as you’re trying to create an instance of ProfileValue without providing default values for all of the non optional properties.

As a side note, all your coding key enum values just match the property names. You don’t need to include the coding keys enum if the names are the same.