ios - Can't make User Defined Runtime Attributes work -
i able use "user defined runtime attributes " xcode storyboard build nice pop through container view. unfortunately, can't make works , can't figure out why !
i found many topics (eg: is possible set uiview border properties interface builder?) deal doesn't work me... !
here attribute inspector of containerview embed uiview (i tried implement containerview uiview no success).
i added extension transform uicolor cgcolor expected :
extension calayer { var borderuicolor: uicolor { set { self.bordercolor = newvalue.cgcolor } { return uicolor(cgcolor: self.bordercolor!) } }
}
does think missing ?
thank in advance ;)
instead of layer.bordercolor
, use layer.borderuicolor
in user defined runtime attributes. double click key name , add ui
.
Comments
Post a Comment