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

11 lines
269 B
Swift
Raw Permalink Normal View History

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