How to take input from Storyboard for an arrays individual index

Viewed 12

I am building a custom Segmented controll. Now I would like to take title or image for individual segment from storyboard like segment @IBInsepctable properties of UISegmentControll. I can do it for a single value, like

@IBInspectable var borderColor: UIColor = .red {
      didSe {
          layer.borderColor = borderColor.cgColor
      }
}

Need to do something like: Segment controll inspectable properties

0 Answers
Related