TODO: [ Is there a clean/standard/better way to do this? ]
This is what I am thinking + Protocol
struct PointOfInterestSubType {
var title: String
var image: UIImage
var color: UIColor
// subtype's view might be different in the feature - based on PointOfInterest
var view: UIView
}
enum PointOfInterestSubTypes: PointOfInterestSubType {
case water
case shelter
case food
}
struct PointOfInterest {
var title: String
var image: UIImage
var tintColor: UIColor
var subType: Subtype
}
enum PointOfInterestTypes: PointOfInterest {
case a
case b
case c
case d
}