Rendering dynamic view controllers with associated views

TODO: [ Is there a clean/standard/better way to do this? ]

poi

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

This topic was automatically closed after 166 days. New replies are no longer allowed.