another.im-ios/Monal/another.im/Helpers/UIApplication+Extensions.swift

11 lines
269 B
Swift
Raw Normal View History

2024-11-19 16:07:47 +00:00
import UIKit
func openAppSettings() {
if
let appSettingsUrl = URL(string: UIApplication.openSettingsURLString),
UIApplication.shared.canOpenURL(appSettingsUrl)
{
UIApplication.shared.open(appSettingsUrl, completionHandler: nil)
}
}