How to transition from the [Swift5] app to the iPhone settings screen

Posted content

This time, I will introduce the implementation method that transitions to the setting screen of the user's iPhone when the button is tapped when setting notification settings.

simulator_screenshot_CDA1257B-6C8A-4499-9E4C-DFC70FA25F56.png

This is to make it easier for the user to change the notification settings, etc. by transitioning from the app to this screen.

Implementation method

let url = URL(string: "app-settings:root=General&path={Describe the Bundle Identifier here}")
UIApplication.shared.open(url!, options: [:], completionHandler: nil)

that's all. It may be good to make a transition by tapping a cell or button!

Recommended Posts

How to transition from the [Swift5] app to the iPhone settings screen
[swift5] How to transition from the app to an external site by specifying the URL
How to add sound in the app (swift)
[Swift] How to link the app with Firebase
[Rails] How to prevent screen transition
Learn how to customize the Navigation Bar from the sample app
I want to create a chat screen for the Swift chat app!
[Swift] How to display when the quiz app answers correctly [Beginner]
[Swift 5] Processing and precautions for transitioning to the iOS settings app
How to call Swift 5.3 code from Objective-C
[Swift] How to implement the countdown function
How to pass the value to another screen
[Swift5] How to implement standby screen using'PKHUD'
[Swift5] How to create a splash screen
How to return a value from Model to Controller using the [Swift5] protocol
[Swift] How to implement the LINE login function
[swift5] How to implement the Twitter share function
[Swift] How to implement the fade-in / out function
How to connect to lcalhost from your smartphone and use the app under development
[Error] How to resolve the event that the screen does not transition after editing
[Java] How to get the URL of the transition source
[Swift] How to play songs from your music library
How to run the SpringBoot app as a service
How to return to the previous screen by Swipe operation
How to send value in HTML without screen transition
How to write Scala from the perspective of Java
[Java] How to extract the file name from the path
How to move to the details screen by clicking the image
[Android Studio] [Java] How to fix the screen vertically
How to determine the look-ahead request (Prefetch) from the browser
[Swift] Use UserDefaults to save data in the app
[Beginner] How to use devise Change settings from introduction
Kotlin may take the world from App to Web
[Swift] How to get the document ID of Firebase
[Swift] Simple screen transition summary
[iOS] [Objective-C] How to update a widget from an Objective-C app
[IOS] How to get the table name from AWS DynamoDB
How to create a form to select a date from the calendar
Android app to select and display images from the gallery
[Swift] How to use UserDefaults
What to do if you change the Listen Address from the settings screen with Mattermost docker
How to use Swift UIScrollView
How to get the longest information from Twitter as of 12/12/2016
How to disable Set-Cookie from API on the front side
Parse the redirected page (Jsoup uses Location to transition screen)
I want to transition to the same screen in the saved state
Animation settings at screen transition
How to migrate from JUnit4 to JUnit5
Prevent other users from going to the post edit screen
[Docker] How to access the host from inside the container. http://host.docker.internal:
How to apply C code format from the command line
[Rails carrier wave] How to not transition to the error screen even if the image upload is not selected
[Swift] How to dynamically change the height of the toolbar on the keyboard
[Rails] How to get the URL of the transition source and redirect
[Swift5] How to get an array and the complement of arrays
[Swift] How to implement the Twitter login function using Firebase UI ①
How to display products by category on the same list screen
[Swift UI] How to get the startup status of the application [iOS]
How to run a Kotlin Coroutine sample from the command line
Try passing values from Java Servlet to iPhone app using JSON
[Swift5] How to communicate from ViewController to Model and pass a value