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, 2022 in Others by Soham
• 9,710 points
988 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, 2022 by Aditya
• 7,680 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, 2022 in Others by rajatha
• 7,680 points
1,149 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,246 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
623 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,566 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,169 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
678 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,812 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, 2022 in Others by Aditya
• 7,680 points
5,352 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