From 735483f191b1ce7971662d2ce96e038f8a7ddc40 Mon Sep 17 00:00:00 2001 From: ashokds Date: Tue, 23 Jul 2019 10:16:05 -0600 Subject: [PATCH] Swift Sample app: v2.1.4 - Non-optional username/password --- .../docusign-sdk-sample-swift.xcodeproj/project.pbxproj | 4 ++-- .../Controllers/LoginViewController.swift | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docusign-sdk-sample-swift/docusign-sdk-sample-swift.xcodeproj/project.pbxproj b/docusign-sdk-sample-swift/docusign-sdk-sample-swift.xcodeproj/project.pbxproj index d5bfb6e62..104f41c9e 100644 --- a/docusign-sdk-sample-swift/docusign-sdk-sample-swift.xcodeproj/project.pbxproj +++ b/docusign-sdk-sample-swift/docusign-sdk-sample-swift.xcodeproj/project.pbxproj @@ -273,7 +273,7 @@ C9FF31051F321A000076D6CA /* Resources */, C9FF314E1F3258C50076D6CA /* Embed Frameworks */, D7F5219825D2683BE85691CB /* [CP] Embed Pods Frameworks */, - B488346EF55C69F9CC0C784D /* [CP] Copy Pods Resources */, + 07DDC5A0B3A3A2D85E993EBE /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -353,7 +353,7 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - B488346EF55C69F9CC0C784D /* [CP] Copy Pods Resources */ = { + 07DDC5A0B3A3A2D85E993EBE /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( diff --git a/docusign-sdk-sample-swift/docusign-sdk-sample-swift/Controllers/LoginViewController.swift b/docusign-sdk-sample-swift/docusign-sdk-sample-swift/Controllers/LoginViewController.swift index b0558e4a0..bf20339f7 100755 --- a/docusign-sdk-sample-swift/docusign-sdk-sample-swift/Controllers/LoginViewController.swift +++ b/docusign-sdk-sample-swift/docusign-sdk-sample-swift/Controllers/LoginViewController.swift @@ -36,8 +36,12 @@ class LoginViewController: UIViewController, UITextFieldDelegate { SVProgressHUD.show(withStatus: "Authenticating..."); - let username = tf_username.text; - let password = tf_password.text; + guard let username = tf_username.text else { + return + } + guard let password = tf_password.text else { + return + } let integratorKey = ProfileManager.Static.integratorKey; let hostUrl: URL! = ProfileManager.Static.demoHostApi;