BrokerDriver.xcodeproj/project.pbxproj
@@ -46,6 +46,7 @@ 135FD1FD2A04BC650048BE7A /* TroubleHistoryContentVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 135FD1FB2A04BC650048BE7A /* TroubleHistoryContentVC.xib */; }; 13795C0B2A035EF30026320D /* AttachTypeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13795C0A2A035EF30026320D /* AttachTypeView.swift */; }; 13795C0D2A035F0E0026320D /* AttachTypeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13795C0C2A035F0E0026320D /* AttachTypeView.xib */; }; 138D72822A8DBD2B00183304 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 138D72842A8DBD2B00183304 /* InfoPlist.strings */; }; 138DA4B829F62F9500A71FE7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138DA4B729F62F9500A71FE7 /* AppDelegate.swift */; }; 138DA4BA29F62F9500A71FE7 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138DA4B929F62F9500A71FE7 /* SceneDelegate.swift */; }; 138DA4BF29F62F9500A71FE7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 138DA4BD29F62F9500A71FE7 /* Main.storyboard */; }; @@ -77,6 +78,14 @@ 139F0F8529F68B90007D9EA4 /* BaseTCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 139F0F8429F68B90007D9EA4 /* BaseTCell.swift */; }; 13A0133D29FBB41000537A4F /* PhotoPickerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13A0133C29FBB41000537A4F /* PhotoPickerView.swift */; }; 13A0133F29FBB41700537A4F /* PhotoPickerView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13A0133E29FBB41700537A4F /* PhotoPickerView.xib */; }; 13A5825A2AB00764001445DC /* ResgiterVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13A582582AB00764001445DC /* ResgiterVC.swift */; }; 13A5825B2AB00764001445DC /* ResgiterVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13A582592AB00764001445DC /* ResgiterVC.xib */; }; 13A5825E2AB00E92001445DC /* Resigter_2_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13A5825C2AB00E92001445DC /* Resigter_2_VC.swift */; }; 13A5825F2AB00E92001445DC /* Resigter_2_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13A5825D2AB00E92001445DC /* Resigter_2_VC.xib */; }; 13C770FE2AB012C800507B09 /* Resgiter_3_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13C770FC2AB012C800507B09 /* Resgiter_3_VC.swift */; }; 13C770FF2AB012C800507B09 /* Resgiter_3_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13C770FD2AB012C800507B09 /* Resgiter_3_VC.xib */; }; 13C771022AB0175600507B09 /* Resigter_4_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13C771002AB0175600507B09 /* Resigter_4_VC.swift */; }; 13C771032AB0175600507B09 /* Resigter_4_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13C771012AB0175600507B09 /* Resigter_4_VC.xib */; }; 13F47D422A05F5F900B8AB63 /* GoogleModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13F47D412A05F5F900B8AB63 /* GoogleModel.swift */; }; 13F47D442A063DE900B8AB63 /* UIButton+Exception.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13F47D432A063DE900B8AB63 /* UIButton+Exception.swift */; }; 13F536B229F7D0DF00A7937A /* NoteContentTCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13F536B029F7D0DF00A7937A /* NoteContentTCell.swift */; }; @@ -93,7 +102,6 @@ 13F536CA29FA7AA900A7937A /* DatePickerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13F536C929FA7AA900A7937A /* DatePickerView.swift */; }; 13F536CC29FA7AB000A7937A /* DatePickerView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13F536CB29FA7AB000A7937A /* DatePickerView.xib */; }; 656E15B4DAA88146F5E490CA /* Pods_BrokerDriver.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E99D0F4A48F512570D96537 /* Pods_BrokerDriver.framework */; }; 8D7AE6AF2A29EC69008625DA /* Staging.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 8D7AE6AE2A29EC69008625DA /* Staging.xcconfig */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -136,13 +144,16 @@ 135FD1FB2A04BC650048BE7A /* TroubleHistoryContentVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TroubleHistoryContentVC.xib; sourceTree = "<group>"; }; 13795C0A2A035EF30026320D /* AttachTypeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AttachTypeView.swift; sourceTree = "<group>"; }; 13795C0C2A035F0E0026320D /* AttachTypeView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AttachTypeView.xib; sourceTree = "<group>"; }; 138D727C2A8DBB5300183304 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; }; 138D727D2A8DBB5300183304 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; }; 138D72832A8DBD2B00183304 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 138D72852A8DBD2D00183304 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; }; 138DA4B429F62F9500A71FE7 /* BrokerDriver.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BrokerDriver.app; sourceTree = BUILT_PRODUCTS_DIR; }; 138DA4B729F62F9500A71FE7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 138DA4B929F62F9500A71FE7 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; }; 138DA4BE29F62F9500A71FE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; 138DA4C029F62F9700A71FE7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 138DA4C329F62F9700A71FE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 138DA4C529F62F9700A71FE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 138DA4CB29F6305600A71FE7 /* Def.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Def.swift; sourceTree = "<group>"; }; 138DA4CD29F6305600A71FE7 /* BaseViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = "<group>"; }; 138DA4CE29F6305600A71FE7 /* BaseNavigationController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseNavigationController.swift; sourceTree = "<group>"; }; @@ -169,6 +180,14 @@ 139F0F8429F68B90007D9EA4 /* BaseTCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseTCell.swift; sourceTree = "<group>"; }; 13A0133C29FBB41000537A4F /* PhotoPickerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhotoPickerView.swift; sourceTree = "<group>"; }; 13A0133E29FBB41700537A4F /* PhotoPickerView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PhotoPickerView.xib; sourceTree = "<group>"; }; 13A582582AB00764001445DC /* ResgiterVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResgiterVC.swift; sourceTree = "<group>"; }; 13A582592AB00764001445DC /* ResgiterVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ResgiterVC.xib; sourceTree = "<group>"; }; 13A5825C2AB00E92001445DC /* Resigter_2_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Resigter_2_VC.swift; sourceTree = "<group>"; }; 13A5825D2AB00E92001445DC /* Resigter_2_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Resigter_2_VC.xib; sourceTree = "<group>"; }; 13C770FC2AB012C800507B09 /* Resgiter_3_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Resgiter_3_VC.swift; sourceTree = "<group>"; }; 13C770FD2AB012C800507B09 /* Resgiter_3_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Resgiter_3_VC.xib; sourceTree = "<group>"; }; 13C771002AB0175600507B09 /* Resigter_4_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Resigter_4_VC.swift; sourceTree = "<group>"; }; 13C771012AB0175600507B09 /* Resigter_4_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Resigter_4_VC.xib; sourceTree = "<group>"; }; 13F47D412A05F5F900B8AB63 /* GoogleModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoogleModel.swift; sourceTree = "<group>"; }; 13F47D432A063DE900B8AB63 /* UIButton+Exception.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIButton+Exception.swift"; sourceTree = "<group>"; }; 13F536B029F7D0DF00A7937A /* NoteContentTCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteContentTCell.swift; sourceTree = "<group>"; }; @@ -187,7 +206,6 @@ 33DCC1D819EF0A04257FB4A8 /* Pods-BrokerDriver.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BrokerDriver.release.xcconfig"; path = "Target Support Files/Pods-BrokerDriver/Pods-BrokerDriver.release.xcconfig"; sourceTree = "<group>"; }; 36C7396011423ADA377B2856 /* Pods-BrokerDriver.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BrokerDriver.debug.xcconfig"; path = "Target Support Files/Pods-BrokerDriver/Pods-BrokerDriver.debug.xcconfig"; sourceTree = "<group>"; }; 6ED11CE2F59486CE23AC5639 /* Pods-BrokerDriver.staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BrokerDriver.staging.xcconfig"; path = "Target Support Files/Pods-BrokerDriver/Pods-BrokerDriver.staging.xcconfig"; sourceTree = "<group>"; }; 8D7AE6AE2A29EC69008625DA /* Staging.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Staging.xcconfig; sourceTree = "<group>"; }; 8E99D0F4A48F512570D96537 /* Pods_BrokerDriver.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BrokerDriver.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -268,13 +286,12 @@ 138DA4CB29F6305600A71FE7 /* Def.swift */, 138DA4CF29F6305600A71FE7 /* Exception */, 139F0F7529F65880007D9EA4 /* Home */, 138DA4C529F62F9700A71FE7 /* Info.plist */, 138DA4C229F62F9700A71FE7 /* LaunchScreen.storyboard */, 138DA4D129F6305600A71FE7 /* Login */, 138DA4BD29F62F9500A71FE7 /* Main.storyboard */, 138DA4B929F62F9500A71FE7 /* SceneDelegate.swift */, 13F536C329FA14A000A7937A /* Enums.swift */, 8D7AE6AE2A29EC69008625DA /* Staging.xcconfig */, 138D72842A8DBD2B00183304 /* InfoPlist.strings */, ); path = BrokerDriver; sourceTree = "<group>"; @@ -317,6 +334,14 @@ 138DA4D429F6305600A71FE7 /* LoginVC.xib */, 139F0F7129F65497007D9EA4 /* ForgotPwdVC.swift */, 139F0F7229F65497007D9EA4 /* ForgotPwdVC.xib */, 13A582582AB00764001445DC /* ResgiterVC.swift */, 13A582592AB00764001445DC /* ResgiterVC.xib */, 13A5825C2AB00E92001445DC /* Resigter_2_VC.swift */, 13A5825D2AB00E92001445DC /* Resigter_2_VC.xib */, 13C770FC2AB012C800507B09 /* Resgiter_3_VC.swift */, 13C770FD2AB012C800507B09 /* Resgiter_3_VC.xib */, 13C771002AB0175600507B09 /* Resigter_4_VC.swift */, 13C771012AB0175600507B09 /* Resigter_4_VC.xib */, ); path = VC; sourceTree = "<group>"; @@ -506,6 +531,7 @@ knownRegions = ( en, Base, "zh-Hans", ); mainGroup = 138DA4AB29F62F9500A71FE7; productRefGroup = 138DA4B529F62F9500A71FE7 /* Products */; @@ -525,6 +551,7 @@ 139F0F8329F689F9007D9EA4 /* HomeItemTCell.xib in Resources */, 1309AE1229F7919900F5FA26 /* HomeDetailAttachVC.xib in Resources */, 13045E7D29F7C4D9004E10BE /* AttachTCell.xib in Resources */, 13A5825F2AB00E92001445DC /* Resigter_2_VC.xib in Resources */, 135FD1FD2A04BC650048BE7A /* TroubleHistoryContentVC.xib in Resources */, 1309AE0029F7848C00F5FA26 /* WalletTCell.xib in Resources */, 13941CE429F763C900AB569F /* PersonalCenterVC.xib in Resources */, @@ -532,6 +559,7 @@ 138DA4C429F62F9700A71FE7 /* LaunchScreen.storyboard in Resources */, 138DA4C129F62F9700A71FE7 /* Assets.xcassets in Resources */, 135FD1F32A04A87C0048BE7A /* TroubleFootView.xib in Resources */, 13C770FF2AB012C800507B09 /* Resgiter_3_VC.xib in Resources */, 130F4EF229F7B86000937687 /* CargoTableHeaderView.xib in Resources */, 1309ADF829F77F7700F5FA26 /* Impact.ttf in Resources */, 135FD1F92A04B4150048BE7A /* TroubleHistoryTCell.xib in Resources */, @@ -540,7 +568,6 @@ 13F536B329F7D0DF00A7937A /* NoteContentTCell.xib in Resources */, 139F0F7429F65497007D9EA4 /* ForgotPwdVC.xib in Resources */, 13A0133F29FBB41700537A4F /* PhotoPickerView.xib in Resources */, 8D7AE6AF2A29EC69008625DA /* Staging.xcconfig in Resources */, 13941CE929F76BF400AB569F /* CompanyVC.xib in Resources */, 138DA4BF29F62F9500A71FE7 /* Main.storyboard in Resources */, 1309AE1629F791BA00F5FA26 /* HomeDetailNoteVC.xib in Resources */, @@ -548,10 +575,13 @@ 1309AE0429F788D900F5FA26 /* PersonalDataVC.xib in Resources */, 135FD1EF2A049DD80048BE7A /* TroubleTCell.xib in Resources */, 13941CEF29F77A7F00AB569F /* PersonalWalletVC.xib in Resources */, 13C771032AB0175600507B09 /* Resigter_4_VC.xib in Resources */, 13F536CC29FA7AB000A7937A /* DatePickerView.xib in Resources */, 135FD1E92A03A1E80048BE7A /* CommonAlertView.xib in Resources */, 1309AE0E29F7914600F5FA26 /* HomeDetailContentVC.xib in Resources */, 130F4EED29F7B6C100937687 /* CargoInfoTCell.xib in Resources */, 13A5825B2AB00764001445DC /* ResgiterVC.xib in Resources */, 138D72822A8DBD2B00183304 /* InfoPlist.strings in Resources */, 13045E7929F7C312004E10BE /* AttachHeadView.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -629,11 +659,13 @@ 13941CE829F76BF400AB569F /* CompanyVC.swift in Sources */, 1309AE0829F78D1400F5FA26 /* HomeDetailMenuVC.swift in Sources */, 13795C0B2A035EF30026320D /* AttachTypeView.swift in Sources */, 13C770FE2AB012C800507B09 /* Resgiter_3_VC.swift in Sources */, 139F0F7E29F6713A007D9EA4 /* HomePageVC.swift in Sources */, 13045E7729F7C2FD004E10BE /* AttachHeadView.swift in Sources */, 135FD1E72A03A1E20048BE7A /* CommonAlertView.swift in Sources */, 138DA4D829F6305600A71FE7 /* Colors+Exception.swift in Sources */, 13941CDF29F6901D00AB569F /* BaseTableView.swift in Sources */, 13C771022AB0175600507B09 /* Resigter_4_VC.swift in Sources */, 1309AE0A29F78D9200F5FA26 /* HomeDetailMapVC.swift in Sources */, 13F536C029F927E900A7937A /* OrderViewModel.swift in Sources */, 135FD1EB2A0498F40048BE7A /* TroubleListVC.swift in Sources */, @@ -647,6 +679,7 @@ 13F47D422A05F5F900B8AB63 /* GoogleModel.swift in Sources */, 138DA4D929F6305600A71FE7 /* LoginVC.swift in Sources */, 13F536B829F7D6CF00A7937A /* NetworkRequest.swift in Sources */, 13A5825A2AB00764001445DC /* ResgiterVC.swift in Sources */, 13F536C229F927FC00A7937A /* OrderModel.swift in Sources */, 13F536CA29FA7AA900A7937A /* DatePickerView.swift in Sources */, 13F536B229F7D0DF00A7937A /* NoteContentTCell.swift in Sources */, @@ -673,6 +706,7 @@ 135FD1F52A04B3B40048BE7A /* TroubleHistoryListVC.swift in Sources */, 138DA4BA29F62F9500A71FE7 /* SceneDelegate.swift in Sources */, 138DA4D729F6305600A71FE7 /* BaseNavigationController.swift in Sources */, 13A5825E2AB00E92001445DC /* Resigter_2_VC.swift in Sources */, 138DA4D529F6305600A71FE7 /* Def.swift in Sources */, 1309ADFF29F7848C00F5FA26 /* WalletTCell.swift in Sources */, 1309AE0D29F7914600F5FA26 /* HomeDetailContentVC.swift in Sources */, @@ -683,10 +717,20 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 138D72842A8DBD2B00183304 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( 138D72832A8DBD2B00183304 /* en */, 138D72852A8DBD2D00183304 /* zh-Hans */, ); name = InfoPlist.strings; sourceTree = "<group>"; }; 138DA4BD29F62F9500A71FE7 /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( 138DA4BE29F62F9500A71FE7 /* Base */, 138D727D2A8DBB5300183304 /* zh-Hans */, ); name = Main.storyboard; sourceTree = "<group>"; @@ -695,6 +739,7 @@ isa = PBXVariantGroup; children = ( 138DA4C329F62F9700A71FE7 /* Base */, 138D727C2A8DBB5300183304 /* zh-Hans */, ); name = LaunchScreen.storyboard; sourceTree = "<group>"; @@ -706,6 +751,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; @@ -752,7 +798,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 16.4; IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -766,6 +812,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; @@ -806,7 +853,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 16.4; IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; @@ -824,16 +871,19 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = X9BAWVRPFM; EXCLUDED_ARCHS = "i386 armv7 armv7s"; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = BrokerDriver/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "CCA Driver"; INFOPLIST_KEY_NSCalendarsUsageDescription = ""; INFOPLIST_KEY_NSCameraUsageDescription = "Upload receipts and vouchers using the camera"; INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSLocationUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload receipts and vouchers using the photo album"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; @@ -853,6 +903,7 @@ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; @@ -867,16 +918,19 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = X9BAWVRPFM; EXCLUDED_ARCHS = "i386 armv7 armv7s"; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = BrokerDriver/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "CCA Driver"; INFOPLIST_KEY_NSCalendarsUsageDescription = ""; INFOPLIST_KEY_NSCameraUsageDescription = "Upload receipts and vouchers using the camera"; INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSLocationUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload receipts and vouchers using the photo album"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; @@ -896,114 +950,12 @@ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; 8D7AE6B02A29EC73008625DA /* Staging */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; 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 = 16.4; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Staging; }; 8D7AE6B12A29EC73008625DA /* Staging */ = { isa = XCBuildConfiguration; baseConfigurationReference = 6ED11CE2F59486CE23AC5639 /* Pods-BrokerDriver.staging.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = X9BAWVRPFM; EXCLUDED_ARCHS = "i386 armv7 armv7s"; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = BrokerDriver/Info.plist; INFOPLIST_KEY_NSCameraUsageDescription = "Upload receipts and vouchers using the camera"; INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Track driver location and report"; INFOPLIST_KEY_NSLocationUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Track driver location and report "; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload receipts and vouchers using the photo album"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.broker.BrokerDriver; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = dev_profile; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; name = Staging; }; /* End XCBuildConfiguration section */ @@ -1012,7 +964,6 @@ isa = XCConfigurationList; buildConfigurations = ( 138DA4C629F62F9700A71FE7 /* Debug */, 8D7AE6B02A29EC73008625DA /* Staging */, 138DA4C729F62F9700A71FE7 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -1022,7 +973,6 @@ isa = XCConfigurationList; buildConfigurations = ( 138DA4C929F62F9700A71FE7 /* Debug */, 8D7AE6B12A29EC73008625DA /* Staging */, 138DA4CA29F62F9700A71FE7 /* Release */, ); defaultConfigurationIsVisible = 0; BrokerDriver/Assets.xcassets/.DS_StoreBinary files differ
BrokerDriver/Base.lproj/LaunchScreen.storyboard
@@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22129"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <scenes> @@ -11,10 +14,10 @@ <objects> <viewController id="01J-lp-oVM" sceneMemberID="viewController"> <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> </view> </viewController> <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> @@ -22,4 +25,9 @@ <point key="canvasLocation" x="53" y="375"/> </scene> </scenes> <resources> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> </resources> </document> BrokerDriver/Home/VC/HomeDetailAttachVC.swift
@@ -16,7 +16,7 @@ class HomeDetailAttachVC: BaseViewController,Refreshable { @IBOutlet weak var attachTableView: BaseTableView! private(set) var orderId:String! private(set) var orderId:String! public let refreshStatus = BehaviorSubject(value: RefreshStatus.others) private var page = 1 private var datas = [AttachmentRecordModel]() @@ -41,6 +41,7 @@ override func viewDidLoad() { super.viewDidLoad() view.jq_height = 1000 view.backgroundColor = UIColor(hexStr: "#F9FAFF") attachTableView.delegate = self attachTableView.dataSource = self @@ -70,15 +71,21 @@ } func scrollViewDidScroll(_ scrollView: UIScrollView) { let totalHeight = adapterViewController.headHeight let offset = totalHeight - scrollView.contentOffset.y let isTop = (offset - topSafeHeight) < 0 if scrollView.contentOffset.y > 0 && !isTop{ adapterViewController.scrollview.contentOffset = scrollView.contentOffset } let totalHeight = adapterViewController?.headHeight ?? 0 let offset = totalHeight - scrollView.contentOffset.y let isTop = (offset - topSafeHeight) < 0 if scrollView.contentOffset.y >= 0 { if isTop{ print("-->1") adapterViewController?.scrollview.contentOffset = CGPoint(x: 0, y: totalHeight - topSafeHeight) }else if scrollView.contentOffset.y <= 0{ print("-->2") adapterViewController?.scrollview.setContentOffset(.zero, animated: true) }else{ print("-->3") adapterViewController?.scrollview.contentOffset = scrollView.contentOffset } } } private func getData(_ isHeader:Bool = true){ BrokerDriver/Home/VC/HomeDetailAttachVC.xib
@@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22129"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> BrokerDriver/Home/VC/HomeDetailContentVC.swift
@@ -80,10 +80,14 @@ } private func getData(){ private func getData(_ beginStart:Bool = false){ Services.orderInfo(id: orderId).subscribe(onNext: { [weak self] data in if let model = data.data{ self?.model = model if beginStart{ UserDefaults.standard.set(model.toJSONString(), forKey: "CurrentOrder") UserDefaults.standard.synchronize() } NotificationCenter.default.post(name: UpdateMap_Noti, object: model) } }) { error in @@ -130,11 +134,11 @@ private func changeStatus(orderId:String){ Services.nextStatus(id: orderId).subscribe(onNext: { data in if data.code == 200{ self.getData() self.getData(true) //Update Home data status. NotificationCenter.default.post(name: RefreshHomePage_Noti, object: true) }else{ alert(msg: data.msg) alert(msg: data.message) } }) { error in alert(msg: error.localizedDescription) @@ -148,14 +152,17 @@ extension HomeDetailContentVC:UIScrollViewDelegate{ func scrollViewDidScroll(_ scrollView: UIScrollView) { let totalHeight = adapterViewController?.headHeight ?? 0 let offset = totalHeight - scrollView.contentOffset.y let isTop = (offset - topSafeHeight) < 0 if scrollView.contentOffset.y > 0 && !isTop{ adapterViewController?.scrollview.contentOffset = scrollView.contentOffset if scrollView.contentOffset.y >= 0 { if isTop{ adapterViewController?.scrollview.contentOffset = CGPoint(x: 0, y: totalHeight - topSafeHeight) }else if scrollView.contentOffset.y <= 0{ adapterViewController?.scrollview.setContentOffset(.zero, animated: true) }else{ adapterViewController?.scrollview.contentOffset = scrollView.contentOffset } } } } BrokerDriver/Home/VC/HomeDetailContentVC.xib
@@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22129"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> @@ -31,7 +31,7 @@ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RZZ-lC-T7W"> <rect key="frame" x="10" y="5" width="373" height="842"/> <rect key="frame" x="10" y="5" width="373" height="808"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="Sh7-2N-mvt"> <rect key="frame" x="0.0" y="0.0" width="373" height="78"/> @@ -244,13 +244,13 @@ <viewLayoutGuide key="safeArea" id="nCn-el-ZCs"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="RZZ-lC-T7W" secondAttribute="bottom" constant="5" id="4ER-RU-FKK"/> <constraint firstItem="RZZ-lC-T7W" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="10" id="4MS-Em-eUb"/> <constraint firstAttribute="bottomMargin" secondItem="ZL1-Nv-BlK" secondAttribute="bottom" id="8kS-fC-qAx"/> <constraint firstItem="RZZ-lC-T7W" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="5" id="De6-lo-1yB"/> <constraint firstAttribute="trailing" secondItem="RZZ-lC-T7W" secondAttribute="trailing" constant="10" id="Laf-Ke-rd0"/> <constraint firstItem="ZL1-Nv-BlK" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Yka-dx-Bh2"/> <constraint firstAttribute="trailing" secondItem="ZL1-Nv-BlK" secondAttribute="trailing" id="faR-Sq-69n"/> <constraint firstAttribute="bottomMargin" secondItem="RZZ-lC-T7W" secondAttribute="bottom" constant="5" id="u5d-jP-eGJ"/> </constraints> <point key="canvasLocation" x="84.732824427480907" y="20.422535211267608"/> </view> BrokerDriver/Home/VC/HomeDetailMapVC.swift
@@ -23,16 +23,20 @@ map.isBuildingsEnabled = true map.settings.compassButton = true map.settings.myLocationButton = false map.setMinZoom(5, maxZoom: 20) // map.setMinZoom(5, maxZoom: 20) map.accessibilityElementsHidden = true map.delegate = self return map }() private lazy var mananger:CLLocationManager = { lazy var mananger:CLLocationManager = { let manan = CLLocationManager() manan.delegate = self manan.requestWhenInUseAuthorization() manan.requestAlwaysAuthorization() manan.distanceFilter = 15 manan.distanceFilter = 10 manan.allowsBackgroundLocationUpdates = true manan.pausesLocationUpdatesAutomatically = false manan.desiredAccuracy = kCLLocationAccuracyBestForNavigation return manan }() @@ -151,12 +155,23 @@ sharpBtn.addTarget(self, action: #selector(sharpAction), for: .touchUpInside) positionBtn.addTarget(self, action: #selector(locationToAction), for: .touchUpInside) userLocalBtn.addTarget(self, action: #selector(currentUserLocation), for: .touchUpInside) mananger.startUpdatingLocation() } override func setRx() { NotificationCenter.default.rx.notification(UpdateMap_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self] noti in guard let weakSelf = self else { return } if let tuple = noti.object as? OrderDetailModel{ UserDefaults.standard.set(tuple.toJSONString(), forKey: "CurrentOrder") UserDefaults.standard.synchronize() // switch tuple.data!.status{ // case .PendingPickupDeparture,.ArrivedPort,.SendTOCheckPoint,.Checking,.PendingPickupInCheckPoint,.InTransitInYard,.InYard,.Transiting,.InWarehouse,.PendingUnload,.Unloaded,.TransitingToYard,.InYardByEmpty,.BackYard: // default: // weakSelf.mananger.stopUpdatingLocation() // } var wayPointes = [String]() for tu in tuple.lonlat{ @@ -166,11 +181,9 @@ weakSelf.checkMarker.map = weakSelf.mapView wayPointes.append(String(format: "via:%lf,%lf", weakSelf.checkMarker.position.latitude,weakSelf.checkMarker.position.longitude)) case .StartPoint: // weakSelf.startMarker.position = CLLocationCoordinate2D(latitude: 30.670682, longitude: 104.078942) //测试 weakSelf.startMarker.position = CLLocationCoordinate2D(latitude: tu.lat, longitude: tu.lon) weakSelf.startMarker.map = weakSelf.mapView case .Terminal: // weakSelf.destionMarker.position = CLLocationCoordinate2D(latitude: 30.616992, longitude: 104.070893) //测试 weakSelf.destionMarker.position = CLLocationCoordinate2D(latitude: tu.lat, longitude: tu.lon) weakSelf.destionMarker.map = weakSelf.mapView case .Yard: @@ -179,15 +192,6 @@ wayPointes.append(String(format: "via:%lf,%lf", weakSelf.yardMarker.position.latitude,weakSelf.yardMarker.position.longitude)) } } // 1 - 2: 2,3,5,12,13,14 // 1- 3: 5,6 // 3 - 4: 7,15 //4 - 3: 9,10,11 // 3 - 1: 11,18 GoogleServices.directionsLine(origin: .byCoordinates(weakSelf.startMarker.position), destination: .byCoordinates(weakSelf.destionMarker.position), waypoints: wayPointes.joined(separator: "|")).subscribe(onNext: {[weak self] data in @@ -211,7 +215,6 @@ }) { error in }.disposed(by: weakSelf.disposeBag) self?.mananger.startUpdatingLocation() } }).disposed(by: disposeBag) } @@ -244,17 +247,31 @@ let alertVC = UIAlertController(title: "Navgation", message: "Where to go?", preferredStyle: .actionSheet) if checkMarker.position.latitude != 0 && checkMarker.position.longitude != 0{ if checkMarker.position.latitude != -180 && checkMarker.position.longitude != -180{ alertVC.addAction(UIAlertAction(title: "Check Point", style: .default) { [weak self] _ in guard let weakSelf = self else { return } MapNavigationTool.startNav(weakSelf.checkMarker.position, distanceName: weakSelf.checkMarker.title ?? "None", scheme: "BrokerDriver") }) } if yardMarker.position.latitude != 0 && yardMarker.position.longitude != 0{ if yardMarker.position.latitude != -180 && yardMarker.position.longitude != -180{ alertVC.addAction(UIAlertAction(title: "Yard Point", style: .default) { [weak self] _ in guard let weakSelf = self else { return } MapNavigationTool.startNav(weakSelf.yardMarker.position, distanceName: weakSelf.yardMarker.title ?? "None", scheme: "BrokerDriver") }) } if destionMarker.position.latitude != -180 && destionMarker.position.longitude != -180{ alertVC.addAction(UIAlertAction(title: "Terminal Point", style: .default) { [weak self] _ in guard let weakSelf = self else { return } MapNavigationTool.startNav(weakSelf.destionMarker.position, distanceName: weakSelf.destionMarker.title ?? "None", scheme: "BrokerDriver") }) } if startMarker.position.latitude != -180 && startMarker.position.longitude != -180{ alertVC.addAction(UIAlertAction(title: "Start Point", style: .default) { [weak self] _ in guard let weakSelf = self else { return } MapNavigationTool.startNav(weakSelf.startMarker.position, distanceName: weakSelf.startMarker.title ?? "None", scheme: "BrokerDriver") }) } @@ -289,44 +306,6 @@ make.height.equalTo(24) } } func updateBounds(carCoordinate:CLLocationCoordinate2D?,terminalCoordinate:CLLocationCoordinate2D?){ var centerCoordiante:CLLocationCoordinate2D? if carCoordinate != nil{ carMarker.position = carCoordinate! carMarker.map = mapView centerCoordiante = carCoordinate } if terminalCoordinate != nil{ destionMarker.position = terminalCoordinate! destionMarker.map = mapView centerCoordiante = terminalCoordinate } if carCoordinate != nil && terminalCoordinate != nil{ let bounds = GMSCoordinateBounds(coordinate: carCoordinate!, coordinate: terminalCoordinate!) let update = GMSCameraUpdate.fit(bounds, with: UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30)) mapView.moveCamera(update) updatePath(start: carCoordinate!, terminal: terminalCoordinate!) }else if centerCoordiante != nil{ mapView.animate(toLocation: centerCoordiante!) } } private func updatePath(start:CLLocationCoordinate2D,terminal:CLLocationCoordinate2D){ let path = GMSMutablePath() path.add(start) path.add(terminal) polyline.path = path polyline.map = mapView } private func addPathInMap(snaps:[SnappedPointModel]){ let path = GMSMutablePath() BrokerDriver/Home/VC/HomeDetailNoteVC.swift
@@ -105,15 +105,18 @@ } func scrollViewDidScroll(_ scrollView: UIScrollView) { let totalHeight = adapterViewController.headHeight let offset = totalHeight - scrollView.contentOffset.y let isTop = (offset - topSafeHeight) < 0 if scrollView.contentOffset.y > 0 && !isTop{ adapterViewController.scrollview.contentOffset = scrollView.contentOffset } let totalHeight = adapterViewController?.headHeight ?? 0 let offset = totalHeight - scrollView.contentOffset.y let isTop = (offset - topSafeHeight) < 0 if scrollView.contentOffset.y >= 0 { if isTop{ adapterViewController?.scrollview.contentOffset = CGPoint(x: 0, y: totalHeight - topSafeHeight) }else if scrollView.contentOffset.y <= 0{ adapterViewController?.scrollview.setContentOffset(.zero, animated: true) }else{ adapterViewController?.scrollview.contentOffset = scrollView.contentOffset } } } @IBAction func addNoteAction(_ sender: UIButton) { @@ -128,7 +131,7 @@ self?.refreshStatus.onNext(.beingHeaderRefresh) alert(msg: "Add note successed") }else{ alert(msg: data.msg) alert(msg: data.message) } }) { error in alert(msg: error.localizedDescription) BrokerDriver/Home/VC/HomeVC.swift
@@ -40,21 +40,33 @@ return vc }() private lazy var manager:CLLocationManager = { let mana = CLLocationManager() mana.delegate = self mana.requestAlwaysAuthorization() mana.distanceFilter = 20 mana.desiredAccuracy = 10 return mana private lazy var mananger:CLLocationManager = { let manan = CLLocationManager() manan.delegate = self manan.requestWhenInUseAuthorization() manan.requestAlwaysAuthorization() manan.distanceFilter = 10 manan.allowsBackgroundLocationUpdates = true manan.pausesLocationUpdatesAutomatically = false manan.desiredAccuracy = kCLLocationAccuracyBestForNavigation return manan }() override func viewDidLoad() { super.viewDidLoad() manager.startUpdatingLocation() uploadLocation() } private func uploadLocation(){ if let str = UserDefaults.standard.object(forKey: "CurrentOrder") as? String,let model = OrderDetailModel.deserialize(from: str){ switch model.data?.status{ case .PendingPickupDeparture,.ArrivedPort,.SendTOCheckPoint,.Checking,.PendingPickupInCheckPoint,.InTransitInYard,.InYard,.Transiting,.InWarehouse,.PendingUnload,.Unloaded,.TransitingToYard,.InYardByEmpty,.BackYard: mananger.startUpdatingLocation() default: mananger.stopUpdatingLocation() } } } override func setUI() { super.setUI() @@ -122,8 +134,30 @@ func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { if let location = locations.last{ Services.uploadLocation(coordinate: location.coordinate).subscribe(onNext: {data in var type:Int = 2 if let previousLocation = UserDefaults.standard.object(forKey: "PreviousLocation") as? String{ let lat = previousLocation.components(separatedBy: ",").first?.toDouble ?? 0 let lon = previousLocation.components(separatedBy: ",").last?.toDouble ?? 0 let distance = location.distance(from: CLLocation(latitude: lat, longitude: lon)) if var dis = UserDefaults.standard.object(forKey: "filterDistance") as? Double{ dis += distance if dis >= 3000{ dis = 0;type = 1 } UserDefaults.standard.set(dis, forKey: "filterDistance") UserDefaults.standard.synchronize() }else{ UserDefaults.standard.set(distance, forKey: "filterDistance") UserDefaults.standard.synchronize() } }else{ type = 1 } print("---->\(type)") Services.uploadLocation(coordinate: location.coordinate,type: type).subscribe(onNext: {data in UserDefaults.standard.set("\(location.coordinate.latitude),\(location.coordinate.longitude)", forKey: "PreviousLocation") UserDefaults.standard.synchronize() }).disposed(by: disposeBag) } } BrokerDriver/Home/VC/TroubleListVC.swift
@@ -62,7 +62,7 @@ self?.navigationController?.popViewController() } }else{ alert(msg: data.msg) alert(msg: data.message) } }) { error in alert(msg: error.localizedDescription) BrokerDriver/Login/VC/ForgotPwdVC.swift
@@ -56,7 +56,7 @@ if data.code == 200{ sender.openCountDown() }else{ alert(msg: data.msg) alert(msg: data.message) } }) { error in alert(msg: error.localizedDescription) @@ -73,7 +73,7 @@ self.navigationController?.popViewController() } }else{ alert(msg: data.msg) alert(msg: data.message) } }) { error in alert(msg: error.localizedDescription) BrokerDriver/Login/VC/LoginVC.swift
@@ -30,6 +30,13 @@ push(vc: pwdVC) } @IBAction func registerAction(_ sender: UIButton) { let vc = ResgiterVC() push(vc: vc) } @IBAction func loginAction(_ sender: UIButton) { #if !DEBUG BrokerDriver/Login/VC/LoginVC.xib
@@ -3,7 +3,7 @@ <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> @@ -125,10 +125,22 @@ <action selector="loginAction:" destination="-1" eventType="touchUpInside" id="S0r-iu-AlI"/> </connections> </button> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dq8-xR-05s"> <rect key="frame" x="9" y="475" width="81" height="27"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="12"/> <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> <state key="normal" title="Regsiter Now"> <color key="titleColor" red="0.98431372549999996" green="0.73725490199999999" blue="0.047058823530000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </state> <connections> <action selector="registerAction:" destination="-1" eventType="touchUpInside" id="4PG-s5-d4A"/> </connections> </button> </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="2aJ-LA-4Bt" firstAttribute="top" secondItem="Dq8-xR-05s" secondAttribute="top" id="2fT-xK-tRV"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="2aJ-LA-4Bt" secondAttribute="trailing" constant="9" id="5TN-Ox-bOB"/> <constraint firstItem="x3m-nw-HqX" firstAttribute="top" secondItem="Gvf-3j-Apa" secondAttribute="bottom" constant="14" id="9fd-cP-qpI"/> <constraint firstItem="Gvf-3j-Apa" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="GqD-ZN-8zm"/> @@ -139,6 +151,7 @@ <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="A2S-IL-GOY" secondAttribute="trailing" constant="16" id="i9S-JV-us1"/> <constraint firstItem="x3m-nw-HqX" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="iNb-9F-iK2"/> <constraint firstItem="x3m-nw-HqX" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="rjp-aR-VRM"/> <constraint firstItem="Dq8-xR-05s" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="9" id="tz1-hR-FnM"/> </constraints> <point key="canvasLocation" x="139.69465648854961" y="20.422535211267608"/> </view> @@ -146,7 +159,7 @@ <resources> <image name="icon_logo" width="116" height="116"/> <namedColor name="ThemeColor"> <color red="0.99215686274509807" green="0.82745098039215681" blue="0.015686274509803921" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.99199998378753662" green="0.82700002193450928" blue="0.016000000759959221" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </namedColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> BrokerDriver/Login/VC/ResgiterVC.swift
New file @@ -0,0 +1,158 @@ // // ResgiterVC.swift // BrokerDriver // // Created by 无故事王国 on 2023/9/12. // import UIKit import QMUIKit class ResgiterVC: BaseViewController { private var registerModel = RegisterModel() @IBOutlet weak var tf_account: UITextField! @IBOutlet weak var tf_pwd: UITextField! @IBOutlet weak var tf_pwdAgain: UITextField! @IBOutlet weak var tf_fullname: UITextField! @IBOutlet weak var tf_phone: UITextField! @IBOutlet weak var tf_driverNum: UITextField! @IBOutlet weak var tf_birth: UITextField! @IBOutlet weak var tf_address: UITextField! @IBOutlet weak var tf_attribution: UITextField! @IBOutlet weak var tf_company: UITextField! @IBOutlet weak var tf_driverType: UITextField! private var models = [BasicModel]() override func viewDidLoad() { super.viewDidLoad() title = "Resigter Driver" } override func setRx() { tf_account.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.account = text ?? "" }).disposed(by: disposeBag) tf_pwd.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.password = text ?? "" }).disposed(by: disposeBag) tf_fullname.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.driverName = text ?? "" }).disposed(by: disposeBag) tf_phone.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.contactNumber = text ?? "" }).disposed(by: disposeBag) tf_driverNum.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.driverNumber = text ?? "" }).disposed(by: disposeBag) tf_address.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.address = text ?? "" }).disposed(by: disposeBag) tf_birth.delegate = self tf_attribution.delegate = self tf_company.delegate = self tf_driverType.delegate = self } @IBAction func nextAction(_ sender: UIButton) { guard !tf_account.isEmpty else { alert(msg: "Please input Account");return } guard !tf_pwd.isEmpty else { alert(msg: "Please input Password");return } guard !tf_pwdAgain.isEmpty else { alert(msg: "Please input Password again");return } guard !tf_fullname.isEmpty else { alert(msg: "Please input Full name");return } guard !tf_phone.isEmpty else { alert(msg: "Please input Contact number");return } guard !tf_driverNum.isEmpty else { alert(msg: "Please input Driver/Employee number");return } guard !tf_birth.isEmpty else { alert(msg: "Please input choose date of Birth");return } guard !tf_address.isEmpty else { alert(msg: "Please input address");return } guard !tf_attribution.isEmpty else { alert(msg: "Please choose attribution");return } guard !tf_company.isEmpty else { alert(msg: "Please choose Company/Carriers");return } guard !tf_driverType.isEmpty else { alert(msg: "Please choose Driver type");return } let vc = Resigter_2_VC() vc.registerModel = registerModel push(vc: vc) } } extension ResgiterVC:UITextFieldDelegate{ func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { if textField == tf_birth{ DatePickerView.show {[weak self] date in self?.tf_birth.text = date.jq_format("yyyy-MM-dd") self?.registerModel.dateOfBrith = date.jq_format("yyyy-MM-dd") } } if textField == tf_attribution{ CommonAlertSheetView.show(type: .single, titles: ["Company","Carriers"]) {[weak self] index, str in guard let weakSelf = self else { return } weakSelf.tf_attribution.text = str weakSelf.registerModel.isCarriers = index + 1 Services.driverCompanyList(type: index+1).subscribe(onNext: {[weak self] data in self?.models = data.data ?? [] }) { error in }.disposed(by: weakSelf.disposeBag) } } if textField == tf_company{ guard !tf_attribution.isEmpty else {return false} CommonAlertSheetView.show(type: .single, titles: models.compactMap({$0.name})) {[weak self] index, str in guard let weakSelf = self else { return } weakSelf.tf_company.text = str weakSelf.registerModel.companyId = weakSelf.models[index].id } } if textField == tf_driverType{ CommonAlertSheetView.show(type: .single, titles: ["Port driver","Long haul","Local driver"]) {[weak self] index, str in self?.tf_driverType.text = str self?.registerModel.driverType = index + 1 } } return false } } BrokerDriver/Login/VC/ResgiterVC.xib
New file @@ -0,0 +1,657 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ResgiterVC" customModule="BrokerDriver" customModuleProvider="target"> <connections> <outlet property="tf_account" destination="zef-Uv-mXT" id="y8u-rJ-CKh"/> <outlet property="tf_address" destination="ZdT-OW-UI0" id="DaM-SH-ktP"/> <outlet property="tf_attribution" destination="xcO-A6-2MB" id="A6V-e5-D4V"/> <outlet property="tf_birth" destination="Z2M-Vu-eBp" id="Nso-yw-X6F"/> <outlet property="tf_company" destination="b2T-vG-eSg" id="Gq0-Wa-dTw"/> <outlet property="tf_driverNum" destination="Opu-3O-2N5" id="p9B-DI-drc"/> <outlet property="tf_driverType" destination="OrY-gx-7FY" id="Sa5-hd-EB0"/> <outlet property="tf_fullname" destination="bf4-LJ-qHp" id="Aai-Mt-0mB"/> <outlet property="tf_phone" destination="YOV-ob-m9e" id="oT6-i3-qa5"/> <outlet property="tf_pwd" destination="4Zp-JL-GHT" id="Uk4-Pl-qqR"/> <outlet property="tf_pwdAgain" destination="DxV-uu-ZVW" id="F24-kh-P7H"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9qI-9c-ebK"> <rect key="frame" x="30" y="753" width="333" height="45"/> <color key="backgroundColor" name="ThemeColor"/> <constraints> <constraint firstAttribute="height" constant="45" id="S1h-G4-QAI"/> </constraints> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> <state key="normal" title="Next"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> </userDefinedRuntimeAttributes> <connections> <action selector="nextAction:" destination="-1" eventType="touchUpInside" id="lzf-XK-VSy"/> </connections> </button> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YQ3-H0-XR6"> <rect key="frame" x="0.0" y="69" width="393" height="674"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="FKw-A2-hzW"> <rect key="frame" x="0.0" y="0.0" width="393" height="710"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hvr-VQ-c6F"> <rect key="frame" x="0.0" y="0.0" width="393" height="50"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver Prefile" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dtp-1m-GDl"> <rect key="frame" x="10" y="9.3333333333333268" width="151.66666666666666" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(1/4)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RZF-56-o9O"> <rect key="frame" x="326.33333333333331" y="9.3333333333333268" width="56.666666666666686" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="RZF-56-o9O" firstAttribute="centerY" secondItem="dtp-1m-GDl" secondAttribute="centerY" id="T2t-6F-wab"/> <constraint firstAttribute="height" constant="50" id="ZC5-U2-0cI"/> <constraint firstItem="dtp-1m-GDl" firstAttribute="centerY" secondItem="hvr-VQ-c6F" secondAttribute="centerY" id="ZdI-cR-g7m"/> <constraint firstAttribute="trailing" secondItem="RZF-56-o9O" secondAttribute="trailing" constant="10" id="vfs-UH-X2x"/> <constraint firstItem="dtp-1m-GDl" firstAttribute="leading" secondItem="hvr-VQ-c6F" secondAttribute="leading" constant="10" id="zTe-1D-P6W"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f0t-rb-9fm"> <rect key="frame" x="0.0" y="50" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="FRO-tM-1dN"> <rect key="frame" x="10" y="7.9999999999999982" width="75.666666666666671" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tZb-Em-PFe"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Account" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="y3D-pA-57U"> <rect key="frame" x="12.666666666666671" y="0.0" width="63" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="zef-Uv-mXT"> <rect key="frame" x="20" y="33.333333333333343" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="c4G-kx-T8h"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="IQ8-iJ-aIX"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="c4G-kx-T8h" secondAttribute="bottom" id="Dqh-Em-AVL"/> <constraint firstItem="c4G-kx-T8h" firstAttribute="leading" secondItem="f0t-rb-9fm" secondAttribute="leading" constant="20" id="Fgp-CG-2v5"/> <constraint firstAttribute="height" constant="60" id="Koq-B3-Pqo"/> <constraint firstAttribute="bottom" secondItem="zef-Uv-mXT" secondAttribute="bottom" constant="5" id="MeJ-fj-3GW"/> <constraint firstAttribute="trailing" secondItem="c4G-kx-T8h" secondAttribute="trailing" constant="20" id="Nzo-Cw-wME"/> <constraint firstItem="FRO-tM-1dN" firstAttribute="top" secondItem="f0t-rb-9fm" secondAttribute="top" constant="8" id="Yuy-eS-Jza"/> <constraint firstAttribute="trailing" secondItem="zef-Uv-mXT" secondAttribute="trailing" constant="20" id="b9V-EX-1i7"/> <constraint firstItem="FRO-tM-1dN" firstAttribute="leading" secondItem="f0t-rb-9fm" secondAttribute="leading" constant="10" id="fsS-5j-7Mh"/> <constraint firstItem="zef-Uv-mXT" firstAttribute="top" secondItem="FRO-tM-1dN" secondAttribute="bottom" constant="5" id="jfU-se-mUu"/> <constraint firstItem="zef-Uv-mXT" firstAttribute="leading" secondItem="f0t-rb-9fm" secondAttribute="leading" constant="20" id="x2p-jd-Upb"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="36L-ln-dJH"> <rect key="frame" x="0.0" y="110" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="iCr-eC-SAS"> <rect key="frame" x="10" y="7.9999999999999982" width="86.333333333333329" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r7g-uQ-ago"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Password" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1j6-tC-yBP"> <rect key="frame" x="12.666666666666664" y="0.0" width="73.666666666666686" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4Zp-JL-GHT"> <rect key="frame" x="20" y="33.333333333333343" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="X3F-7t-vS8"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="tPV-c7-YSV"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="X3F-7t-vS8" secondAttribute="trailing" constant="20" id="1I8-L8-rlR"/> <constraint firstAttribute="bottom" secondItem="X3F-7t-vS8" secondAttribute="bottom" id="2SM-Qb-DFc"/> <constraint firstItem="X3F-7t-vS8" firstAttribute="leading" secondItem="36L-ln-dJH" secondAttribute="leading" constant="20" id="FX1-Ht-OtB"/> <constraint firstItem="4Zp-JL-GHT" firstAttribute="leading" secondItem="36L-ln-dJH" secondAttribute="leading" constant="20" id="JwO-Ih-goW"/> <constraint firstAttribute="trailing" secondItem="4Zp-JL-GHT" secondAttribute="trailing" constant="20" id="NYa-Jd-kCH"/> <constraint firstAttribute="bottom" secondItem="4Zp-JL-GHT" secondAttribute="bottom" constant="5" id="hyD-p1-QAU"/> <constraint firstAttribute="height" constant="60" id="j2E-fn-seI"/> <constraint firstItem="iCr-eC-SAS" firstAttribute="leading" secondItem="36L-ln-dJH" secondAttribute="leading" constant="10" id="pBH-an-t0p"/> <constraint firstItem="iCr-eC-SAS" firstAttribute="top" secondItem="36L-ln-dJH" secondAttribute="top" constant="8" id="wPu-6U-Lsm"/> <constraint firstItem="4Zp-JL-GHT" firstAttribute="top" secondItem="iCr-eC-SAS" secondAttribute="bottom" constant="5" id="wpD-Vs-6gr"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jq6-C0-VDP"> <rect key="frame" x="0.0" y="170" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="w4k-Fc-gCc"> <rect key="frame" x="10" y="7.9999999999999982" width="133" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3f0-n2-6xI"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Password Again" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x5N-d2-0jW"> <rect key="frame" x="12.666666666666664" y="0.0" width="120.33333333333334" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="DxV-uu-ZVW"> <rect key="frame" x="20" y="33.333333333333314" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7CE-Gp-BZr"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="L07-V9-R8P"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="DxV-uu-ZVW" secondAttribute="trailing" constant="20" id="3pX-bZ-zho"/> <constraint firstAttribute="bottom" secondItem="7CE-Gp-BZr" secondAttribute="bottom" id="A4G-OQ-jgN"/> <constraint firstAttribute="height" constant="60" id="MGt-6h-5Uk"/> <constraint firstAttribute="trailing" secondItem="7CE-Gp-BZr" secondAttribute="trailing" constant="20" id="PeK-cn-Ejh"/> <constraint firstItem="DxV-uu-ZVW" firstAttribute="top" secondItem="w4k-Fc-gCc" secondAttribute="bottom" constant="5" id="Qku-tQ-mIi"/> <constraint firstItem="w4k-Fc-gCc" firstAttribute="top" secondItem="jq6-C0-VDP" secondAttribute="top" constant="8" id="cBB-H2-dTM"/> <constraint firstItem="DxV-uu-ZVW" firstAttribute="leading" secondItem="jq6-C0-VDP" secondAttribute="leading" constant="20" id="mFQ-CB-QE7"/> <constraint firstItem="7CE-Gp-BZr" firstAttribute="leading" secondItem="jq6-C0-VDP" secondAttribute="leading" constant="20" id="oD1-zt-cU1"/> <constraint firstItem="w4k-Fc-gCc" firstAttribute="leading" secondItem="jq6-C0-VDP" secondAttribute="leading" constant="10" id="t7G-Zs-Cey"/> <constraint firstAttribute="bottom" secondItem="DxV-uu-ZVW" secondAttribute="bottom" constant="5" id="wXc-Jk-qV6"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="l7N-HU-Jxd"> <rect key="frame" x="0.0" y="230" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="AFd-Ie-TGh"> <rect key="frame" x="10" y="7.9999999999999982" width="87.666666666666671" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vJO-SO-5bk"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Full Name" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="csD-5J-7w0"> <rect key="frame" x="12.666666666666671" y="0.0" width="75" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="bf4-LJ-qHp"> <rect key="frame" x="20" y="33.333333333333314" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7wZ-Kx-Ipo"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="CHb-Jf-mQb"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="7wZ-Kx-Ipo" secondAttribute="trailing" constant="20" id="1Sc-1T-yxa"/> <constraint firstAttribute="bottom" secondItem="bf4-LJ-qHp" secondAttribute="bottom" constant="5" id="AEK-uY-Ref"/> <constraint firstItem="bf4-LJ-qHp" firstAttribute="top" secondItem="AFd-Ie-TGh" secondAttribute="bottom" constant="5" id="GtR-HO-GTo"/> <constraint firstAttribute="bottom" secondItem="7wZ-Kx-Ipo" secondAttribute="bottom" id="aNm-7k-ZrX"/> <constraint firstItem="AFd-Ie-TGh" firstAttribute="leading" secondItem="l7N-HU-Jxd" secondAttribute="leading" constant="10" id="bq8-dz-DVf"/> <constraint firstItem="AFd-Ie-TGh" firstAttribute="top" secondItem="l7N-HU-Jxd" secondAttribute="top" constant="8" id="hSf-Yf-0lO"/> <constraint firstItem="7wZ-Kx-Ipo" firstAttribute="leading" secondItem="l7N-HU-Jxd" secondAttribute="leading" constant="20" id="rhE-c2-7SL"/> <constraint firstAttribute="height" constant="60" id="uDp-5g-kqC"/> <constraint firstAttribute="trailing" secondItem="bf4-LJ-qHp" secondAttribute="trailing" constant="20" id="wPF-gn-4o2"/> <constraint firstItem="bf4-LJ-qHp" firstAttribute="leading" secondItem="l7N-HU-Jxd" secondAttribute="leading" constant="20" id="zq3-Oa-iPA"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Zvo-2X-jcv"> <rect key="frame" x="0.0" y="290" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="BTn-Wy-zr6"> <rect key="frame" x="10" y="7.9999999999999982" width="138" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V0E-Ji-mOW"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Contact Number" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LVT-Po-p75"> <rect key="frame" x="12.666666666666664" y="0.0" width="125.33333333333334" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="YOV-ob-m9e"> <rect key="frame" x="20" y="33.333333333333314" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" keyboardType="phonePad"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JZ8-4b-9nf"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Bvj-Q5-2Zc"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="JZ8-4b-9nf" secondAttribute="bottom" id="1gk-Ck-14J"/> <constraint firstAttribute="trailing" secondItem="JZ8-4b-9nf" secondAttribute="trailing" constant="20" id="3mH-MR-umz"/> <constraint firstAttribute="bottom" secondItem="YOV-ob-m9e" secondAttribute="bottom" constant="5" id="ENH-GW-K9n"/> <constraint firstItem="BTn-Wy-zr6" firstAttribute="top" secondItem="Zvo-2X-jcv" secondAttribute="top" constant="8" id="KnS-rh-jzF"/> <constraint firstItem="YOV-ob-m9e" firstAttribute="leading" secondItem="Zvo-2X-jcv" secondAttribute="leading" constant="20" id="Lmx-GM-Ytf"/> <constraint firstAttribute="trailing" secondItem="YOV-ob-m9e" secondAttribute="trailing" constant="20" id="a1A-oh-WaE"/> <constraint firstItem="BTn-Wy-zr6" firstAttribute="leading" secondItem="Zvo-2X-jcv" secondAttribute="leading" constant="10" id="eQi-jc-U0k"/> <constraint firstItem="JZ8-4b-9nf" firstAttribute="leading" secondItem="Zvo-2X-jcv" secondAttribute="leading" constant="20" id="mhs-kR-NQl"/> <constraint firstItem="YOV-ob-m9e" firstAttribute="top" secondItem="BTn-Wy-zr6" secondAttribute="bottom" constant="5" id="nJP-eP-hYo"/> <constraint firstAttribute="height" constant="60" id="xOj-tF-QW3"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="d4N-0f-vU3"> <rect key="frame" x="0.0" y="350" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="GNJ-T4-lJn"> <rect key="frame" x="10" y="7.9999999999999982" width="201.66666666666666" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UIh-OF-d4f"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver/Employee Number" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5m4-LS-166"> <rect key="frame" x="12.666666666666671" y="0.0" width="189" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Opu-3O-2N5"> <rect key="frame" x="20" y="33.333333333333314" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4vI-Vj-yIm"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Bdq-rr-Inb"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="Opu-3O-2N5" firstAttribute="top" secondItem="GNJ-T4-lJn" secondAttribute="bottom" constant="5" id="1l3-8N-NYY"/> <constraint firstItem="Opu-3O-2N5" firstAttribute="leading" secondItem="d4N-0f-vU3" secondAttribute="leading" constant="20" id="9Cw-2n-vdr"/> <constraint firstAttribute="height" constant="60" id="BD5-xd-LoM"/> <constraint firstItem="4vI-Vj-yIm" firstAttribute="leading" secondItem="d4N-0f-vU3" secondAttribute="leading" constant="20" id="DWX-kS-Fxu"/> <constraint firstAttribute="trailing" secondItem="Opu-3O-2N5" secondAttribute="trailing" constant="20" id="Itz-2p-9CL"/> <constraint firstAttribute="bottom" secondItem="4vI-Vj-yIm" secondAttribute="bottom" id="Ksz-30-dPK"/> <constraint firstAttribute="trailing" secondItem="4vI-Vj-yIm" secondAttribute="trailing" constant="20" id="T8S-2Y-RRc"/> <constraint firstAttribute="bottom" secondItem="Opu-3O-2N5" secondAttribute="bottom" constant="5" id="UDB-N2-WJS"/> <constraint firstItem="GNJ-T4-lJn" firstAttribute="top" secondItem="d4N-0f-vU3" secondAttribute="top" constant="8" id="hkF-Yz-Ii1"/> <constraint firstItem="GNJ-T4-lJn" firstAttribute="leading" secondItem="d4N-0f-vU3" secondAttribute="leading" constant="10" id="pGI-OK-TZg"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tRj-PD-YlB"> <rect key="frame" x="0.0" y="410" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="kKP-sV-mKw"> <rect key="frame" x="9.9999999999999929" y="7.9999999999999982" width="108.33333333333331" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="diL-Q6-hQ0"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Date of Birth" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hbc-hG-eso"> <rect key="frame" x="12.666666666666664" y="0.0" width="95.666666666666686" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Z2M-Vu-eBp"> <rect key="frame" x="20" y="33.333333333333371" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hmp-Wa-69c"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="SGD-K4-zYc"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="Hmp-Wa-69c" secondAttribute="trailing" constant="20" id="4uZ-j3-zOl"/> <constraint firstItem="Hmp-Wa-69c" firstAttribute="leading" secondItem="tRj-PD-YlB" secondAttribute="leading" constant="20" id="5iG-vX-QHg"/> <constraint firstAttribute="bottom" secondItem="Z2M-Vu-eBp" secondAttribute="bottom" constant="5" id="A0p-vo-epa"/> <constraint firstItem="Z2M-Vu-eBp" firstAttribute="top" secondItem="kKP-sV-mKw" secondAttribute="bottom" constant="5" id="A8c-ko-caX"/> <constraint firstAttribute="trailing" secondItem="Z2M-Vu-eBp" secondAttribute="trailing" constant="20" id="Pi3-Wm-zbT"/> <constraint firstItem="kKP-sV-mKw" firstAttribute="top" secondItem="tRj-PD-YlB" secondAttribute="top" constant="8" id="R0C-cH-UIs"/> <constraint firstItem="Z2M-Vu-eBp" firstAttribute="leading" secondItem="tRj-PD-YlB" secondAttribute="leading" constant="20" id="a8W-HW-yDu"/> <constraint firstItem="kKP-sV-mKw" firstAttribute="leading" secondItem="tRj-PD-YlB" secondAttribute="leading" constant="10" id="cg2-FG-JFu"/> <constraint firstAttribute="height" constant="60" id="iHy-8U-eoA"/> <constraint firstAttribute="bottom" secondItem="Hmp-Wa-69c" secondAttribute="bottom" id="qLU-jZ-sTr"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZOn-sz-E65"> <rect key="frame" x="0.0" y="470" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="jar-mh-kxU"> <rect key="frame" x="10" y="7.9999999999999982" width="75.333333333333329" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dqb-p6-Kix"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Address" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="off-4a-kEA"> <rect key="frame" x="12.666666666666668" y="0.0" width="62.666666666666657" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="ZdT-OW-UI0"> <rect key="frame" x="20" y="33.333333333333371" width="353" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ob2-JQ-zOI"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="c9b-XB-mnL"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="Ob2-JQ-zOI" secondAttribute="bottom" id="1cR-10-Fph"/> <constraint firstAttribute="trailing" secondItem="ZdT-OW-UI0" secondAttribute="trailing" constant="20" id="3xV-Xb-oPm"/> <constraint firstAttribute="bottom" secondItem="ZdT-OW-UI0" secondAttribute="bottom" constant="5" id="7b2-Oj-j6P"/> <constraint firstItem="jar-mh-kxU" firstAttribute="leading" secondItem="ZOn-sz-E65" secondAttribute="leading" constant="10" id="9gw-9m-i08"/> <constraint firstItem="ZdT-OW-UI0" firstAttribute="top" secondItem="jar-mh-kxU" secondAttribute="bottom" constant="5" id="B6Q-6P-Imj"/> <constraint firstItem="jar-mh-kxU" firstAttribute="top" secondItem="ZOn-sz-E65" secondAttribute="top" constant="8" id="GZi-kL-Ze5"/> <constraint firstAttribute="trailing" secondItem="Ob2-JQ-zOI" secondAttribute="trailing" constant="20" id="Pk4-6D-EkP"/> <constraint firstItem="Ob2-JQ-zOI" firstAttribute="leading" secondItem="ZOn-sz-E65" secondAttribute="leading" constant="20" id="eXy-ba-gCQ"/> <constraint firstAttribute="height" constant="60" id="oga-oy-6EI"/> <constraint firstItem="ZdT-OW-UI0" firstAttribute="leading" secondItem="ZOn-sz-E65" secondAttribute="leading" constant="20" id="uAe-ry-Ahl"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AfW-zv-qwA"> <rect key="frame" x="0.0" y="530" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="blj-mK-Rzf"> <rect key="frame" x="10" y="7.9999999999999982" width="142.33333333333334" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M9n-gG-Chk"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver attribution" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0pX-OP-8Wq"> <rect key="frame" x="12.666666666666671" y="0.0" width="129.66666666666663" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="xcO-A6-2MB"> <rect key="frame" x="20" y="33.333333333333371" width="323" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4gv-p9-Kat"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="t15-ge-Yjw"/> </constraints> </view> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_arrow_down" translatesAutoresizingMaskIntoConstraints="NO" id="4jp-mB-Epx"> <rect key="frame" x="348" y="40.666666666666629" width="40" height="7"/> </imageView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="xcO-A6-2MB" secondAttribute="trailing" constant="50" id="25K-m6-4rT"/> <constraint firstItem="4jp-mB-Epx" firstAttribute="leading" secondItem="xcO-A6-2MB" secondAttribute="trailing" constant="5" id="4fH-SO-5On"/> <constraint firstItem="blj-mK-Rzf" firstAttribute="leading" secondItem="AfW-zv-qwA" secondAttribute="leading" constant="10" id="6Fo-jY-30L"/> <constraint firstItem="blj-mK-Rzf" firstAttribute="top" secondItem="AfW-zv-qwA" secondAttribute="top" constant="8" id="6Ky-oD-c6g"/> <constraint firstAttribute="height" constant="60" id="E25-kZ-ZH0"/> <constraint firstItem="xcO-A6-2MB" firstAttribute="top" secondItem="blj-mK-Rzf" secondAttribute="bottom" constant="5" id="NH0-lm-vnN"/> <constraint firstItem="xcO-A6-2MB" firstAttribute="leading" secondItem="AfW-zv-qwA" secondAttribute="leading" constant="20" id="Uvw-jw-O6g"/> <constraint firstItem="4gv-p9-Kat" firstAttribute="leading" secondItem="AfW-zv-qwA" secondAttribute="leading" constant="20" id="XJF-Av-iMj"/> <constraint firstAttribute="bottom" secondItem="4gv-p9-Kat" secondAttribute="bottom" id="ftj-hr-6ee"/> <constraint firstAttribute="bottom" secondItem="xcO-A6-2MB" secondAttribute="bottom" constant="5" id="onx-n1-2Sh"/> <constraint firstItem="4jp-mB-Epx" firstAttribute="centerY" secondItem="xcO-A6-2MB" secondAttribute="centerY" id="pmq-fX-u9h"/> <constraint firstAttribute="trailing" secondItem="4gv-p9-Kat" secondAttribute="trailing" constant="20" id="tsi-80-dXe"/> <constraint firstAttribute="trailing" secondItem="4jp-mB-Epx" secondAttribute="trailing" constant="5" id="wjz-aC-Rmb"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aYO-w1-DdC"> <rect key="frame" x="0.0" y="590" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="Kcj-Tr-KgP"> <rect key="frame" x="10" y="7.9999999999999982" width="150" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7fk-sn-1Hb"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Company/Carriers" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TPr-bZ-iuq"> <rect key="frame" x="12.666666666666671" y="0.0" width="137.33333333333331" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="b2T-vG-eSg"> <rect key="frame" x="20" y="33.333333333333371" width="323" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3Mo-kh-xe5"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="ECF-Tb-YfR"/> </constraints> </view> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_arrow_down" translatesAutoresizingMaskIntoConstraints="NO" id="aOp-Ic-bxp"> <rect key="frame" x="348" y="40.666666666666629" width="40" height="7"/> </imageView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="b2T-vG-eSg" secondAttribute="bottom" constant="5" id="0P2-iQ-OE9"/> <constraint firstItem="aOp-Ic-bxp" firstAttribute="centerY" secondItem="b2T-vG-eSg" secondAttribute="centerY" id="8A5-zn-3dk"/> <constraint firstItem="b2T-vG-eSg" firstAttribute="top" secondItem="Kcj-Tr-KgP" secondAttribute="bottom" constant="5" id="AHW-18-0g6"/> <constraint firstAttribute="trailing" secondItem="aOp-Ic-bxp" secondAttribute="trailing" constant="5" id="DZh-7x-T6E"/> <constraint firstAttribute="trailing" secondItem="3Mo-kh-xe5" secondAttribute="trailing" constant="20" id="HMH-2k-QgA"/> <constraint firstItem="aOp-Ic-bxp" firstAttribute="leading" secondItem="b2T-vG-eSg" secondAttribute="trailing" constant="5" id="JX9-hA-moh"/> <constraint firstAttribute="bottom" secondItem="3Mo-kh-xe5" secondAttribute="bottom" id="LMB-oH-ZZe"/> <constraint firstItem="b2T-vG-eSg" firstAttribute="leading" secondItem="aYO-w1-DdC" secondAttribute="leading" constant="20" id="N23-sE-zNT"/> <constraint firstAttribute="trailing" secondItem="b2T-vG-eSg" secondAttribute="trailing" constant="50" id="W7w-Bq-Lgp"/> <constraint firstItem="3Mo-kh-xe5" firstAttribute="leading" secondItem="aYO-w1-DdC" secondAttribute="leading" constant="20" id="czc-Bk-96A"/> <constraint firstItem="Kcj-Tr-KgP" firstAttribute="leading" secondItem="aYO-w1-DdC" secondAttribute="leading" constant="10" id="iYa-3J-Dy9"/> <constraint firstItem="Kcj-Tr-KgP" firstAttribute="top" secondItem="aYO-w1-DdC" secondAttribute="top" constant="8" id="rQx-13-efv"/> <constraint firstAttribute="height" constant="60" id="sZC-EE-F15"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QX1-Mo-Ukv"> <rect key="frame" x="0.0" y="650" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="fFr-30-Ble"> <rect key="frame" x="10" y="7.9999999999999982" width="96.333333333333329" height="20.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="*" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E4D-yS-Jry"> <rect key="frame" x="0.0" y="0.0" width="7.666666666666667" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver type" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MoX-68-n3h"> <rect key="frame" x="12.666666666666664" y="0.0" width="83.666666666666686" height="20.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="OrY-gx-7FY"> <rect key="frame" x="20" y="33.333333333333371" width="323" height="21.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fvz-3l-UZc"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="qWi-Gl-Xlm"/> </constraints> </view> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_arrow_down" translatesAutoresizingMaskIntoConstraints="NO" id="7aW-tm-dxO"> <rect key="frame" x="348" y="40.666666666666629" width="40" height="7"/> </imageView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="OrY-gx-7FY" secondAttribute="trailing" constant="50" id="7zz-kd-PSn"/> <constraint firstItem="fFr-30-Ble" firstAttribute="top" secondItem="QX1-Mo-Ukv" secondAttribute="top" constant="8" id="ACR-5L-llX"/> <constraint firstItem="7aW-tm-dxO" firstAttribute="leading" secondItem="OrY-gx-7FY" secondAttribute="trailing" constant="5" id="Iil-JF-Pir"/> <constraint firstItem="OrY-gx-7FY" firstAttribute="leading" secondItem="QX1-Mo-Ukv" secondAttribute="leading" constant="20" id="LvK-1v-jYj"/> <constraint firstAttribute="trailing" secondItem="7aW-tm-dxO" secondAttribute="trailing" constant="5" id="Ons-38-lBc"/> <constraint firstAttribute="height" constant="60" id="PrZ-D4-Vin"/> <constraint firstItem="fvz-3l-UZc" firstAttribute="leading" secondItem="QX1-Mo-Ukv" secondAttribute="leading" constant="20" id="W59-XC-g9q"/> <constraint firstAttribute="bottom" secondItem="fvz-3l-UZc" secondAttribute="bottom" id="Xlx-O0-A9k"/> <constraint firstAttribute="bottom" secondItem="OrY-gx-7FY" secondAttribute="bottom" constant="5" id="anb-pu-Nch"/> <constraint firstItem="OrY-gx-7FY" firstAttribute="top" secondItem="fFr-30-Ble" secondAttribute="bottom" constant="5" id="g3R-dt-p2t"/> <constraint firstAttribute="trailing" secondItem="fvz-3l-UZc" secondAttribute="trailing" constant="20" id="iIl-NU-MQk"/> <constraint firstItem="fFr-30-Ble" firstAttribute="leading" secondItem="QX1-Mo-Ukv" secondAttribute="leading" constant="10" id="nfX-D2-LCc"/> <constraint firstItem="7aW-tm-dxO" firstAttribute="centerY" secondItem="OrY-gx-7FY" secondAttribute="centerY" id="ucZ-RG-Ew2"/> </constraints> </view> </subviews> </stackView> </subviews> <constraints> <constraint firstItem="FKw-A2-hzW" firstAttribute="leading" secondItem="YQ3-H0-XR6" secondAttribute="leading" id="0f5-KZ-3ZK"/> <constraint firstItem="FKw-A2-hzW" firstAttribute="centerX" secondItem="YQ3-H0-XR6" secondAttribute="centerX" id="4Ry-92-rxq"/> <constraint firstAttribute="bottom" secondItem="FKw-A2-hzW" secondAttribute="bottom" id="9ey-xL-l1a"/> <constraint firstItem="FKw-A2-hzW" firstAttribute="top" secondItem="YQ3-H0-XR6" secondAttribute="top" id="Edm-y6-Jxg"/> <constraint firstAttribute="trailing" secondItem="FKw-A2-hzW" secondAttribute="trailing" id="rw1-yf-zme"/> </constraints> </scrollView> </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="9qI-9c-ebK" secondAttribute="bottom" constant="20" id="5ST-TJ-ruT"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="9qI-9c-ebK" secondAttribute="trailing" constant="30" id="7pw-3w-cyR"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="YQ3-H0-XR6" secondAttribute="trailing" id="eFa-5x-zPb"/> <constraint firstItem="9qI-9c-ebK" firstAttribute="top" secondItem="YQ3-H0-XR6" secondAttribute="bottom" constant="10" id="g2w-YT-iqI"/> <constraint firstItem="9qI-9c-ebK" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="30" id="z54-ML-q7B"/> <constraint firstItem="YQ3-H0-XR6" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="10" id="zap-07-X6M"/> <constraint firstItem="YQ3-H0-XR6" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="zwY-yQ-sdj"/> </constraints> <point key="canvasLocation" x="32.824427480916029" y="20.422535211267608"/> </view> </objects> <resources> <image name="icon_arrow_down" width="12" height="7"/> <namedColor name="ThemeColor"> <color red="0.99199998378753662" green="0.82700002193450928" blue="0.016000000759959221" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </namedColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> <systemColor name="systemGray5Color"> <color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </systemColor> </resources> </document> BrokerDriver/Login/VC/Resgiter_3_VC.swift
New file @@ -0,0 +1,43 @@ // // Resgiter_3_VC.swift // BrokerDriver // // Created by 无故事王国 on 2023/9/12. // import UIKit class Resgiter_3_VC: BaseViewController { var registerModel:RegisterModel! @IBOutlet weak var tf_insurance: UITextField! @IBOutlet weak var tf_groupNumber: UITextField! @IBOutlet weak var tf_idNumber: UITextField! override func viewDidLoad() { super.viewDidLoad() title = "Resigter Driver" } override func setRx() { tf_insurance.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.insuranceCo = text ?? "" }).disposed(by: disposeBag) tf_groupNumber.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.groupNumber = text ?? "" }).disposed(by: disposeBag) tf_idNumber.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.idNumber = text ?? "" }).disposed(by: disposeBag) } @IBAction func nextAction(_ sender: UIButton) { let vc = Resigter_4_VC() vc.registerModel = registerModel push(vc: vc) } } BrokerDriver/Login/VC/Resgiter_3_VC.xib
New file @@ -0,0 +1,236 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="Resgiter_3_VC" customModule="BrokerDriver" customModuleProvider="target"> <connections> <outlet property="tf_groupNumber" destination="UYZ-Jq-WCg" id="iIO-RW-dh0"/> <outlet property="tf_idNumber" destination="z5P-Ar-CUw" id="4lT-Y8-l6w"/> <outlet property="tf_insurance" destination="fEa-8q-9At" id="lCu-TS-uxD"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yhq-mQ-Jom"> <rect key="frame" x="0.0" y="69" width="393" height="674"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="dRG-KS-69B"> <rect key="frame" x="0.0" y="0.0" width="393" height="230"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6or-Fi-Wid"> <rect key="frame" x="0.0" y="0.0" width="393" height="50"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver Insurance" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9nK-qv-WeT"> <rect key="frame" x="10" y="9.3333333333333268" width="192.66666666666666" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(3/4)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pNs-dz-gpG"> <rect key="frame" x="322.33333333333331" y="9.3333333333333268" width="60.666666666666686" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="height" constant="50" id="4Fl-A9-6Aa"/> <constraint firstItem="9nK-qv-WeT" firstAttribute="centerY" secondItem="6or-Fi-Wid" secondAttribute="centerY" id="MBU-HQ-GUf"/> <constraint firstItem="pNs-dz-gpG" firstAttribute="centerY" secondItem="9nK-qv-WeT" secondAttribute="centerY" id="iLp-gD-rev"/> <constraint firstItem="9nK-qv-WeT" firstAttribute="leading" secondItem="6or-Fi-Wid" secondAttribute="leading" constant="10" id="l0w-Od-hS8"/> <constraint firstAttribute="trailing" secondItem="pNs-dz-gpG" secondAttribute="trailing" constant="10" id="xkd-8D-0xu"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zjs-YH-ME6"> <rect key="frame" x="0.0" y="50" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="2sk-MA-XU9"> <rect key="frame" x="10" y="7.9999999999999982" width="104.33333333333333" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Insurance Co." textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6r9-Mu-eO7"> <rect key="frame" x="0.0" y="0.0" width="104.33333333333333" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="fEa-8q-9At"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="D1X-gb-jxi"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="gyx-IN-UUK"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="D1X-gb-jxi" secondAttribute="trailing" constant="20" id="6R0-JN-B5E"/> <constraint firstItem="D1X-gb-jxi" firstAttribute="leading" secondItem="zjs-YH-ME6" secondAttribute="leading" constant="20" id="SvY-Je-86n"/> <constraint firstItem="fEa-8q-9At" firstAttribute="leading" secondItem="zjs-YH-ME6" secondAttribute="leading" constant="20" id="Z7Y-At-TQA"/> <constraint firstItem="2sk-MA-XU9" firstAttribute="top" secondItem="zjs-YH-ME6" secondAttribute="top" constant="8" id="hpP-lo-230"/> <constraint firstItem="fEa-8q-9At" firstAttribute="top" secondItem="2sk-MA-XU9" secondAttribute="bottom" constant="5" id="kVY-B4-5NZ"/> <constraint firstItem="2sk-MA-XU9" firstAttribute="leading" secondItem="zjs-YH-ME6" secondAttribute="leading" constant="10" id="lVK-Lg-8Fu"/> <constraint firstAttribute="bottom" secondItem="D1X-gb-jxi" secondAttribute="bottom" id="o7t-sT-MFw"/> <constraint firstAttribute="bottom" secondItem="fEa-8q-9At" secondAttribute="bottom" constant="5" id="pmD-Nq-V8X"/> <constraint firstAttribute="trailing" secondItem="fEa-8q-9At" secondAttribute="trailing" constant="20" id="vs9-JB-gXg"/> <constraint firstAttribute="height" constant="60" id="xsd-Ed-7Ca"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jdo-dJ-d47"> <rect key="frame" x="0.0" y="110" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="F5e-b8-HPo"> <rect key="frame" x="10.000000000000007" y="7.9999999999999982" width="111.66666666666669" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Group Number" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z9w-ja-o4f"> <rect key="frame" x="0.0" y="0.0" width="111.66666666666667" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="UYZ-Jq-WCg"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QXW-FC-rRi"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Og6-Ht-gSJ"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="QXW-FC-rRi" firstAttribute="leading" secondItem="jdo-dJ-d47" secondAttribute="leading" constant="20" id="0T7-k0-V8a"/> <constraint firstAttribute="height" constant="60" id="7NQ-3M-qKR"/> <constraint firstItem="F5e-b8-HPo" firstAttribute="top" secondItem="jdo-dJ-d47" secondAttribute="top" constant="8" id="7YU-2D-MPC"/> <constraint firstAttribute="bottom" secondItem="QXW-FC-rRi" secondAttribute="bottom" id="8VD-dy-irH"/> <constraint firstItem="UYZ-Jq-WCg" firstAttribute="top" secondItem="F5e-b8-HPo" secondAttribute="bottom" constant="5" id="KZO-s7-Kbe"/> <constraint firstItem="UYZ-Jq-WCg" firstAttribute="leading" secondItem="jdo-dJ-d47" secondAttribute="leading" constant="20" id="S8M-eH-G0j"/> <constraint firstAttribute="bottom" secondItem="UYZ-Jq-WCg" secondAttribute="bottom" constant="5" id="TpR-Ie-KZK"/> <constraint firstAttribute="trailing" secondItem="UYZ-Jq-WCg" secondAttribute="trailing" constant="20" id="bHA-qQ-nQh"/> <constraint firstItem="F5e-b8-HPo" firstAttribute="leading" secondItem="jdo-dJ-d47" secondAttribute="leading" constant="10" id="kNB-Gp-raT"/> <constraint firstAttribute="trailing" secondItem="QXW-FC-rRi" secondAttribute="trailing" constant="20" id="vZL-02-4aY"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Cdh-vx-QYb"> <rect key="frame" x="0.0" y="170" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="8t0-ji-rS1"> <rect key="frame" x="10" y="7.9999999999999982" width="79.333333333333329" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Id Number" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pES-DX-EaO"> <rect key="frame" x="0.0" y="0.0" width="79.333333333333329" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="z5P-Ar-CUw"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bxy-UN-7OZ"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="KFp-iE-hmq"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="8t0-ji-rS1" firstAttribute="leading" secondItem="Cdh-vx-QYb" secondAttribute="leading" constant="10" id="2fL-tm-h6j"/> <constraint firstAttribute="trailing" secondItem="z5P-Ar-CUw" secondAttribute="trailing" constant="20" id="8BV-HZ-KJn"/> <constraint firstItem="z5P-Ar-CUw" firstAttribute="top" secondItem="8t0-ji-rS1" secondAttribute="bottom" constant="5" id="A7d-hn-GlY"/> <constraint firstItem="z5P-Ar-CUw" firstAttribute="leading" secondItem="Cdh-vx-QYb" secondAttribute="leading" constant="20" id="WPf-yq-Ij8"/> <constraint firstAttribute="bottom" secondItem="z5P-Ar-CUw" secondAttribute="bottom" constant="5" id="Xfz-Yj-exI"/> <constraint firstItem="bxy-UN-7OZ" firstAttribute="leading" secondItem="Cdh-vx-QYb" secondAttribute="leading" constant="20" id="hRn-LK-D65"/> <constraint firstAttribute="trailing" secondItem="bxy-UN-7OZ" secondAttribute="trailing" constant="20" id="nW0-Hb-QNL"/> <constraint firstAttribute="height" constant="60" id="paf-yh-cTg"/> <constraint firstItem="8t0-ji-rS1" firstAttribute="top" secondItem="Cdh-vx-QYb" secondAttribute="top" constant="8" id="uhO-FA-7hH"/> <constraint firstAttribute="bottom" secondItem="bxy-UN-7OZ" secondAttribute="bottom" id="w23-88-yc1"/> </constraints> </view> </subviews> </stackView> </subviews> <constraints> <constraint firstItem="dRG-KS-69B" firstAttribute="top" secondItem="yhq-mQ-Jom" secondAttribute="top" id="GIx-5w-02t"/> <constraint firstAttribute="bottom" secondItem="dRG-KS-69B" secondAttribute="bottom" id="Qlh-Kw-AKg"/> <constraint firstItem="dRG-KS-69B" firstAttribute="centerX" secondItem="yhq-mQ-Jom" secondAttribute="centerX" id="glp-Ng-cPX"/> <constraint firstItem="dRG-KS-69B" firstAttribute="leading" secondItem="yhq-mQ-Jom" secondAttribute="leading" id="sLj-WF-Icl"/> <constraint firstAttribute="trailing" secondItem="dRG-KS-69B" secondAttribute="trailing" id="wkt-mJ-5mj"/> </constraints> </scrollView> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mIg-Ox-zTh"> <rect key="frame" x="30" y="753" width="333" height="45"/> <color key="backgroundColor" name="ThemeColor"/> <constraints> <constraint firstAttribute="height" constant="45" id="13n-OK-9NG"/> </constraints> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> <state key="normal" title="Next"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> </userDefinedRuntimeAttributes> <connections> <action selector="nextAction:" destination="-1" eventType="touchUpInside" id="whi-3D-2Em"/> </connections> </button> </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="mIg-Ox-zTh" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="30" id="GXT-c6-4V6"/> <constraint firstItem="yhq-mQ-Jom" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="KpV-Hc-6TE"/> <constraint firstItem="yhq-mQ-Jom" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="10" id="OCm-i1-dxd"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="mIg-Ox-zTh" secondAttribute="trailing" constant="30" id="Uo2-iK-Stc"/> <constraint firstItem="mIg-Ox-zTh" firstAttribute="top" secondItem="yhq-mQ-Jom" secondAttribute="bottom" constant="10" id="YeQ-Ud-pyM"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="yhq-mQ-Jom" secondAttribute="trailing" id="aQs-ch-PhR"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="mIg-Ox-zTh" secondAttribute="bottom" constant="20" id="tAM-J3-bu5"/> </constraints> <point key="canvasLocation" x="32.824427480916029" y="20.422535211267608"/> </view> </objects> <resources> <namedColor name="ThemeColor"> <color red="0.99199998378753662" green="0.82700002193450928" blue="0.016000000759959221" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </namedColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> <systemColor name="systemGray5Color"> <color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </systemColor> </resources> </document> BrokerDriver/Login/VC/Resigter_2_VC.swift
New file @@ -0,0 +1,58 @@ // // Resigter_2_VC.swift // BrokerDriver // // Created by 无故事王国 on 2023/9/12. // import UIKit class Resigter_2_VC: BaseViewController { var registerModel:RegisterModel! @IBOutlet weak var tf_sinceYear: UITextField! @IBOutlet weak var tf_drivingSchool: UITextField! @IBOutlet weak var tf_licensetype: UITextField! @IBOutlet weak var tf_typeOfExperience: UITextField! @IBOutlet weak var tf_CDLNumber: UITextField! @IBOutlet weak var tf_license: UITextField! override func viewDidLoad() { super.viewDidLoad() title = "Resigter Driver" } override func setRx() { tf_sinceYear.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.sinceYear = text ?? "" }).disposed(by: disposeBag) tf_drivingSchool.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.drivingSchool = text ?? "" }).disposed(by: disposeBag) tf_licensetype.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.licenseType = text ?? "" }).disposed(by: disposeBag) tf_typeOfExperience.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.typeOfExperience = text ?? "" }).disposed(by: disposeBag) tf_CDLNumber.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.cdlNumber = text ?? "" }).disposed(by: disposeBag) tf_license.rx.text.changed.subscribe(onNext: {[weak self]text in self?.registerModel.licenseEndorsements = text ?? "" }).disposed(by: disposeBag) } @IBAction func nextAction(_ sender: UIButton) { let vc = Resgiter_3_VC() vc.registerModel = registerModel push(vc: vc) } } BrokerDriver/Login/VC/Resigter_2_VC.xib
New file @@ -0,0 +1,362 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="Resigter_2_VC" customModule="BrokerDriver" customModuleProvider="target"> <connections> <outlet property="tf_CDLNumber" destination="Jg4-jJ-b5a" id="Eic-O7-iwV"/> <outlet property="tf_drivingSchool" destination="M5e-Zr-qV3" id="QeS-xc-hTK"/> <outlet property="tf_license" destination="LbN-y0-bgF" id="4Ds-hi-xP4"/> <outlet property="tf_licensetype" destination="HNc-20-OxN" id="9ai-rA-t39"/> <outlet property="tf_sinceYear" destination="HN9-jc-8nD" id="OlF-UB-77z"/> <outlet property="tf_typeOfExperience" destination="S7p-ki-fMU" id="9BI-7w-7Ws"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xL4-fr-Byj"> <rect key="frame" x="30" y="753" width="333" height="45"/> <color key="backgroundColor" name="ThemeColor"/> <constraints> <constraint firstAttribute="height" constant="45" id="2dS-pu-9lq"/> </constraints> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> <state key="normal" title="Next"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> </userDefinedRuntimeAttributes> <connections> <action selector="nextAction:" destination="-1" eventType="touchUpInside" id="dpm-tQ-igt"/> </connections> </button> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SC8-22-EWO"> <rect key="frame" x="0.0" y="69" width="393" height="674"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="q8V-yW-WyB"> <rect key="frame" x="0.0" y="0.0" width="393" height="410"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eUR-Uf-eXJ"> <rect key="frame" x="0.0" y="0.0" width="393" height="50"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver Experience" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Pd-x8-e59"> <rect key="frame" x="10" y="9.3333333333333268" width="208" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(2/4)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lpi-vg-LcE"> <rect key="frame" x="323.33333333333331" y="9.3333333333333268" width="59.666666666666686" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="2Pd-x8-e59" firstAttribute="leading" secondItem="eUR-Uf-eXJ" secondAttribute="leading" constant="10" id="Nc9-SP-g74"/> <constraint firstAttribute="height" constant="50" id="fFx-Ls-OO0"/> <constraint firstItem="2Pd-x8-e59" firstAttribute="centerY" secondItem="eUR-Uf-eXJ" secondAttribute="centerY" id="g0R-KE-xko"/> <constraint firstAttribute="trailing" secondItem="lpi-vg-LcE" secondAttribute="trailing" constant="10" id="liF-Iq-cl8"/> <constraint firstItem="lpi-vg-LcE" firstAttribute="centerY" secondItem="2Pd-x8-e59" secondAttribute="centerY" id="vsO-pJ-IlY"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XUa-fn-wOs"> <rect key="frame" x="0.0" y="50" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="668-Sq-Biu"> <rect key="frame" x="10" y="7.9999999999999982" width="223.66666666666666" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Commercial Driver Since Year" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="13Z-eW-nwA"> <rect key="frame" x="0.0" y="0.0" width="223.66666666666666" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="HN9-jc-8nD"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mLR-uX-6VU"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Z1c-fY-YvE"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="HN9-jc-8nD" secondAttribute="bottom" constant="5" id="50Z-jO-Bwy"/> <constraint firstAttribute="height" constant="60" id="Hdt-xF-AVt"/> <constraint firstItem="HN9-jc-8nD" firstAttribute="leading" secondItem="XUa-fn-wOs" secondAttribute="leading" constant="20" id="RYt-3z-cCe"/> <constraint firstItem="HN9-jc-8nD" firstAttribute="top" secondItem="668-Sq-Biu" secondAttribute="bottom" constant="5" id="Uxe-IT-atI"/> <constraint firstAttribute="bottom" secondItem="mLR-uX-6VU" secondAttribute="bottom" id="ZDD-W0-kor"/> <constraint firstItem="668-Sq-Biu" firstAttribute="leading" secondItem="XUa-fn-wOs" secondAttribute="leading" constant="10" id="ZKj-NO-kp5"/> <constraint firstItem="668-Sq-Biu" firstAttribute="top" secondItem="XUa-fn-wOs" secondAttribute="top" constant="8" id="hI2-Fc-XQQ"/> <constraint firstAttribute="trailing" secondItem="HN9-jc-8nD" secondAttribute="trailing" constant="20" id="nIK-Xu-7Ki"/> <constraint firstItem="mLR-uX-6VU" firstAttribute="leading" secondItem="XUa-fn-wOs" secondAttribute="leading" constant="20" id="nRR-e6-J0u"/> <constraint firstAttribute="trailing" secondItem="mLR-uX-6VU" secondAttribute="trailing" constant="20" id="xbd-Iy-1pe"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ctA-xd-acI"> <rect key="frame" x="0.0" y="110" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="aYW-N3-r53"> <rect key="frame" x="10" y="7.9999999999999982" width="110" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driving School" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9vG-5P-lB6"> <rect key="frame" x="0.0" y="0.0" width="110" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="M5e-Zr-qV3"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bHT-HZ-WnO"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="dAk-3V-lJD"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="aYW-N3-r53" firstAttribute="leading" secondItem="ctA-xd-acI" secondAttribute="leading" constant="10" id="0iQ-ip-CvR"/> <constraint firstItem="bHT-HZ-WnO" firstAttribute="leading" secondItem="ctA-xd-acI" secondAttribute="leading" constant="20" id="1BC-Kr-zD8"/> <constraint firstAttribute="bottom" secondItem="bHT-HZ-WnO" secondAttribute="bottom" id="8p7-pL-55L"/> <constraint firstAttribute="bottom" secondItem="M5e-Zr-qV3" secondAttribute="bottom" constant="5" id="NJK-Tn-dhw"/> <constraint firstAttribute="trailing" secondItem="M5e-Zr-qV3" secondAttribute="trailing" constant="20" id="PWE-8h-2NT"/> <constraint firstAttribute="trailing" secondItem="bHT-HZ-WnO" secondAttribute="trailing" constant="20" id="Q5e-9d-Vsl"/> <constraint firstAttribute="height" constant="60" id="W6X-lo-5OM"/> <constraint firstItem="M5e-Zr-qV3" firstAttribute="top" secondItem="aYW-N3-r53" secondAttribute="bottom" constant="5" id="fPx-qu-Hls"/> <constraint firstItem="M5e-Zr-qV3" firstAttribute="leading" secondItem="ctA-xd-acI" secondAttribute="leading" constant="20" id="qDX-qN-4Zx"/> <constraint firstItem="aYW-N3-r53" firstAttribute="top" secondItem="ctA-xd-acI" secondAttribute="top" constant="8" id="vJZ-Zk-kze"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="M1a-yb-Gft"> <rect key="frame" x="0.0" y="170" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="XKg-kc-al0"> <rect key="frame" x="10" y="7.9999999999999982" width="146" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="License Type/Class" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pkc-IO-Yjx"> <rect key="frame" x="0.0" y="0.0" width="146" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="HNc-20-OxN"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qTO-2y-mGC"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="M1S-vR-rNT"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="HNc-20-OxN" firstAttribute="top" secondItem="XKg-kc-al0" secondAttribute="bottom" constant="5" id="CLh-p6-Ckd"/> <constraint firstItem="XKg-kc-al0" firstAttribute="leading" secondItem="M1a-yb-Gft" secondAttribute="leading" constant="10" id="Hpn-As-J2k"/> <constraint firstAttribute="bottom" secondItem="qTO-2y-mGC" secondAttribute="bottom" id="KYb-6j-PuH"/> <constraint firstAttribute="bottom" secondItem="HNc-20-OxN" secondAttribute="bottom" constant="5" id="MDF-Oy-1lq"/> <constraint firstItem="XKg-kc-al0" firstAttribute="top" secondItem="M1a-yb-Gft" secondAttribute="top" constant="8" id="THv-Go-lag"/> <constraint firstAttribute="trailing" secondItem="qTO-2y-mGC" secondAttribute="trailing" constant="20" id="WoM-YO-t42"/> <constraint firstAttribute="height" constant="60" id="XIX-G8-QVR"/> <constraint firstItem="HNc-20-OxN" firstAttribute="leading" secondItem="M1a-yb-Gft" secondAttribute="leading" constant="20" id="g5g-fv-qxN"/> <constraint firstAttribute="trailing" secondItem="HNc-20-OxN" secondAttribute="trailing" constant="20" id="iHq-7g-6k8"/> <constraint firstItem="qTO-2y-mGC" firstAttribute="leading" secondItem="M1a-yb-Gft" secondAttribute="leading" constant="20" id="zIp-5L-NOn"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MdB-bf-YdB"> <rect key="frame" x="0.0" y="230" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="3Zz-wa-Lst"> <rect key="frame" x="10" y="7.9999999999999982" width="144.66666666666666" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Type of Experience" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ldj-bc-Cw6"> <rect key="frame" x="0.0" y="0.0" width="144.66666666666666" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="S7p-ki-fMU"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Yff-i0-EQ7"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="RbA-xN-dEd"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="Yff-i0-EQ7" firstAttribute="leading" secondItem="MdB-bf-YdB" secondAttribute="leading" constant="20" id="DY2-DO-wPo"/> <constraint firstAttribute="trailing" secondItem="S7p-ki-fMU" secondAttribute="trailing" constant="20" id="G0y-nW-Uda"/> <constraint firstItem="3Zz-wa-Lst" firstAttribute="top" secondItem="MdB-bf-YdB" secondAttribute="top" constant="8" id="InJ-Q3-nRV"/> <constraint firstAttribute="height" constant="60" id="RbS-Cj-ueq"/> <constraint firstItem="3Zz-wa-Lst" firstAttribute="leading" secondItem="MdB-bf-YdB" secondAttribute="leading" constant="10" id="bJL-uY-uZq"/> <constraint firstItem="S7p-ki-fMU" firstAttribute="top" secondItem="3Zz-wa-Lst" secondAttribute="bottom" constant="5" id="hvJ-sl-5Sf"/> <constraint firstItem="S7p-ki-fMU" firstAttribute="leading" secondItem="MdB-bf-YdB" secondAttribute="leading" constant="20" id="ogi-FQ-wdA"/> <constraint firstAttribute="bottom" secondItem="Yff-i0-EQ7" secondAttribute="bottom" id="qt6-P7-x1t"/> <constraint firstAttribute="bottom" secondItem="S7p-ki-fMU" secondAttribute="bottom" constant="5" id="sMR-0r-S6N"/> <constraint firstAttribute="trailing" secondItem="Yff-i0-EQ7" secondAttribute="trailing" constant="20" id="zcn-KM-n0h"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RGP-bX-ye6"> <rect key="frame" x="0.0" y="290" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="qBJ-8a-SoY"> <rect key="frame" x="10" y="7.9999999999999982" width="97" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="CDL Number" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hE9-Zs-gZG"> <rect key="frame" x="0.0" y="0.0" width="97" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Jg4-jJ-b5a"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" keyboardType="phonePad"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JpC-NR-ONd"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="piD-nj-mHs"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="JpC-NR-ONd" secondAttribute="bottom" id="0lB-2r-Xxu"/> <constraint firstItem="JpC-NR-ONd" firstAttribute="leading" secondItem="RGP-bX-ye6" secondAttribute="leading" constant="20" id="4ee-0s-LPh"/> <constraint firstAttribute="height" constant="60" id="Fdj-Te-fsu"/> <constraint firstAttribute="trailing" secondItem="Jg4-jJ-b5a" secondAttribute="trailing" constant="20" id="Nxf-5Q-0hY"/> <constraint firstItem="Jg4-jJ-b5a" firstAttribute="top" secondItem="qBJ-8a-SoY" secondAttribute="bottom" constant="5" id="OnD-bC-Qte"/> <constraint firstAttribute="bottom" secondItem="Jg4-jJ-b5a" secondAttribute="bottom" constant="5" id="Q57-KR-Kt7"/> <constraint firstItem="qBJ-8a-SoY" firstAttribute="top" secondItem="RGP-bX-ye6" secondAttribute="top" constant="8" id="aKv-47-sqK"/> <constraint firstItem="Jg4-jJ-b5a" firstAttribute="leading" secondItem="RGP-bX-ye6" secondAttribute="leading" constant="20" id="dhN-V0-Neb"/> <constraint firstAttribute="trailing" secondItem="JpC-NR-ONd" secondAttribute="trailing" constant="20" id="gq0-QZ-U6y"/> <constraint firstItem="qBJ-8a-SoY" firstAttribute="leading" secondItem="RGP-bX-ye6" secondAttribute="leading" constant="10" id="rhi-rg-9Bc"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FIb-u8-dfa"> <rect key="frame" x="0.0" y="350" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="xQG-HE-X5j"> <rect key="frame" x="10" y="7.9999999999999982" width="171.66666666666666" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="License Endorsements" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zVI-0E-J7p"> <rect key="frame" x="0.0" y="0.0" width="171.66666666666666" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="LbN-y0-bgF"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KYI-Vr-mQF"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="e1G-Yi-XQB"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="KYI-Vr-mQF" secondAttribute="trailing" constant="20" id="5vt-A7-72v"/> <constraint firstItem="LbN-y0-bgF" firstAttribute="top" secondItem="xQG-HE-X5j" secondAttribute="bottom" constant="5" id="7js-Rb-Qn8"/> <constraint firstItem="xQG-HE-X5j" firstAttribute="leading" secondItem="FIb-u8-dfa" secondAttribute="leading" constant="10" id="Bhb-db-8aG"/> <constraint firstAttribute="bottom" secondItem="KYI-Vr-mQF" secondAttribute="bottom" id="FGJ-ss-DVK"/> <constraint firstAttribute="height" constant="60" id="MP1-qZ-cSN"/> <constraint firstAttribute="bottom" secondItem="LbN-y0-bgF" secondAttribute="bottom" constant="5" id="OwE-47-SNH"/> <constraint firstItem="LbN-y0-bgF" firstAttribute="leading" secondItem="FIb-u8-dfa" secondAttribute="leading" constant="20" id="b8d-pf-eaO"/> <constraint firstItem="KYI-Vr-mQF" firstAttribute="leading" secondItem="FIb-u8-dfa" secondAttribute="leading" constant="20" id="gn3-rP-XZ7"/> <constraint firstItem="xQG-HE-X5j" firstAttribute="top" secondItem="FIb-u8-dfa" secondAttribute="top" constant="8" id="jfJ-sV-RkG"/> <constraint firstAttribute="trailing" secondItem="LbN-y0-bgF" secondAttribute="trailing" constant="20" id="mQH-Zc-xHF"/> </constraints> </view> </subviews> </stackView> </subviews> <constraints> <constraint firstAttribute="trailing" secondItem="q8V-yW-WyB" secondAttribute="trailing" id="8uA-2g-qTi"/> <constraint firstItem="q8V-yW-WyB" firstAttribute="leading" secondItem="SC8-22-EWO" secondAttribute="leading" id="NNZ-14-Vyc"/> <constraint firstItem="q8V-yW-WyB" firstAttribute="top" secondItem="SC8-22-EWO" secondAttribute="top" id="S67-NI-khs"/> <constraint firstAttribute="bottom" secondItem="q8V-yW-WyB" secondAttribute="bottom" id="ZAQ-Wq-iPP"/> <constraint firstItem="q8V-yW-WyB" firstAttribute="centerX" secondItem="SC8-22-EWO" secondAttribute="centerX" id="skS-Wh-tkn"/> </constraints> </scrollView> </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="xL4-fr-Byj" firstAttribute="top" secondItem="SC8-22-EWO" secondAttribute="bottom" constant="10" id="KJR-KT-pPk"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="xL4-fr-Byj" secondAttribute="trailing" constant="30" id="NTx-JH-Xdc"/> <constraint firstItem="xL4-fr-Byj" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="30" id="TFt-k7-Dpo"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="xL4-fr-Byj" secondAttribute="bottom" constant="20" id="dZ3-Z6-0se"/> <constraint firstItem="SC8-22-EWO" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="topMargin" constant="10" id="jyd-gM-2ND"/> <constraint firstAttribute="trailing" secondItem="SC8-22-EWO" secondAttribute="trailing" id="lfT-zR-5gI"/> <constraint firstItem="SC8-22-EWO" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="wbf-Rm-Yi0"/> </constraints> <point key="canvasLocation" x="85" y="21"/> </view> </objects> <resources> <namedColor name="ThemeColor"> <color red="0.99199998378753662" green="0.82700002193450928" blue="0.016000000759959221" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </namedColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> <systemColor name="systemGray5Color"> <color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </systemColor> </resources> </document> BrokerDriver/Login/VC/Resigter_4_VC.swift
New file @@ -0,0 +1,54 @@ // // Resigter_4_VC.swift // BrokerDriver // // Created by 无故事王国 on 2023/9/12. // import UIKit class Resigter_4_VC: BaseViewController { var registerModel:RegisterModel! @IBOutlet weak var tf_licenseExpDate: UITextField! @IBOutlet weak var tf_twicCard: UITextField! @IBOutlet weak var tf_hazmat: UITextField! @IBOutlet weak var tf_dotMedical: UITextField! @IBOutlet weak var tf_insuranceE: UITextField! @IBOutlet weak var tf_lastRoad: UITextField! @IBOutlet weak var tf_lastDrug: UITextField! @IBOutlet weak var tf_lastAlcohol: UITextField! override func viewDidLoad() { super.viewDidLoad() title = "Resiger Driver" tf_licenseExpDate.delegate = self tf_twicCard.delegate = self tf_hazmat.delegate = self tf_dotMedical.delegate = self tf_insuranceE.delegate = self tf_lastRoad.delegate = self tf_lastDrug.delegate = self tf_lastAlcohol.delegate = self } @IBAction func submitAction(_ sender: Any) { Services.driverRegister(model: registerModel).subscribe(onNext: { data in alert(msg: "Register Success!") self.navigationController?.popToRootViewController(animated: true) }) { error in alert(msg: error.localizedDescription) }.disposed(by: disposeBag) } } extension Resigter_4_VC:UITextFieldDelegate{ func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { DatePickerView.show { date in textField.text = date.jq_format("yyyy-MM-dd") } return false } } BrokerDriver/Login/VC/Resigter_4_VC.xib
New file @@ -0,0 +1,446 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="Resigter_4_VC" customModule="BrokerDriver" customModuleProvider="target"> <connections> <outlet property="tf_dotMedical" destination="Bqe-DS-zlE" id="HhW-Sb-GYJ"/> <outlet property="tf_hazmat" destination="Cjy-sE-q61" id="SGM-dz-Ai8"/> <outlet property="tf_insuranceE" destination="1IT-l0-UY3" id="fqE-Cw-TjD"/> <outlet property="tf_lastAlcohol" destination="WOL-da-MSV" id="rKH-lk-ReR"/> <outlet property="tf_lastDrug" destination="Vkm-gU-ddH" id="uYf-ZR-tHP"/> <outlet property="tf_lastRoad" destination="gU2-As-rIM" id="eL2-Ah-ysf"/> <outlet property="tf_licenseExpDate" destination="a9Z-cG-IRQ" id="1QZ-cL-ppS"/> <outlet property="tf_twicCard" destination="2M1-HM-E1Z" id="2QY-Kl-ud8"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LPk-0M-HcQ"> <rect key="frame" x="0.0" y="69" width="393" height="674"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="mh8-CM-Tpp"> <rect key="frame" x="0.0" y="0.0" width="393" height="530"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mdy-V1-Nce"> <rect key="frame" x="0.0" y="0.0" width="393" height="50"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Driver Employment" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MtI-PH-jqr"> <rect key="frame" x="10" y="9.3333333333333268" width="224" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(4/4)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rhm-oI-Qg1"> <rect key="frame" x="322" y="9.3333333333333268" width="61" height="31.333333333333329"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="26"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="rhm-oI-Qg1" firstAttribute="centerY" secondItem="MtI-PH-jqr" secondAttribute="centerY" id="4vF-RX-oZQ"/> <constraint firstItem="MtI-PH-jqr" firstAttribute="centerY" secondItem="mdy-V1-Nce" secondAttribute="centerY" id="aWc-9S-sIa"/> <constraint firstAttribute="trailing" secondItem="rhm-oI-Qg1" secondAttribute="trailing" constant="10" id="kB8-2T-cm4"/> <constraint firstItem="MtI-PH-jqr" firstAttribute="leading" secondItem="mdy-V1-Nce" secondAttribute="leading" constant="10" id="to5-gL-1QC"/> <constraint firstAttribute="height" constant="50" id="wkZ-Hy-uh0"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NeF-hu-g3S"> <rect key="frame" x="0.0" y="50" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="4Un-d0-mag"> <rect key="frame" x="10" y="7.9999999999999982" width="177.66666666666666" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="License Expiration Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eKY-h2-q1Z"> <rect key="frame" x="0.0" y="0.0" width="177.66666666666666" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="a9Z-cG-IRQ"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PtO-M6-3Nn"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="9W1-Aj-LI5"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="PtO-M6-3Nn" secondAttribute="trailing" constant="20" id="I6t-g4-Fqm"/> <constraint firstItem="PtO-M6-3Nn" firstAttribute="leading" secondItem="NeF-hu-g3S" secondAttribute="leading" constant="20" id="OLF-cT-rYV"/> <constraint firstItem="4Un-d0-mag" firstAttribute="top" secondItem="NeF-hu-g3S" secondAttribute="top" constant="8" id="TnX-j4-qk2"/> <constraint firstAttribute="trailing" secondItem="a9Z-cG-IRQ" secondAttribute="trailing" constant="20" id="Y5i-sP-3L7"/> <constraint firstAttribute="bottom" secondItem="a9Z-cG-IRQ" secondAttribute="bottom" constant="5" id="eGA-qo-FX8"/> <constraint firstItem="4Un-d0-mag" firstAttribute="leading" secondItem="NeF-hu-g3S" secondAttribute="leading" constant="10" id="mWv-XK-cgT"/> <constraint firstAttribute="bottom" secondItem="PtO-M6-3Nn" secondAttribute="bottom" id="nSs-Ae-y3s"/> <constraint firstAttribute="height" constant="60" id="sQb-AJ-VTt"/> <constraint firstItem="a9Z-cG-IRQ" firstAttribute="leading" secondItem="NeF-hu-g3S" secondAttribute="leading" constant="20" id="sjd-wx-NHY"/> <constraint firstItem="a9Z-cG-IRQ" firstAttribute="top" secondItem="4Un-d0-mag" secondAttribute="bottom" constant="5" id="w9m-Z1-LOy"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="m09-uS-Gmr"> <rect key="frame" x="0.0" y="110" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="nBF-ZM-hSV"> <rect key="frame" x="10" y="7.9999999999999982" width="201.33333333333334" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TWIC Card Expiration Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a2v-Wk-m41"> <rect key="frame" x="0.0" y="0.0" width="201.33333333333334" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="2M1-HM-E1Z"> <rect key="frame" x="20" y="32.333333333333343" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dGo-Hp-mZZ"> <rect key="frame" x="20" y="59.666666666666657" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="dOp-N0-3Ss"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="2M1-HM-E1Z" secondAttribute="bottom" constant="5" id="9Xd-Ss-NUg"/> <constraint firstItem="2M1-HM-E1Z" firstAttribute="top" secondItem="nBF-ZM-hSV" secondAttribute="bottom" constant="5" id="9hO-ud-u7e"/> <constraint firstItem="nBF-ZM-hSV" firstAttribute="top" secondItem="m09-uS-Gmr" secondAttribute="top" constant="8" id="HZi-0U-49N"/> <constraint firstAttribute="trailing" secondItem="dGo-Hp-mZZ" secondAttribute="trailing" constant="20" id="Wjc-VA-yOE"/> <constraint firstAttribute="bottom" secondItem="dGo-Hp-mZZ" secondAttribute="bottom" id="Z8A-Kr-eVF"/> <constraint firstAttribute="height" constant="60" id="ZMS-sc-nIL"/> <constraint firstItem="2M1-HM-E1Z" firstAttribute="leading" secondItem="m09-uS-Gmr" secondAttribute="leading" constant="20" id="mfA-wB-Kp8"/> <constraint firstAttribute="trailing" secondItem="2M1-HM-E1Z" secondAttribute="trailing" constant="20" id="mkn-7Q-rF2"/> <constraint firstItem="nBF-ZM-hSV" firstAttribute="leading" secondItem="m09-uS-Gmr" secondAttribute="leading" constant="10" id="nlN-zp-bFW"/> <constraint firstItem="dGo-Hp-mZZ" firstAttribute="leading" secondItem="m09-uS-Gmr" secondAttribute="leading" constant="20" id="xIG-li-9Ri"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3K-co-S6H"> <rect key="frame" x="0.0" y="170" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="LGm-Zm-uaV"> <rect key="frame" x="10" y="7.9999999999999982" width="283" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hazmat Endorsement Expiration Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xe8-U5-x51"> <rect key="frame" x="0.0" y="0.0" width="283" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Cjy-sE-q61"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0lS-6q-mic"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Oq7-1L-Znp"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="Cjy-sE-q61" secondAttribute="bottom" constant="5" id="0uC-fo-VMU"/> <constraint firstAttribute="trailing" secondItem="Cjy-sE-q61" secondAttribute="trailing" constant="20" id="4dC-uk-tPK"/> <constraint firstAttribute="height" constant="60" id="4tl-OC-quh"/> <constraint firstItem="LGm-Zm-uaV" firstAttribute="leading" secondItem="e3K-co-S6H" secondAttribute="leading" constant="10" id="F5y-zD-8fl"/> <constraint firstItem="0lS-6q-mic" firstAttribute="leading" secondItem="e3K-co-S6H" secondAttribute="leading" constant="20" id="OeP-nR-JPW"/> <constraint firstItem="Cjy-sE-q61" firstAttribute="top" secondItem="LGm-Zm-uaV" secondAttribute="bottom" constant="5" id="U1D-vW-xfh"/> <constraint firstAttribute="bottom" secondItem="0lS-6q-mic" secondAttribute="bottom" id="Wcs-4W-UFJ"/> <constraint firstAttribute="trailing" secondItem="0lS-6q-mic" secondAttribute="trailing" constant="20" id="XOk-sj-uH7"/> <constraint firstItem="LGm-Zm-uaV" firstAttribute="top" secondItem="e3K-co-S6H" secondAttribute="top" constant="8" id="gGY-70-MeX"/> <constraint firstItem="Cjy-sE-q61" firstAttribute="leading" secondItem="e3K-co-S6H" secondAttribute="leading" constant="20" id="p1t-Q2-5VA"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Nxf-56-pSZ"> <rect key="frame" x="0.0" y="230" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="6ew-3f-TGS"> <rect key="frame" x="10" y="7.9999999999999982" width="256.33333333333331" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="DOT Medical Card Expiration Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nuN-by-mK3"> <rect key="frame" x="0.0" y="0.0" width="256.33333333333331" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Bqe-DS-zlE"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ste-ND-3xe"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="d90-ce-9MU"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottom" secondItem="Bqe-DS-zlE" secondAttribute="bottom" constant="5" id="0Af-UW-UEp"/> <constraint firstItem="ste-ND-3xe" firstAttribute="leading" secondItem="Nxf-56-pSZ" secondAttribute="leading" constant="20" id="73E-Tz-wex"/> <constraint firstItem="Bqe-DS-zlE" firstAttribute="top" secondItem="6ew-3f-TGS" secondAttribute="bottom" constant="5" id="OtM-zW-qgC"/> <constraint firstAttribute="trailing" secondItem="ste-ND-3xe" secondAttribute="trailing" constant="20" id="VlJ-qy-7Hs"/> <constraint firstAttribute="height" constant="60" id="dcw-pg-ygf"/> <constraint firstAttribute="bottom" secondItem="ste-ND-3xe" secondAttribute="bottom" id="gIS-c7-hx4"/> <constraint firstAttribute="trailing" secondItem="Bqe-DS-zlE" secondAttribute="trailing" constant="20" id="hAC-Bl-zly"/> <constraint firstItem="Bqe-DS-zlE" firstAttribute="leading" secondItem="Nxf-56-pSZ" secondAttribute="leading" constant="20" id="khN-Gv-gv9"/> <constraint firstItem="6ew-3f-TGS" firstAttribute="top" secondItem="Nxf-56-pSZ" secondAttribute="top" constant="8" id="ktJ-jc-olb"/> <constraint firstItem="6ew-3f-TGS" firstAttribute="leading" secondItem="Nxf-56-pSZ" secondAttribute="leading" constant="10" id="lx7-km-wo8"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Gdh-bh-jfK"> <rect key="frame" x="0.0" y="290" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="4HC-Dv-vbx"> <rect key="frame" x="10" y="7.9999999999999982" width="194" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Insurance Expiration Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PKo-TJ-XvV"> <rect key="frame" x="0.0" y="0.0" width="194" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="1IT-l0-UY3"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Z57-QO-TaG"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="IfD-5u-DjB"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="4HC-Dv-vbx" firstAttribute="top" secondItem="Gdh-bh-jfK" secondAttribute="top" constant="8" id="9KO-YE-dzB"/> <constraint firstItem="1IT-l0-UY3" firstAttribute="top" secondItem="4HC-Dv-vbx" secondAttribute="bottom" constant="5" id="Kzh-um-dRr"/> <constraint firstAttribute="trailing" secondItem="Z57-QO-TaG" secondAttribute="trailing" constant="20" id="NGo-el-yeL"/> <constraint firstItem="Z57-QO-TaG" firstAttribute="leading" secondItem="Gdh-bh-jfK" secondAttribute="leading" constant="20" id="VEu-2z-PGo"/> <constraint firstAttribute="height" constant="60" id="WhR-8c-z3C"/> <constraint firstItem="4HC-Dv-vbx" firstAttribute="leading" secondItem="Gdh-bh-jfK" secondAttribute="leading" constant="10" id="gLV-Zt-gzh"/> <constraint firstAttribute="bottom" secondItem="Z57-QO-TaG" secondAttribute="bottom" id="h7Q-hY-gjh"/> <constraint firstAttribute="bottom" secondItem="1IT-l0-UY3" secondAttribute="bottom" constant="5" id="heS-yG-7qf"/> <constraint firstItem="1IT-l0-UY3" firstAttribute="leading" secondItem="Gdh-bh-jfK" secondAttribute="leading" constant="20" id="iR4-2V-BZf"/> <constraint firstAttribute="trailing" secondItem="1IT-l0-UY3" secondAttribute="trailing" constant="20" id="ouk-fv-HGj"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EV7-RB-za3"> <rect key="frame" x="0.0" y="350" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="6nA-Z9-Msg"> <rect key="frame" x="10" y="7.9999999999999982" width="150.33333333333334" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Last Road Test Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XE9-Gd-58E"> <rect key="frame" x="0.0" y="0.0" width="150.33333333333334" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="gU2-As-rIM"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="p3v-T5-ubI"> <rect key="frame" x="20" y="59.666666666666686" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="Hzg-57-tzW"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="gU2-As-rIM" firstAttribute="top" secondItem="6nA-Z9-Msg" secondAttribute="bottom" constant="5" id="FQF-03-lUa"/> <constraint firstAttribute="trailing" secondItem="gU2-As-rIM" secondAttribute="trailing" constant="20" id="Lot-01-zsW"/> <constraint firstAttribute="bottom" secondItem="p3v-T5-ubI" secondAttribute="bottom" id="N8E-vb-QOA"/> <constraint firstAttribute="trailing" secondItem="p3v-T5-ubI" secondAttribute="trailing" constant="20" id="Vxc-6E-bfa"/> <constraint firstAttribute="height" constant="60" id="ZVl-aX-2Fb"/> <constraint firstItem="6nA-Z9-Msg" firstAttribute="top" secondItem="EV7-RB-za3" secondAttribute="top" constant="8" id="ahk-fW-obQ"/> <constraint firstItem="p3v-T5-ubI" firstAttribute="leading" secondItem="EV7-RB-za3" secondAttribute="leading" constant="20" id="gVU-dk-C26"/> <constraint firstItem="gU2-As-rIM" firstAttribute="leading" secondItem="EV7-RB-za3" secondAttribute="leading" constant="20" id="q8P-2J-JSd"/> <constraint firstAttribute="bottom" secondItem="gU2-As-rIM" secondAttribute="bottom" constant="5" id="s2p-aw-pJT"/> <constraint firstItem="6nA-Z9-Msg" firstAttribute="leading" secondItem="EV7-RB-za3" secondAttribute="leading" constant="10" id="sPm-JN-t7d"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="frg-x2-w2i"> <rect key="frame" x="0.0" y="410" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="9dj-bp-2oS"> <rect key="frame" x="10" y="7.9999999999999982" width="149" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Last Drug Test Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ypn-cA-r9c"> <rect key="frame" x="0.0" y="0.0" width="149" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Vkm-gU-ddH"> <rect key="frame" x="20" y="32.333333333333314" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dfd-Be-R0f"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="lZx-u4-7Qe"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="dfd-Be-R0f" firstAttribute="leading" secondItem="frg-x2-w2i" secondAttribute="leading" constant="20" id="1Qh-Yf-UUh"/> <constraint firstItem="Vkm-gU-ddH" firstAttribute="top" secondItem="9dj-bp-2oS" secondAttribute="bottom" constant="5" id="4Ia-7M-As1"/> <constraint firstItem="Vkm-gU-ddH" firstAttribute="leading" secondItem="frg-x2-w2i" secondAttribute="leading" constant="20" id="6Ee-kw-pKC"/> <constraint firstItem="9dj-bp-2oS" firstAttribute="top" secondItem="frg-x2-w2i" secondAttribute="top" constant="8" id="BMs-Dq-rp6"/> <constraint firstItem="9dj-bp-2oS" firstAttribute="leading" secondItem="frg-x2-w2i" secondAttribute="leading" constant="10" id="ENp-Sb-5O9"/> <constraint firstAttribute="bottom" secondItem="Vkm-gU-ddH" secondAttribute="bottom" constant="5" id="WeS-13-iuU"/> <constraint firstAttribute="height" constant="60" id="aD8-Rb-qV4"/> <constraint firstAttribute="trailing" secondItem="Vkm-gU-ddH" secondAttribute="trailing" constant="20" id="j0O-eC-pnS"/> <constraint firstAttribute="trailing" secondItem="dfd-Be-R0f" secondAttribute="trailing" constant="20" id="mb5-Cw-3Um"/> <constraint firstAttribute="bottom" secondItem="dfd-Be-R0f" secondAttribute="bottom" id="wic-eC-Lo6"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b8y-Dk-fy5"> <rect key="frame" x="0.0" y="470" width="393" height="60"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="fnH-M7-LFp"> <rect key="frame" x="10" y="7.9999999999999982" width="168.66666666666666" height="19.333333333333329"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Last Alcohol Test Date" textAlignment="natural" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tYj-So-tij"> <rect key="frame" x="0.0" y="0.0" width="168.66666666666666" height="19.333333333333332"/> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> <color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <nil key="highlightedColor"/> </label> </subviews> </stackView> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="(Optional)" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="WOL-da-MSV"> <rect key="frame" x="20" y="32.333333333333371" width="353" height="22.666666666666671"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/> </textField> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Wne-dS-Pbl"> <rect key="frame" x="20" y="59.666666666666629" width="353" height="0.3333333333333357"/> <color key="backgroundColor" systemColor="systemGray5Color"/> <constraints> <constraint firstAttribute="height" constant="0.5" id="mgK-P4-jwY"/> </constraints> </view> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="trailing" secondItem="WOL-da-MSV" secondAttribute="trailing" constant="20" id="0HR-TD-5b8"/> <constraint firstAttribute="height" constant="60" id="613-3d-AGe"/> <constraint firstAttribute="trailing" secondItem="Wne-dS-Pbl" secondAttribute="trailing" constant="20" id="P7y-75-s7O"/> <constraint firstItem="Wne-dS-Pbl" firstAttribute="leading" secondItem="b8y-Dk-fy5" secondAttribute="leading" constant="20" id="XRM-Hv-O73"/> <constraint firstItem="fnH-M7-LFp" firstAttribute="leading" secondItem="b8y-Dk-fy5" secondAttribute="leading" constant="10" id="dJc-MN-bEd"/> <constraint firstItem="WOL-da-MSV" firstAttribute="leading" secondItem="b8y-Dk-fy5" secondAttribute="leading" constant="20" id="gUl-Wg-NzP"/> <constraint firstItem="WOL-da-MSV" firstAttribute="top" secondItem="fnH-M7-LFp" secondAttribute="bottom" constant="5" id="jjV-c1-CPd"/> <constraint firstAttribute="bottom" secondItem="WOL-da-MSV" secondAttribute="bottom" constant="5" id="kKQ-hd-Cc1"/> <constraint firstAttribute="bottom" secondItem="Wne-dS-Pbl" secondAttribute="bottom" id="uQB-2E-7Bx"/> <constraint firstItem="fnH-M7-LFp" firstAttribute="top" secondItem="b8y-Dk-fy5" secondAttribute="top" constant="8" id="uZ6-t3-umO"/> </constraints> </view> </subviews> </stackView> </subviews> <constraints> <constraint firstItem="mh8-CM-Tpp" firstAttribute="leading" secondItem="LPk-0M-HcQ" secondAttribute="leading" id="7DN-MK-iHB"/> <constraint firstAttribute="bottom" secondItem="mh8-CM-Tpp" secondAttribute="bottom" id="Qfy-92-1zz"/> <constraint firstItem="mh8-CM-Tpp" firstAttribute="centerX" secondItem="LPk-0M-HcQ" secondAttribute="centerX" id="RTt-3E-uko"/> <constraint firstItem="mh8-CM-Tpp" firstAttribute="top" secondItem="LPk-0M-HcQ" secondAttribute="top" id="ZFn-vk-5Dj"/> <constraint firstAttribute="trailing" secondItem="mh8-CM-Tpp" secondAttribute="trailing" id="fcQ-ut-S9Y"/> </constraints> </scrollView> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WUy-n7-cQl"> <rect key="frame" x="30" y="753" width="333" height="45"/> <color key="backgroundColor" name="ThemeColor"/> <constraints> <constraint firstAttribute="height" constant="45" id="ab4-XK-LnU"/> </constraints> <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> <state key="normal" title="Submit"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> </userDefinedRuntimeAttributes> <connections> <action selector="submitAction:" destination="-1" eventType="touchUpInside" id="qTU-aF-6Tb"/> </connections> </button> </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstAttribute="bottomMargin" secondItem="WUy-n7-cQl" secondAttribute="bottom" constant="20" id="3yc-DC-ajx"/> <constraint firstAttribute="trailing" secondItem="LPk-0M-HcQ" secondAttribute="trailing" id="IqQ-6T-uc5"/> <constraint firstItem="LPk-0M-HcQ" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="10" id="bJ4-a2-3x2"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="WUy-n7-cQl" secondAttribute="trailing" constant="30" id="egx-gQ-IqU"/> <constraint firstItem="WUy-n7-cQl" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="30" id="uSY-QT-CZK"/> <constraint firstItem="LPk-0M-HcQ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="ukA-95-qBm"/> <constraint firstItem="WUy-n7-cQl" firstAttribute="top" secondItem="LPk-0M-HcQ" secondAttribute="bottom" constant="10" id="x6P-9V-6cT"/> </constraints> <point key="canvasLocation" x="83" y="21"/> </view> </objects> <resources> <namedColor name="ThemeColor"> <color red="0.99199998378753662" green="0.82700002193450928" blue="0.016000000759959221" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </namedColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> <systemColor name="systemGray5Color"> <color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </systemColor> </resources> </document> BrokerDriver/Models/UserModel.swift
@@ -97,3 +97,53 @@ var notes: String = "" var status: DriverInfoStatus = .none } class RegisterModel:HandyJSON{ var account: String? var address: String? var applicationDate: String? var bonusEligibilityDate: String? var carriersId: Int = 0 var cdlNumber: String? var companyId: Int = 0 var contactNumber: String? var createTime: String? var dateOfBrith: String? var dotCardExpirationDate: String? var driverName: String? var driverNumber: String? var driverType: Int = 0 var drivingSchool: String? var groupNumber: String? var hazmatExpriationDate: String? var hireDate: String? var id: Int = 0 var idNumber: String? var insuranceCo: String? var insuranceExpirationDate: String? var isCarriers: Int = 0 var lastAlcoholTestDate: String? var lastDrugTestDate: String? var lastRoadTestDate: String? var licenseEndorsements: String? var licenseEndorsementsOne: String? var licenseExpirationDate: String? var licenseType: String? var password: String? var rehirable: String? var remove: Int = 0 var sinceYear: String? var status: Int = 0 var statusRemark: String? var terminationDate: String? var twicCardExpirationDate: String? var typeOfExperience: String? required init(){} } struct BasicModel:HandyJSON{ var name = "" var id = 0 } BrokerDriver/Network/NetworkRequest.swift
@@ -16,7 +16,7 @@ var sysTime: Int = 0 var code: Int = -1 // 服务端返回码 var data: T? = nil // 具体的data的格式和业务相关,故用泛型定义 var msg: String = "" var message: String = "" } struct BaseData<T: HandyJSON>: HandyJSON { @@ -211,7 +211,7 @@ screnDelegate?.window?.rootViewController = nav alert(msg: "Login session invaild") }else { alert(msg: next.msg) alert(msg: next.message) ob.onError(NetRequestError.Other) } }else{ BrokerDriver/Network/Services.swift
@@ -154,6 +154,7 @@ let params = ParamsAppender.build(url: All_Url) .interface(url: "/api/index/nextStatus") .append(key: "id", value: id) .append(key: "driverId", value:UserViewModel.getUserInfo()!.id) return NetworkRequest.request(params: params, method: .get, progress: true) } @@ -174,15 +175,32 @@ } /// 上传定位 class func uploadLocation(coordinate:CLLocationCoordinate2D)->Observable<BaseResponse<SimpleModel>>{ class func uploadLocation(coordinate:CLLocationCoordinate2D,type:Int)->Observable<BaseResponse<SimpleModel>>{ let params = ParamsAppender.build(url: All_Url) .interface(url: "/api/order/updateLonLat") .append(key: "driverId", value:UserViewModel.getUserInfo()!.id) .append(key: "type", value:type) //type 1 打点 2 上传位置 .append(key: "lat", value: "\(coordinate.latitude)") .append(key: "lon", value: "\(coordinate.longitude)") return NetworkRequest.request(params: params, method: .get, progress: false) } class func driverRegister(model:RegisterModel)->Observable<BaseResponse<SimpleModel>>{ let params = ParamsAppender.build(url: All_Url) .interface(url: "/gunsApi/driverAdd") .append(dic: model.toJSON()!) return NetworkRequest.request(params: params, method: .post, progress: true) } /// - Parameter type: 1:公司,2:物流商 class func driverCompanyList(type:Int)->Observable<BaseResponse<[BasicModel]>>{ let params = ParamsAppender.build(url: All_Url) .interface(url: "/gunsApi/driverAddCompanyList") .append(key: "type", value: type) return NetworkRequest.request(params: params, method: .post, progress: true) } } class GoogleServices:NSObject{ BrokerDriver/Staging.xcconfig
File was deleted BrokerDriver/en.lproj/InfoPlist.strings
New file @@ -0,0 +1,2 @@ "CFBundleDisplayName" = "CCA Driver"; BrokerDriver/zh-Hans.lproj/Info.plist
File was renamed from BrokerDriver/Info.plist @@ -31,5 +31,7 @@ <array> <string>location</string> </array> <key>CFBundleDisplayName</key> <string>CCA司机端</string> </dict> </plist> BrokerDriver/zh-Hans.lproj/InfoPlist.strings
New file @@ -0,0 +1,2 @@ "CFBundleDisplayName" = "CCA 司机端"; BrokerDriver/zh-Hans.lproj/LaunchScreen.strings
New file @@ -0,0 +1 @@ BrokerDriver/zh-Hans.lproj/Main.strings
New file @@ -0,0 +1 @@