21 lines
465 B
Swift
21 lines
465 B
Swift
//
|
|
// StoryboardInitable.swift
|
|
// VDSSample
|
|
//
|
|
// Created by Matt Bruce on 8/2/22.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
protocol StoryboardInitable {
|
|
static var storyboardId: String { get }
|
|
static var storyboardName: String { get }
|
|
}
|
|
|
|
extension StoryboardInitable {
|
|
static func instantiate() -> UIViewController {
|
|
return UIStoryboard(name: Self.storyboardName, bundle: nil).instantiateViewController(withIdentifier: Self.storyboardId)
|
|
}
|
|
}
|