Group Group Group Group Group Group Group Group Group

Rendering dynamic view controllers with associated views

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
}

@lganti Do you still have issues with this?

no, issue has been resolved