vds_ios_sample/VDSSample/Protocols/StoryboardInitable.swift
Matt Bruce 9c40f5c6e2 added components storyboard
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-02 09:53:54 -05:00

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)
}
}