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, 2022 in Others by gaurav
• 23,260 points
1,147 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, 2022 by rajatha
• 7,680 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, 2022 in Others by Aditya
• 7,680 points
987 views
0 votes
1 answer

How to "Print" Excel Sheet on Custom Page Size like Din A1?

Try turning the pdf file into an ...READ MORE

answered Oct 11, 2022 in Others by narikkadan
• 63,600 points
2,242 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,230 points
1,926 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, 2022 in Others by narikkadan
• 63,600 points
622 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,020 points
1,564 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
1,168 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
675 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
1,810 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, 2022 in Others by rajatha
• 7,680 points
10,640 views
0 votes
1 answer

ios: localize emoji name (kCFStringTransformToUnicodeName)

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

answered Sep 21, 2022 in Others by rajatha
• 7,680 points
1,109 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