How can shadows and borders be used on a view that is set up with iOS 26 cornerConfiguration API and concentric values?

On UIKit, shadows and borders are used laid out using CALayer properties. This works great when using .cornerRadius as this can be applied to the layers displaying borders/shadows.

With the addition of cornerConfiguration, which is done via UIView, what is the expected setup for making sure, for example, when a UIView is using a concentric behavior to its parent, that its shadows and borders are following the same corner radius for each side?

Would it be correct to read the corner radius values on the UIView's layoutSubviews method and then apply those to the border/shadow properties?

Answered by DTS Engineer in 851774022

That seems like a reasonable approach, though this is undocumented and that approach could be subject to change without notice at any time. Please file an enhancement request asking for documentation about the right way to do that. You can file an enhancement request using the Feedback Assistant. If you file the request, please post the Feedback number here so we can make sure it gets routed to the right team.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

That seems like a reasonable approach, though this is undocumented and that approach could be subject to change without notice at any time. Please file an enhancement request asking for documentation about the right way to do that. You can file an enhancement request using the Feedback Assistant. If you file the request, please post the Feedback number here so we can make sure it gets routed to the right team.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

How can shadows and borders be used on a view that is set up with iOS 26 cornerConfiguration API and concentric values?
 
 
Q