13.1 C
Canberra
Tuesday, May 19, 2026

swift – Altering nook radius for popover modal UIViewController in iOS 26


I’ve an iOS app written in Swift (with UIKit and principally IB) that makes use of the popover modal presentation fashion in a few locations with arrows pointing to the originating object. The subviews are all positioned with constraints that reference the view’s secure space. Till iOS26 this regarded high quality (see 1st display screen shot), however iOS26 makes use of “capsule” corners for popover shows, and it is crowding the subviews on the prime (see 2nd display screen shot). One thing related occurs for UIButtons in iOS26 however I can configure in that IB or in code. I have not discovered a workaround that works for popovers. I’ve tried the next code in my popover’s view controller class, however that does not repair the difficulty (the view controller appears to be embedded in a popover view container that is rounding the corners). I’ve additionally questioned if iOS has a substitute for the view’s secure space that might mirror the lack of actual property within the corners so I might use constraints to inset my controls appropriately, however I have not come throughout something like that. Can anybody assist level me in the best route?

I hate the capsule design, btw 🤮


class DataCardSelect : UIViewController, ... {
    ...
    
    override func viewDidLoad() {
        tremendous.viewDidLoad()
        ...
        
        if #accessible(iOS 26.0, *) {
            // tried this, nevertheless it does not work
            view.cornerConfiguration = .corners(radius: .fastened(0))
        }
    }

enter image description here

enter image description here

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles