Rounded corners on iOS 13 page sheet

0 votes

Can the edges of an iOS page sheet view controller be rounded? Currently, iOS page sheets display by default as follows:

unrounded corners on fitted sheet

Fitted sheet with squared corners

rounded corners in page sheet

However, I would prefer the corners to be shaped as follows:

Raised edges on a page sheet

Apple Swift

Sep 19 in Others by Soham
• 9,670 points
51 views

1 answer to this question.

0 votes

You can alter the view controller in your 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
}

Which gives me the following result:

cornerRadiusExample

answered Sep 20 by Aditya
• 7,660 points

Related Questions In Others

0 votes
1 answer

Rounded corners on iOS 13 page sheet

In your view controller, you can change ...READ MORE

answered Sep 21 in Others by rajatha
• 7,480 points
53 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 in Others by narikkadan
• 37,660 points
84 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
679 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
• 37,660 points
143 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,100 points
951 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
498 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
230 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
687 views
0 votes
1 answer

How to redirect to another page using PHP

You could use a function which is ...READ MORE

answered Feb 18 in Others by Aditya
• 7,660 points
916 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