CosynPa / TZStackView

UIStackView replica for iOS 7.x and iOS 8.x and support Interface Builder
MIT License
4 stars 5 forks source link

Background colour #6

Closed Alex293 closed 1 year ago

Alex293 commented 7 years ago

Hi,

background colour seems to have no effect is this how it's supposed to be ?

CosynPa commented 7 years ago

Yes. From UIStackView reference:

The UIStackView is a nonrendering subclass of UIView; that is, it does not provide any user interface of its own. Instead, it just manages the position and size of its arranged views. As a result, some properties (like backgroundColor) have no effect on the stack view. Similarly, you cannot override layerClass, drawRect:, or drawLayer:inContext:.