mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-23 08:20:46 +08:00
* Update UISwitch on tint color Align green with shared color * Update tintColor of all UIAlertControllers * Create factory for SFSafariViewController * Update SFSafariViewController tint color Only in the .configured factory * Use SFSafariViewController factory everywhere * Create factory for UIAlertController * Use UIAlertController factory everywhere
16 lines
382 B
Swift
16 lines
382 B
Swift
//
|
|
// CreateProfileViewController.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 6/29/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import SafariServices
|
|
|
|
func CreateProfileViewController(login: String) -> UIViewController {
|
|
let url = URL(string: "https://github.com/\(login)")!
|
|
return try! SFSafariViewController.configured(with: url)
|
|
}
|