vds_ios_sample/VDSSample/StoryboardInitable.swift
Matt Bruce e450f04629 initial commit
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-02 09:16:07 -05:00

20 lines
406 B
Swift

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