rs / SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
MIT License
1.2k stars 180 forks source link

Shadow is being shown on top #1

Closed thiagoperes closed 11 years ago

thiagoperes commented 11 years ago

On the native component, shadow is only shown on the bottom part of the view. I'm trying to fix it but with no luck

rs commented 11 years ago

Good catch. Didn't see this because I use it align top of a view, thus top shadow is masked by the parent view bounds.

A potential fix may be to define a custom shadow path with a top inset equal to the shadow radius.

thiagoperes commented 11 years ago

Fixed it, will submit a pull request later today