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

11 lines
269 B
Swift
Raw Normal View History

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