I have a struct name called Car. Car has two attributes(noOfTyres, ownerName).
struct Car {
var noOfTyres: Int
var ownerName: String
}
The string value is let objStr = "Car/ownerName"
how to convert the objStr to swiftObject like Car.ownerName
?
You can create struct object by below code: