[ABANDONED] Mastodon iOS client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
628 B

//
// WebViewHelper.swift
// elpha-ios
//
// Created by Dwayne Harris on 9/17/18.
// Copyright © 2018 Elpha. All rights reserved.
//
import Foundation
import UIKit
class WebViewHelper {
static func getWebViewController(url: URL) -> WebViewController? {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
if let webViewController = storyboard.instantiateViewController(withIdentifier: "WebViewController") as? WebViewController {
webViewController.url = url
return webViewController
}
fatalError("Could not instantiate WebViewController")
}
}