From 1111dc6855c155da436cf3d4be49679fd8a6c442 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Thu, 20 Oct 2016 15:34:34 +0300 Subject: [PATCH] remove constraints for StoryboardIdentifier and ViewControllerIdentifier type --- LeadKit/LeadKit/Protocols/StoryboardProtocol.swift | 4 ++-- .../StoryboardProtocol/StoryboardProtocol+Extensions.swift | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/LeadKit/LeadKit/Protocols/StoryboardProtocol.swift b/LeadKit/LeadKit/Protocols/StoryboardProtocol.swift index f26f6d5a..415967c0 100644 --- a/LeadKit/LeadKit/Protocols/StoryboardProtocol.swift +++ b/LeadKit/LeadKit/Protocols/StoryboardProtocol.swift @@ -13,8 +13,8 @@ import UIKit */ public protocol StoryboardProtocol { - associatedtype StoryboardIdentifier: RawRepresentable - associatedtype ViewControllerIdentifier: RawRepresentable + associatedtype StoryboardIdentifier + associatedtype ViewControllerIdentifier /** - returns: storyboard identifier with associatedtype type diff --git a/LeadKit/LeadKit/StoryboardProtocol/StoryboardProtocol+Extensions.swift b/LeadKit/LeadKit/StoryboardProtocol/StoryboardProtocol+Extensions.swift index 51c9a8c2..87c3b0af 100644 --- a/LeadKit/LeadKit/StoryboardProtocol/StoryboardProtocol+Extensions.swift +++ b/LeadKit/LeadKit/StoryboardProtocol/StoryboardProtocol+Extensions.swift @@ -8,7 +8,9 @@ import UIKit -public extension StoryboardProtocol where StoryboardIdentifier.RawValue == String, ViewControllerIdentifier.RawValue == String { +public extension StoryboardProtocol where + StoryboardIdentifier: RawRepresentable, StoryboardIdentifier.RawValue == String, +ViewControllerIdentifier: RawRepresentable, ViewControllerIdentifier.RawValue == String { /** - returns: UIStoryboradInstance with StoryboardIdentifier name