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
}
}