简体   繁体   中英

How to create top and bottom corner radius different on WatchKit?

I need to set a corner radius to 6 on top of WKInterfaceGroup and set to 0 on bottom. Is there a tips or anything ?

Thanks

Example : http://imgur.com/aDASBNy

Since many elements (images eg) can't be given a border radius in watchOS, you should use groups with images as their only element. In order to achieve two different border sizes, try using two groups with two different border sizes which overlap themselves, so that one side of the border isn't visible because it's overlapped by the other group.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM