How to check that all properties of a struct are not nil, without knowing the number and types of the properties of this struct?
So, you may want to check this struct:
struct Fruit {
var name: String?
var fruitType: String?
var quantity: Int?
}
and later another struct such as this one:
struct Farm {
var name: String?
var isOpen: Bool?
var farmerName: String?
var location: Location?
var isCertified: Bool?
}