Skip to content

Instantly share code, notes, and snippets.

@sheerazam
Created November 25, 2021 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheerazam/25fc8ff72aa91d261619bc26f557c6f9 to your computer and use it in GitHub Desktop.
Save sheerazam/25fc8ff72aa91d261619bc26f557c6f9 to your computer and use it in GitHub Desktop.
Implementing Force Update Feature using Firebase Remote Config in iOS
//
// UIViewController+UrlOpener.swift
// OutApp
//
// Created by Sheeraz Ahmed Memon on 23/06/2018.
// Copyright © 2018 SamSoft. All rights reserved.
//
import UIKit
extension UIViewController {
func openURL(withURL url : URL ){
if UIApplication.shared.canOpenURL(url) {
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment