diff --git a/WordPressAuthenticator.podspec b/WordPressAuthenticator.podspec index b5e439ca1..37221cd92 100644 --- a/WordPressAuthenticator.podspec +++ b/WordPressAuthenticator.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WordPressAuthenticator" - s.version = "1.11.0" + s.version = "1.11.2-beta.1" s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps." s.description = <<-DESC diff --git a/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift b/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift index f378ca7a9..9e20f0fb5 100644 --- a/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift +++ b/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift @@ -269,7 +269,7 @@ import AuthenticationServices return false } - let storyboard = UIStoryboard(name: "EmailMagicLink", bundle: bundle) + let storyboard = Storyboard.emailMagicLink.instance guard let loginController = storyboard.instantiateViewController(withIdentifier: "LinkAuthView") as? NUXLinkAuthViewController else { DDLogInfo("App opened with authentication link but couldn't create login screen.") return false diff --git a/WordPressAuthenticator/Extensions/UIStoryboard+Helpers.swift b/WordPressAuthenticator/Extensions/UIStoryboard+Helpers.swift index bf17b5b1d..7e362985b 100644 --- a/WordPressAuthenticator/Extensions/UIStoryboard+Helpers.swift +++ b/WordPressAuthenticator/Extensions/UIStoryboard+Helpers.swift @@ -3,11 +3,12 @@ import Foundation // MARK - Storyboard enum enum Storyboard: String { - case login - case signup + case login = "Login" + case signup = "Signup" + case emailMagicLink = "EmailMagicLink" var instance: UIStoryboard { - return UIStoryboard(name: self.rawValue.capitalized, bundle: WordPressAuthenticator.bundle) + return UIStoryboard(name: self.rawValue, bundle: WordPressAuthenticator.bundle) } /// Returns a view controller from a Storyboard diff --git a/WordPressAuthenticator/NUX/NUXViewController.swift b/WordPressAuthenticator/NUX/NUXViewController.swift index c39426c18..468cd584b 100644 --- a/WordPressAuthenticator/NUX/NUXViewController.swift +++ b/WordPressAuthenticator/NUX/NUXViewController.swift @@ -34,7 +34,6 @@ open class NUXViewController: UIViewController, NUXViewControllerBase, UIViewCon case showWPComLogin case startMagicLinkFlow case showMagicLink - case showLinkMailView case show2FA case showDomains case showCreateSite diff --git a/WordPressAuthenticator/Signin/EmailMagicLink.storyboard b/WordPressAuthenticator/Signin/EmailMagicLink.storyboard index 976e00ad5..d49c77d07 100644 --- a/WordPressAuthenticator/Signin/EmailMagicLink.storyboard +++ b/WordPressAuthenticator/Signin/EmailMagicLink.storyboard @@ -1,12 +1,9 @@ - - - - + + - - + @@ -52,7 +49,7 @@ - + @@ -91,7 +88,7 @@ -