Rounded corners on iOS 13 page sheet

0 votes

Is there a way to round the corners on an iOS page sheet view controller? Currently, iOS page sheets by default present like this:

unrounded corners on fitted sheet

But instead, I would like the corners to be like this:

rounded corners in page sheet

Sep 21 in Others by gaurav
• 18,960 points
14 views

1 answer to this question.

0 votes

In your view controller, you can change the view.layer.cornerRadius property to the value you want

override func viewDidLoad() {
    super.viewDidLoad()
    view.layer.cornerRadius = 10.0 // You can freely change this value
}

As an example, the following code:

override func viewDidLoad() {
    super.viewDidLoad()

    view.layer.cornerRadius = 25.0
    view.backgroundColor = .systemPurple
}

gives me the following result:

cornerRadiusExample

answered Sep 21 by rajatha
• 7,440 points

Related Questions In Others

0 votes
1 answer

Rounded corners on iOS 13 page sheet

You can alter the view controller in ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
16 views
+1 vote
1 answer

Hi I am unable to see my registered course on my home page

Hey Rushikesh, If you have registered with Edureka, ...READ MORE

answered Mar 16, 2020 in Others by Sirajul
• 59,190 points
595 views
0 votes
1 answer

Enabling SEO Optimizer in Magento 1.7 returns 404 error page on frontend links

Modified Magento's stock .htaccess to fit my ...READ MORE

answered Feb 10 in Others by narikkadan
• 20,880 points
120 views
0 votes
1 answer

Yoast SEO remove og description and twitter description on certain page

try this out it wil help ...READ MORE

answered Feb 11 in Others by narikkadan
• 20,880 points
135 views
0 votes
1 answer

Get User Group in Swift using AWS Cognito

The groups are exposed in the ID ...READ MORE

answered Nov 12, 2018 in AWS by Priyaj
• 58,080 points
891 views
0 votes
1 answer

URL Scheme for iOS Home App

I think you could try doing it ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
461 views
0 votes
1 answer

iOS App : Porting Code to App

If you make a post, missing parameters ...READ MORE

answered Jan 18, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
212 views
0 votes
1 answer

swift for windows? xcode on windows? ?

Hi, @Aminegac, If you’re a little more technically ...READ MORE

answered Dec 4, 2020 in Others by Nikita
608 views
0 votes
1 answer

App iOS stuck on blank white screen when build release React Native

I use many node version so the ...READ MORE

answered Sep 21 in Others by rajatha
• 7,440 points
60 views
0 votes
1 answer

ios: localize emoji name (kCFStringTransformToUnicodeName)

There is no api for this job. Unicode ...READ MORE

answered Sep 21 in Others by rajatha
• 7,440 points
12 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP