Adarsh KC
Adarsh KC

Reputation: 447

How can I programmatically disable iphone home button in swift 4?

I am going to develop an application for kids. That I needed is I have to lock the home button permanently for this particular application but I didn't get any solution for this.

Upvotes: 3

Views: 1049

Answers (1)

Ravi Prakash
Ravi Prakash

Reputation: 1106

For kids, there is a feature in the iPhone setting called "Guided Access" this setting lock the phone with one app. This could be helpful for you. You can mention this in your app.

You can use this API to do programmatically. It was introduced in WWDC 2017. For more information how to use API and lock in a specific way. Please check this video. For doing programmatically without any device management it has been explained at 15:40th minute.

Upvotes: 3

Related Questions