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.

25 lines
645 B

2 years ago
  1. //
  2. // StoryboardViewControllerResource.swift
  3. // R.swift.Library
  4. //
  5. // Created by Mathijs Kadijk on 13-03-16.
  6. // From: https://github.com/mac-cain13/R.swift.Library
  7. // License: MIT License
  8. //
  9. import Foundation
  10. public protocol StoryboardViewControllerResourceType: IdentifierType {
  11. associatedtype ViewControllerType
  12. }
  13. public struct StoryboardViewControllerResource<ViewController>: StoryboardViewControllerResourceType {
  14. public typealias ViewControllerType = ViewController
  15. /// Storyboard identifier of this view controller
  16. public let identifier: String
  17. public init(identifier: String) {
  18. self.identifier = identifier
  19. }
  20. }