From 6ee8e8351d6c6628e7dc64fd72c84f2d527f0726 Mon Sep 17 00:00:00 2001 From: Jonni Lundy Date: Tue, 6 Mar 2018 09:59:26 -0800 Subject: [PATCH] Changes tabs to spaces --- Boilerplate-email.xcodeproj/project.pbxproj | 846 ++++++++++---------- Boilerplate-email/AppDelegate.swift | 44 +- Boilerplate-email/EmailViewController.swift | 98 +-- Boilerplate-email/Info.plist | 90 +-- Boilerplate-email/WeColorButton.swift | 84 +- Boilerplate-email/WeColors.swift | 58 +- Boilerplate-email/WeFonts.swift | 30 +- Boilerplate-email/WeIcons.swift | 40 +- Boilerplate-email/WeTextField.swift | 146 ++-- 9 files changed, 718 insertions(+), 718 deletions(-) diff --git a/Boilerplate-email.xcodeproj/project.pbxproj b/Boilerplate-email.xcodeproj/project.pbxproj index 07e4f07..8dbf0d6 100644 --- a/Boilerplate-email.xcodeproj/project.pbxproj +++ b/Boilerplate-email.xcodeproj/project.pbxproj @@ -1,462 +1,462 @@ // !$*UTF8*$! { - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { /* Begin PBXBuildFile section */ - 57ED48031E9B8FB400B4D097 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */; }; - 57ED48051E9B8FB400B4D097 /* EmailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */; }; - 57ED48081E9B8FB400B4D097 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48061E9B8FB400B4D097 /* Main.storyboard */; }; - 57ED480A1E9B8FB400B4D097 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48091E9B8FB400B4D097 /* Assets.xcassets */; }; - 57ED480D1E9B8FB400B4D097 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */; }; - 57ED481D1E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */; }; - 57ED481E1E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */; }; - 57ED481F1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */; }; - 57ED48221E9B910D00B4D097 /* WeColorButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48211E9B910D00B4D097 /* WeColorButton.swift */; }; - 57ED48241E9B911200B4D097 /* WeColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48231E9B911200B4D097 /* WeColors.swift */; }; - 57ED48261E9B911700B4D097 /* WeFonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48251E9B911700B4D097 /* WeFonts.swift */; }; - 57ED48281E9B912500B4D097 /* WeTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48271E9B912500B4D097 /* WeTextField.swift */; }; - 57ED482A1E9B918100B4D097 /* WeIcons.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48291E9B918100B4D097 /* WeIcons.swift */; }; - 57ED482D1E9B918C00B4D097 /* loop_icons_12px.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */; }; - 57ED482E1E9B918C00B4D097 /* loop_icons_16px.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */; }; - 7AB7B0BBD9AF6F631B59D9B9 /* Pods_Boilerplate_email.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */; }; + 57ED48031E9B8FB400B4D097 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */; }; + 57ED48051E9B8FB400B4D097 /* EmailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */; }; + 57ED48081E9B8FB400B4D097 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48061E9B8FB400B4D097 /* Main.storyboard */; }; + 57ED480A1E9B8FB400B4D097 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48091E9B8FB400B4D097 /* Assets.xcassets */; }; + 57ED480D1E9B8FB400B4D097 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */; }; + 57ED481D1E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */; }; + 57ED481E1E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */; }; + 57ED481F1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */; }; + 57ED48221E9B910D00B4D097 /* WeColorButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48211E9B910D00B4D097 /* WeColorButton.swift */; }; + 57ED48241E9B911200B4D097 /* WeColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48231E9B911200B4D097 /* WeColors.swift */; }; + 57ED48261E9B911700B4D097 /* WeFonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48251E9B911700B4D097 /* WeFonts.swift */; }; + 57ED48281E9B912500B4D097 /* WeTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48271E9B912500B4D097 /* WeTextField.swift */; }; + 57ED482A1E9B918100B4D097 /* WeIcons.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57ED48291E9B918100B4D097 /* WeIcons.swift */; }; + 57ED482D1E9B918C00B4D097 /* loop_icons_12px.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */; }; + 57ED482E1E9B918C00B4D097 /* loop_icons_16px.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */; }; + 7AB7B0BBD9AF6F631B59D9B9 /* Pods_Boilerplate_email.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Boilerplate_email.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Boilerplate-email.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmailViewController.swift; sourceTree = ""; }; - 57ED48071E9B8FB400B4D097 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 57ED48091E9B8FB400B4D097 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 57ED480C1E9B8FB400B4D097 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 57ED480E1E9B8FB400B4D097 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_bold.otf; sourceTree = ""; }; - 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_medium.otf; sourceTree = ""; }; - 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_semibold.otf; sourceTree = ""; }; - 57ED48211E9B910D00B4D097 /* WeColorButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeColorButton.swift; sourceTree = ""; }; - 57ED48231E9B911200B4D097 /* WeColors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeColors.swift; sourceTree = ""; }; - 57ED48251E9B911700B4D097 /* WeFonts.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeFonts.swift; sourceTree = ""; }; - 57ED48271E9B912500B4D097 /* WeTextField.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeTextField.swift; sourceTree = ""; }; - 57ED48291E9B918100B4D097 /* WeIcons.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeIcons.swift; sourceTree = ""; }; - 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = loop_icons_12px.ttf; path = ../loop_icons_12px.ttf; sourceTree = ""; }; - 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = loop_icons_16px.ttf; path = ../loop_icons_16px.ttf; sourceTree = ""; }; - 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Boilerplate-email.release.xcconfig"; path = "Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email.release.xcconfig"; sourceTree = ""; }; - F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Boilerplate-email.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email.debug.xcconfig"; sourceTree = ""; }; + 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Boilerplate_email.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Boilerplate-email.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmailViewController.swift; sourceTree = ""; }; + 57ED48071E9B8FB400B4D097 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 57ED48091E9B8FB400B4D097 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 57ED480C1E9B8FB400B4D097 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 57ED480E1E9B8FB400B4D097 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_bold.otf; sourceTree = ""; }; + 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_medium.otf; sourceTree = ""; }; + 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = rene_bieder_galano_grotesque_semibold.otf; sourceTree = ""; }; + 57ED48211E9B910D00B4D097 /* WeColorButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeColorButton.swift; sourceTree = ""; }; + 57ED48231E9B911200B4D097 /* WeColors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeColors.swift; sourceTree = ""; }; + 57ED48251E9B911700B4D097 /* WeFonts.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeFonts.swift; sourceTree = ""; }; + 57ED48271E9B912500B4D097 /* WeTextField.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeTextField.swift; sourceTree = ""; }; + 57ED48291E9B918100B4D097 /* WeIcons.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeIcons.swift; sourceTree = ""; }; + 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = loop_icons_12px.ttf; path = ../loop_icons_12px.ttf; sourceTree = ""; }; + 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = loop_icons_16px.ttf; path = ../loop_icons_16px.ttf; sourceTree = ""; }; + 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Boilerplate-email.release.xcconfig"; path = "Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email.release.xcconfig"; sourceTree = ""; }; + F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Boilerplate-email.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 57ED47FC1E9B8FB400B4D097 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7AB7B0BBD9AF6F631B59D9B9 /* Pods_Boilerplate_email.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; + 57ED47FC1E9B8FB400B4D097 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 7AB7B0BBD9AF6F631B59D9B9 /* Pods_Boilerplate_email.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 57ED47F61E9B8FB400B4D097 = { - isa = PBXGroup; - children = ( - 57ED48011E9B8FB400B4D097 /* Boilerplate-email */, - 57ED48001E9B8FB400B4D097 /* Products */, - F3123708C7812929B8BCE7CE /* Pods */, - FD559CFBA27652447300BF2D /* Frameworks */, - ); - sourceTree = ""; - }; - 57ED48001E9B8FB400B4D097 /* Products */ = { - isa = PBXGroup; - children = ( - 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */, - ); - name = Products; - sourceTree = ""; - }; - 57ED48011E9B8FB400B4D097 /* Boilerplate-email */ = { - isa = PBXGroup; - children = ( - 57ED48201E9B90F200B4D097 /* Views */, - 57ED48141E9B903200B4D097 /* Resources */, - 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */, - 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */, - 57ED48061E9B8FB400B4D097 /* Main.storyboard */, - 57ED48091E9B8FB400B4D097 /* Assets.xcassets */, - 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */, - 57ED480E1E9B8FB400B4D097 /* Info.plist */, - ); - path = "Boilerplate-email"; - sourceTree = ""; - }; - 57ED48141E9B903200B4D097 /* Resources */ = { - isa = PBXGroup; - children = ( - 57ED48151E9B903200B4D097 /* Fonts */, - ); - path = Resources; - sourceTree = ""; - }; - 57ED48151E9B903200B4D097 /* Fonts */ = { - isa = PBXGroup; - children = ( - 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */, - 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */, - 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */, - 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */, - 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */, - ); - path = Fonts; - sourceTree = ""; - }; - 57ED48201E9B90F200B4D097 /* Views */ = { - isa = PBXGroup; - children = ( - 57ED48271E9B912500B4D097 /* WeTextField.swift */, - 57ED48251E9B911700B4D097 /* WeFonts.swift */, - 57ED48231E9B911200B4D097 /* WeColors.swift */, - 57ED48211E9B910D00B4D097 /* WeColorButton.swift */, - 57ED48291E9B918100B4D097 /* WeIcons.swift */, - ); - name = Views; - sourceTree = ""; - }; - F3123708C7812929B8BCE7CE /* Pods */ = { - isa = PBXGroup; - children = ( - F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */, - 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; - FD559CFBA27652447300BF2D /* Frameworks */ = { - isa = PBXGroup; - children = ( - 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; + 57ED47F61E9B8FB400B4D097 = { + isa = PBXGroup; + children = ( + 57ED48011E9B8FB400B4D097 /* Boilerplate-email */, + 57ED48001E9B8FB400B4D097 /* Products */, + F3123708C7812929B8BCE7CE /* Pods */, + FD559CFBA27652447300BF2D /* Frameworks */, + ); + sourceTree = ""; + }; + 57ED48001E9B8FB400B4D097 /* Products */ = { + isa = PBXGroup; + children = ( + 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */, + ); + name = Products; + sourceTree = ""; + }; + 57ED48011E9B8FB400B4D097 /* Boilerplate-email */ = { + isa = PBXGroup; + children = ( + 57ED48201E9B90F200B4D097 /* Views */, + 57ED48141E9B903200B4D097 /* Resources */, + 57ED48021E9B8FB400B4D097 /* AppDelegate.swift */, + 57ED48041E9B8FB400B4D097 /* EmailViewController.swift */, + 57ED48061E9B8FB400B4D097 /* Main.storyboard */, + 57ED48091E9B8FB400B4D097 /* Assets.xcassets */, + 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */, + 57ED480E1E9B8FB400B4D097 /* Info.plist */, + ); + path = "Boilerplate-email"; + sourceTree = ""; + }; + 57ED48141E9B903200B4D097 /* Resources */ = { + isa = PBXGroup; + children = ( + 57ED48151E9B903200B4D097 /* Fonts */, + ); + path = Resources; + sourceTree = ""; + }; + 57ED48151E9B903200B4D097 /* Fonts */ = { + isa = PBXGroup; + children = ( + 57ED482B1E9B918C00B4D097 /* loop_icons_12px.ttf */, + 57ED482C1E9B918C00B4D097 /* loop_icons_16px.ttf */, + 57ED48181E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf */, + 57ED48191E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf */, + 57ED481A1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf */, + ); + path = Fonts; + sourceTree = ""; + }; + 57ED48201E9B90F200B4D097 /* Views */ = { + isa = PBXGroup; + children = ( + 57ED48271E9B912500B4D097 /* WeTextField.swift */, + 57ED48251E9B911700B4D097 /* WeFonts.swift */, + 57ED48231E9B911200B4D097 /* WeColors.swift */, + 57ED48211E9B910D00B4D097 /* WeColorButton.swift */, + 57ED48291E9B918100B4D097 /* WeIcons.swift */, + ); + name = Views; + sourceTree = ""; + }; + F3123708C7812929B8BCE7CE /* Pods */ = { + isa = PBXGroup; + children = ( + F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */, + 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + FD559CFBA27652447300BF2D /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1B9F97177F1A75052255540F /* Pods_Boilerplate_email.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 57ED47FE1E9B8FB400B4D097 /* Boilerplate-email */ = { - isa = PBXNativeTarget; - buildConfigurationList = 57ED48111E9B8FB400B4D097 /* Build configuration list for PBXNativeTarget "Boilerplate-email" */; - buildPhases = ( - FFE5DD047BEB01CAF56716E8 /* [CP] Check Pods Manifest.lock */, - 57ED47FB1E9B8FB400B4D097 /* Sources */, - 57ED47FC1E9B8FB400B4D097 /* Frameworks */, - 57ED47FD1E9B8FB400B4D097 /* Resources */, - 30F7DFA191DCC77076813676 /* [CP] Embed Pods Frameworks */, - 07BA9CD6CB46B4B869689C2C /* [CP] Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Boilerplate-email"; - productName = "Boilerplate-email"; - productReference = 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */; - productType = "com.apple.product-type.application"; - }; + 57ED47FE1E9B8FB400B4D097 /* Boilerplate-email */ = { + isa = PBXNativeTarget; + buildConfigurationList = 57ED48111E9B8FB400B4D097 /* Build configuration list for PBXNativeTarget "Boilerplate-email" */; + buildPhases = ( + FFE5DD047BEB01CAF56716E8 /* [CP] Check Pods Manifest.lock */, + 57ED47FB1E9B8FB400B4D097 /* Sources */, + 57ED47FC1E9B8FB400B4D097 /* Frameworks */, + 57ED47FD1E9B8FB400B4D097 /* Resources */, + 30F7DFA191DCC77076813676 /* [CP] Embed Pods Frameworks */, + 07BA9CD6CB46B4B869689C2C /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Boilerplate-email"; + productName = "Boilerplate-email"; + productReference = 57ED47FF1E9B8FB400B4D097 /* Boilerplate-email.app */; + productType = "com.apple.product-type.application"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 57ED47F71E9B8FB400B4D097 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0830; - LastUpgradeCheck = 0830; - ORGANIZATIONNAME = liferay; - TargetAttributes = { - 57ED47FE1E9B8FB400B4D097 = { - CreatedOnToolsVersion = 8.3.1; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 57ED47FA1E9B8FB400B4D097 /* Build configuration list for PBXProject "Boilerplate-email" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 57ED47F61E9B8FB400B4D097; - productRefGroup = 57ED48001E9B8FB400B4D097 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 57ED47FE1E9B8FB400B4D097 /* Boilerplate-email */, - ); - }; + 57ED47F71E9B8FB400B4D097 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 0830; + ORGANIZATIONNAME = liferay; + TargetAttributes = { + 57ED47FE1E9B8FB400B4D097 = { + CreatedOnToolsVersion = 8.3.1; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 57ED47FA1E9B8FB400B4D097 /* Build configuration list for PBXProject "Boilerplate-email" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 57ED47F61E9B8FB400B4D097; + productRefGroup = 57ED48001E9B8FB400B4D097 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 57ED47FE1E9B8FB400B4D097 /* Boilerplate-email */, + ); + }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 57ED47FD1E9B8FB400B4D097 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 57ED480D1E9B8FB400B4D097 /* LaunchScreen.storyboard in Resources */, - 57ED481F1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf in Resources */, - 57ED482E1E9B918C00B4D097 /* loop_icons_16px.ttf in Resources */, - 57ED480A1E9B8FB400B4D097 /* Assets.xcassets in Resources */, - 57ED48081E9B8FB400B4D097 /* Main.storyboard in Resources */, - 57ED482D1E9B918C00B4D097 /* loop_icons_12px.ttf in Resources */, - 57ED481D1E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf in Resources */, - 57ED481E1E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; + 57ED47FD1E9B8FB400B4D097 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 57ED480D1E9B8FB400B4D097 /* LaunchScreen.storyboard in Resources */, + 57ED481F1E9B903200B4D097 /* rene_bieder_galano_grotesque_semibold.otf in Resources */, + 57ED482E1E9B918C00B4D097 /* loop_icons_16px.ttf in Resources */, + 57ED480A1E9B8FB400B4D097 /* Assets.xcassets in Resources */, + 57ED48081E9B8FB400B4D097 /* Main.storyboard in Resources */, + 57ED482D1E9B918C00B4D097 /* loop_icons_12px.ttf in Resources */, + 57ED481D1E9B903200B4D097 /* rene_bieder_galano_grotesque_bold.otf in Resources */, + 57ED481E1E9B903200B4D097 /* rene_bieder_galano_grotesque_medium.otf in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 07BA9CD6CB46B4B869689C2C /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 30F7DFA191DCC77076813676 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/PromiseKit/PromiseKit.framework", - "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", - "${BUILT_PRODUCTS_DIR}/Socket.IO-Client-Swift/SocketIO.framework", - "${BUILT_PRODUCTS_DIR}/Starscream/Starscream.framework", - "${BUILT_PRODUCTS_DIR}/WeDeploy/WeDeploy.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PromiseKit.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SocketIO.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Starscream.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WeDeploy.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - FFE5DD047BEB01CAF56716E8 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Boilerplate-email-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; + 07BA9CD6CB46B4B869689C2C /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 30F7DFA191DCC77076813676 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/PromiseKit/PromiseKit.framework", + "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", + "${BUILT_PRODUCTS_DIR}/Socket.IO-Client-Swift/SocketIO.framework", + "${BUILT_PRODUCTS_DIR}/Starscream/Starscream.framework", + "${BUILT_PRODUCTS_DIR}/WeDeploy/WeDeploy.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PromiseKit.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SocketIO.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Starscream.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WeDeploy.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Boilerplate-email/Pods-Boilerplate-email-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + FFE5DD047BEB01CAF56716E8 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Boilerplate-email-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 57ED47FB1E9B8FB400B4D097 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 57ED48051E9B8FB400B4D097 /* EmailViewController.swift in Sources */, - 57ED48281E9B912500B4D097 /* WeTextField.swift in Sources */, - 57ED48031E9B8FB400B4D097 /* AppDelegate.swift in Sources */, - 57ED48261E9B911700B4D097 /* WeFonts.swift in Sources */, - 57ED48221E9B910D00B4D097 /* WeColorButton.swift in Sources */, - 57ED48241E9B911200B4D097 /* WeColors.swift in Sources */, - 57ED482A1E9B918100B4D097 /* WeIcons.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; + 57ED47FB1E9B8FB400B4D097 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 57ED48051E9B8FB400B4D097 /* EmailViewController.swift in Sources */, + 57ED48281E9B912500B4D097 /* WeTextField.swift in Sources */, + 57ED48031E9B8FB400B4D097 /* AppDelegate.swift in Sources */, + 57ED48261E9B911700B4D097 /* WeFonts.swift in Sources */, + 57ED48221E9B910D00B4D097 /* WeColorButton.swift in Sources */, + 57ED48241E9B911200B4D097 /* WeColors.swift in Sources */, + 57ED482A1E9B918100B4D097 /* WeIcons.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ - 57ED48061E9B8FB400B4D097 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 57ED48071E9B8FB400B4D097 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 57ED480C1E9B8FB400B4D097 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; + 57ED48061E9B8FB400B4D097 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 57ED48071E9B8FB400B4D097 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 57ED480B1E9B8FB400B4D097 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 57ED480C1E9B8FB400B4D097 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ - 57ED480F1E9B8FB400B4D097 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 57ED48101E9B8FB400B4D097 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 57ED48121E9B8FB400B4D097 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "Boilerplate-email/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.liferay.Boilerplate-email"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - }; - name = Debug; - }; - 57ED48131E9B8FB400B4D097 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "Boilerplate-email/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.liferay.Boilerplate-email"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - }; - name = Release; - }; + 57ED480F1E9B8FB400B4D097 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 57ED48101E9B8FB400B4D097 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 57ED48121E9B8FB400B4D097 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F5E64DF56C75235B39342063 /* Pods-Boilerplate-email.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = "Boilerplate-email/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.liferay.Boilerplate-email"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Debug; + }; + 57ED48131E9B8FB400B4D097 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9779AAF4696BCA75B18AFA45 /* Pods-Boilerplate-email.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = "Boilerplate-email/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.liferay.Boilerplate-email"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 57ED47FA1E9B8FB400B4D097 /* Build configuration list for PBXProject "Boilerplate-email" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 57ED480F1E9B8FB400B4D097 /* Debug */, - 57ED48101E9B8FB400B4D097 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 57ED48111E9B8FB400B4D097 /* Build configuration list for PBXNativeTarget "Boilerplate-email" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 57ED48121E9B8FB400B4D097 /* Debug */, - 57ED48131E9B8FB400B4D097 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; + 57ED47FA1E9B8FB400B4D097 /* Build configuration list for PBXProject "Boilerplate-email" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 57ED480F1E9B8FB400B4D097 /* Debug */, + 57ED48101E9B8FB400B4D097 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 57ED48111E9B8FB400B4D097 /* Build configuration list for PBXNativeTarget "Boilerplate-email" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 57ED48121E9B8FB400B4D097 /* Debug */, + 57ED48131E9B8FB400B4D097 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ - }; - rootObject = 57ED47F71E9B8FB400B4D097 /* Project object */; + }; + rootObject = 57ED47F71E9B8FB400B4D097 /* Project object */; } diff --git a/Boilerplate-email/AppDelegate.swift b/Boilerplate-email/AppDelegate.swift index 3b0c532..e1edfce 100644 --- a/Boilerplate-email/AppDelegate.swift +++ b/Boilerplate-email/AppDelegate.swift @@ -11,35 +11,35 @@ import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { - var window: UIWindow? + var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. - } + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } - func applicationWillTerminate(_ application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } } diff --git a/Boilerplate-email/EmailViewController.swift b/Boilerplate-email/EmailViewController.swift index bd64fa3..b543c55 100644 --- a/Boilerplate-email/EmailViewController.swift +++ b/Boilerplate-email/EmailViewController.swift @@ -11,55 +11,55 @@ import WeDeploy class EmailViewController: UIViewController { - @IBOutlet weak var toTextField: BorderLessTextField! - @IBOutlet weak var fromTextField: BorderLessTextField! - @IBOutlet weak var subjectTextField: BorderLessTextField! - - override func viewDidLoad() { - super.viewDidLoad() - let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleScreenTap)) - view.addGestureRecognizer(tapGesture) - } - - @IBAction func submitButtonClick() { - guard let to = toTextField.text, - let from = fromTextField.text, - let subject = subjectTextField.text else { - - print("You have to fill all the fields") - return - } - - let auth = TokenAuth(token: "073e93d6-7dcc-4df5-9a18-9dd121b92f50") - WeDeploy.email("https://email-boilerplateemail.wedeploy.io", authorization: auth) - .to(to) - .from(from) - .subject(subject) - .message(subject) - .send() - .toCallback { emailId, error in - if let emailId = emailId { - self.showAlert(with: "Success", message: "Email sent! Wait a little bit until it arrives :)") - print("Email id: \(emailId)") - } - else { - self.showAlert(with: "Error", message: "Error sending the email") - print(String(describing: error)) - } - } - } - - @objc func handleScreenTap() { - view.endEditing(true) - } - - func showAlert(with title: String, message: String) { - let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) - let action = UIAlertAction(title: "Ok", style: .cancel, handler: nil) - alert.addAction(action) - - present(alert, animated: true, completion: nil) - } + @IBOutlet weak var toTextField: BorderLessTextField! + @IBOutlet weak var fromTextField: BorderLessTextField! + @IBOutlet weak var subjectTextField: BorderLessTextField! + + override func viewDidLoad() { + super.viewDidLoad() + let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleScreenTap)) + view.addGestureRecognizer(tapGesture) + } + + @IBAction func submitButtonClick() { + guard let to = toTextField.text, + let from = fromTextField.text, + let subject = subjectTextField.text else { + + print("You have to fill all the fields") + return + } + + let auth = TokenAuth(token: "073e93d6-7dcc-4df5-9a18-9dd121b92f50") + WeDeploy.email("https://email-boilerplateemail.wedeploy.io", authorization: auth) + .to(to) + .from(from) + .subject(subject) + .message(subject) + .send() + .toCallback { emailId, error in + if let emailId = emailId { + self.showAlert(with: "Success", message: "Email sent! Wait a little bit until it arrives :)") + print("Email id: \(emailId)") + } + else { + self.showAlert(with: "Error", message: "Error sending the email") + print(String(describing: error)) + } + } + } + + @objc func handleScreenTap() { + view.endEditing(true) + } + + func showAlert(with title: String, message: String) { + let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) + let action = UIAlertAction(title: "Ok", style: .cancel, handler: nil) + alert.addAction(action) + + present(alert, animated: true, completion: nil) + } } diff --git a/Boilerplate-email/Info.plist b/Boilerplate-email/Info.plist index a94dbcf..621f760 100644 --- a/Boilerplate-email/Info.plist +++ b/Boilerplate-email/Info.plist @@ -2,50 +2,50 @@ - NSAppTransportSecurity - - NSAllowsArbitraryLoads - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIAppFonts - - loop_icons_16px.ttf - rene_bieder_galano_grotesque_bold.otf - rene_bieder_galano_grotesque_medium.otf - rene_bieder_galano_grotesque_semibold.otf - loop_icons_12px.ttf - + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIAppFonts + + loop_icons_16px.ttf + rene_bieder_galano_grotesque_bold.otf + rene_bieder_galano_grotesque_medium.otf + rene_bieder_galano_grotesque_semibold.otf + loop_icons_12px.ttf + diff --git a/Boilerplate-email/WeColorButton.swift b/Boilerplate-email/WeColorButton.swift index 843b8fb..118e162 100644 --- a/Boilerplate-email/WeColorButton.swift +++ b/Boilerplate-email/WeColorButton.swift @@ -17,47 +17,47 @@ import UIKit class WeColorButton: UIButton { - @IBInspectable open var darkButton: Bool = false - @IBInspectable open var textSize: Int = 16 - @IBInspectable open var cornerRadius: Int = 4 - - override var isEnabled: Bool { - didSet { - alpha = isEnabled ? 1 : 0.6 - } - } - - override init(frame: CGRect) { - super.init(frame: frame) - initialize() - } - - required init?(coder aDecoder: NSCoder) { - super.init(coder: aDecoder) - } - - override func awakeFromNib() { - super.awakeFromNib() - - initialize() - } - - func initialize() { - - layer.cornerRadius = CGFloat(cornerRadius) - setTitleColor(.white, for: .disabled) - alpha = isEnabled ? 1 : 0.6 - - titleLabel?.font = UIFont.boldWeFont(ofSize: CGFloat(textSize)) - - if darkButton { - setTitleColor(.white, for: .normal) - backgroundColor = .mainColor - } - else { - setTitleColor(.mainColor, for: .normal) - backgroundColor = .white - } - } + @IBInspectable open var darkButton: Bool = false + @IBInspectable open var textSize: Int = 16 + @IBInspectable open var cornerRadius: Int = 4 + + override var isEnabled: Bool { + didSet { + alpha = isEnabled ? 1 : 0.6 + } + } + + override init(frame: CGRect) { + super.init(frame: frame) + initialize() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + } + + override func awakeFromNib() { + super.awakeFromNib() + + initialize() + } + + func initialize() { + + layer.cornerRadius = CGFloat(cornerRadius) + setTitleColor(.white, for: .disabled) + alpha = isEnabled ? 1 : 0.6 + + titleLabel?.font = UIFont.boldWeFont(ofSize: CGFloat(textSize)) + + if darkButton { + setTitleColor(.white, for: .normal) + backgroundColor = .mainColor + } + else { + setTitleColor(.mainColor, for: .normal) + backgroundColor = .white + } + } } diff --git a/Boilerplate-email/WeColors.swift b/Boilerplate-email/WeColors.swift index f62cc8d..9064376 100644 --- a/Boilerplate-email/WeColors.swift +++ b/Boilerplate-email/WeColors.swift @@ -17,42 +17,42 @@ import UIKit extension UIColor { - @nonobjc public static var mainColor = UIColor(8, 223, 133, 1) - - convenience init(_ red: Int, _ green: Int, _ blue: Int, _ alpha: CGFloat) { + @nonobjc public static var mainColor = UIColor(8, 223, 133, 1) + + convenience init(_ red: Int, _ green: Int, _ blue: Int, _ alpha: CGFloat) { - self.init(red: CGFloat(red)/255.0, green: CGFloat(green)/255.0, blue: CGFloat(blue)/255.0, alpha: alpha) - } + self.init(red: CGFloat(red)/255.0, green: CGFloat(green)/255.0, blue: CGFloat(blue)/255.0, alpha: alpha) + } - open class var WeTextFieldBackgroundColor: UIColor { - return UIColor(14, 19, 26, 0.05) - } + open class var WeTextFieldBackgroundColor: UIColor { + return UIColor(14, 19, 26, 0.05) + } - open class var WeTextFieldSelectedBackgroundColor: UIColor { - return UIColor(14, 19, 26, 0.1) - } + open class var WeTextFieldSelectedBackgroundColor: UIColor { + return UIColor(14, 19, 26, 0.1) + } - open class var WeTextFieldTextColor: UIColor { - return UIColor(14, 20, 26, 0.8) - } + open class var WeTextFieldTextColor: UIColor { + return UIColor(14, 20, 26, 0.8) + } - open class var WeTextColor: UIColor { - return UIColor(14, 20, 26, 0.6) - } + open class var WeTextColor: UIColor { + return UIColor(14, 20, 26, 0.6) + } - open class var WePlaceholderTextColor: UIColor { - return UIColor(14, 20, 26, 0.3) - } + open class var WePlaceholderTextColor: UIColor { + return UIColor(14, 20, 26, 0.3) + } - open class var GoogleColor: UIColor { - return UIColor(66, 133, 244, 1) - } + open class var GoogleColor: UIColor { + return UIColor(66, 133, 244, 1) + } - open class var FacebookColor: UIColor { - return UIColor(59, 89, 152, 1) - } + open class var FacebookColor: UIColor { + return UIColor(59, 89, 152, 1) + } - open class var GithubColor: UIColor { - return UIColor(25, 23, 23, 1) - } + open class var GithubColor: UIColor { + return UIColor(25, 23, 23, 1) + } } diff --git a/Boilerplate-email/WeFonts.swift b/Boilerplate-email/WeFonts.swift index f987c48..99a6711 100644 --- a/Boilerplate-email/WeFonts.swift +++ b/Boilerplate-email/WeFonts.swift @@ -17,23 +17,23 @@ import UIKit public extension UIFont { - public class func weFont(ofSize fontSize: CGFloat) -> UIFont { - return UIFont(name: "GalanoGrotesque-Medium", size: fontSize)! - } + public class func weFont(ofSize fontSize: CGFloat) -> UIFont { + return UIFont(name: "GalanoGrotesque-Medium", size: fontSize)! + } - public class func semiboldWeFont(ofSize fontSize: CGFloat) -> UIFont { - return UIFont(name: "GalanoGrotesque-SemiBold", size: fontSize)! - } + public class func semiboldWeFont(ofSize fontSize: CGFloat) -> UIFont { + return UIFont(name: "GalanoGrotesque-SemiBold", size: fontSize)! + } - public class func boldWeFont(ofSize fontSize: CGFloat) -> UIFont { - return UIFont(name: "GalanoGrotesque-Bold", size: fontSize)! - } + public class func boldWeFont(ofSize fontSize: CGFloat) -> UIFont { + return UIFont(name: "GalanoGrotesque-Bold", size: fontSize)! + } - public class func iconFont12px(ofSize fontSize: CGFloat) -> UIFont { - return UIFont(name: "loop-icons-12px", size: fontSize)! - } + public class func iconFont12px(ofSize fontSize: CGFloat) -> UIFont { + return UIFont(name: "loop-icons-12px", size: fontSize)! + } - public class func iconFont16px(ofSize fontSize: CGFloat) -> UIFont { - return UIFont(name: "loop-icons-16px", size: fontSize)! - } + public class func iconFont16px(ofSize fontSize: CGFloat) -> UIFont { + return UIFont(name: "loop-icons-16px", size: fontSize)! + } } diff --git a/Boilerplate-email/WeIcons.swift b/Boilerplate-email/WeIcons.swift index 8b4ec77..d891238 100644 --- a/Boilerplate-email/WeIcons.swift +++ b/Boilerplate-email/WeIcons.swift @@ -17,24 +17,24 @@ import Foundation public extension String { - public static let close = "\u{E00D}" - public static let error = "\u{E049}" - public static let success = "\u{E018}" - public static let thunder = "\u{E55F}" - public static let plus = "\u{E50D}" - public static let minus = "\u{E543}" - public static let arrow = "\u{E01C}" - public static let back = "\u{E03D}" - public static let cart = "\u{E503}" - public static let cardLayout = "\u{E56C}" - public static let listLayout = "\u{E507}" - public static let collectionLayout = "\u{E55E}" - public static let processing = "\u{E04E}" - public static let facebook = "\u{E052}" - public static let github = "\u{E04C}" - public static let google = "\u{E025}" - public static let showPassword = "\u{E04B}" - public static let hidePassword = "\u{E037}" - public static let profile = "\u{E009}" - + public static let close = "\u{E00D}" + public static let error = "\u{E049}" + public static let success = "\u{E018}" + public static let thunder = "\u{E55F}" + public static let plus = "\u{E50D}" + public static let minus = "\u{E543}" + public static let arrow = "\u{E01C}" + public static let back = "\u{E03D}" + public static let cart = "\u{E503}" + public static let cardLayout = "\u{E56C}" + public static let listLayout = "\u{E507}" + public static let collectionLayout = "\u{E55E}" + public static let processing = "\u{E04E}" + public static let facebook = "\u{E052}" + public static let github = "\u{E04C}" + public static let google = "\u{E025}" + public static let showPassword = "\u{E04B}" + public static let hidePassword = "\u{E037}" + public static let profile = "\u{E009}" + } diff --git a/Boilerplate-email/WeTextField.swift b/Boilerplate-email/WeTextField.swift index f80e21d..0e23d2a 100644 --- a/Boilerplate-email/WeTextField.swift +++ b/Boilerplate-email/WeTextField.swift @@ -17,102 +17,102 @@ import UIKit class BorderLessTextField: UITextField { - @IBInspectable var isPasswordField: Bool = false { - didSet { - isPasswordFieldChanged() - } - } + @IBInspectable var isPasswordField: Bool = false { + didSet { + isPasswordFieldChanged() + } + } - var showPasswordButton = UIButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24)) + var showPasswordButton = UIButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24)) - override init(frame: CGRect) { - super.init(frame: frame) - initialize() - } - - required init?(coder aDecoder: NSCoder) { - super.init(coder: aDecoder) - initialize() - } + override init(frame: CGRect) { + super.init(frame: frame) + initialize() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + initialize() + } - func initialize() { - layer.borderColor = UIColor.clear.cgColor - layer.borderWidth = 0 - layer.cornerRadius = 4 + func initialize() { + layer.borderColor = UIColor.clear.cgColor + layer.borderWidth = 0 + layer.cornerRadius = 4 - textColor = .WeTextFieldTextColor + textColor = .WeTextFieldTextColor - let fontSize: CGFloat = UIScreen.main.bounds.width > 340 ? 16 : 14 + let fontSize: CGFloat = UIScreen.main.bounds.width > 340 ? 16 : 14 - font = UIFont.semiboldWeFont(ofSize: fontSize) + font = UIFont.semiboldWeFont(ofSize: fontSize) - tintColor = .mainColor - } + tintColor = .mainColor + } - override func becomeFirstResponder() -> Bool { - backgroundColor = .WeTextFieldSelectedBackgroundColor + override func becomeFirstResponder() -> Bool { + backgroundColor = .WeTextFieldSelectedBackgroundColor textColor = .WeTextFieldTextColor - return super.becomeFirstResponder() - } + return super.becomeFirstResponder() + } - override func resignFirstResponder() -> Bool { - self.backgroundColor = .WeTextFieldBackgroundColor - return super.resignFirstResponder() - } + override func resignFirstResponder() -> Bool { + self.backgroundColor = .WeTextFieldBackgroundColor + return super.resignFirstResponder() + } - override func editingRect(forBounds bounds: CGRect) -> CGRect { - var rect = super.editingRect(forBounds: bounds) - let defaultPadding = rect.origin.x + override func editingRect(forBounds bounds: CGRect) -> CGRect { + var rect = super.editingRect(forBounds: bounds) + let defaultPadding = rect.origin.x - rect.origin.x = 20 - rect.size.width = rect.size.width - (60 - defaultPadding) + rect.origin.x = 20 + rect.size.width = rect.size.width - (60 - defaultPadding) - return rect - } + return rect + } - override func textRect(forBounds bounds: CGRect) -> CGRect { - var rect = super.textRect(forBounds: bounds) - let defaultPadding = rect.origin.x + override func textRect(forBounds bounds: CGRect) -> CGRect { + var rect = super.textRect(forBounds: bounds) + let defaultPadding = rect.origin.x - rect.origin.x = 20 - rect.size.width = rect.size.width - (60 - defaultPadding) + rect.origin.x = 20 + rect.size.width = rect.size.width - (60 - defaultPadding) - return rect - } + return rect + } - override func rightViewRect(forBounds bounds: CGRect) -> CGRect { + override func rightViewRect(forBounds bounds: CGRect) -> CGRect { - return CGRect(x: self.frame.maxX - bounds.height-10, y: 10, width: bounds.height-20, height: bounds.height-20) - } + return CGRect(x: self.frame.maxX - bounds.height-10, y: 10, width: bounds.height-20, height: bounds.height-20) + } open func setErrorAppearance() { backgroundColor = UIColor(255, 64,64, 0.10); textColor = UIColor(255, 64, 64, 1) } - func isPasswordFieldChanged() { - if isPasswordField { - showPasswordButton.backgroundColor = .WeTextFieldSelectedBackgroundColor - showPasswordButton.titleLabel?.font = UIFont.iconFont12px(ofSize: 12) - showPasswordButton.setTitle(.showPassword, for: .normal) - showPasswordButton.addTarget(self, action: #selector(showOrHidePassword), for: .touchUpInside) - showPasswordButton.setTitleColor(.WeTextColor, for: .normal) - showPasswordButton.layer.cornerRadius = 4 - rightView = showPasswordButton - rightViewMode = .always - isSecureTextEntry = true - } - else { - showPasswordButton.removeTarget(self, action: #selector(showOrHidePassword), for: .touchUpInside) - rightViewMode = .never - isSecureTextEntry = false - } - } - - @objc func showOrHidePassword() { - isSecureTextEntry = !isSecureTextEntry - - showPasswordButton.setTitle(isSecureTextEntry ? .showPassword : .hidePassword, for: .normal) - } + func isPasswordFieldChanged() { + if isPasswordField { + showPasswordButton.backgroundColor = .WeTextFieldSelectedBackgroundColor + showPasswordButton.titleLabel?.font = UIFont.iconFont12px(ofSize: 12) + showPasswordButton.setTitle(.showPassword, for: .normal) + showPasswordButton.addTarget(self, action: #selector(showOrHidePassword), for: .touchUpInside) + showPasswordButton.setTitleColor(.WeTextColor, for: .normal) + showPasswordButton.layer.cornerRadius = 4 + rightView = showPasswordButton + rightViewMode = .always + isSecureTextEntry = true + } + else { + showPasswordButton.removeTarget(self, action: #selector(showOrHidePassword), for: .touchUpInside) + rightViewMode = .never + isSecureTextEntry = false + } + } + + @objc func showOrHidePassword() { + isSecureTextEntry = !isSecureTextEntry + + showPasswordButton.setTitle(isSecureTextEntry ? .showPassword : .hidePassword, for: .normal) + } }