commit 04.04.2022

commit 04.04.2022
parent b03e1592
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
D53F55FC27E5D12700C18B2A /* SwipeableItems.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */; }; D53F55FC27E5D12700C18B2A /* SwipeableItems.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */; };
D53F560B27E62D7600C18B2A /* SmallListWorkVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */; }; D53F560B27E62D7600C18B2A /* SmallListWorkVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */; };
D53F560C27E62D7600C18B2A /* SmallListWorkVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */; }; D53F560C27E62D7600C18B2A /* SmallListWorkVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */; };
D542184027F25EAB00DA8F51 /* CustCellTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D542183F27F25EAB00DA8F51 /* CustCellTableViewCell.swift */; };
D558EA5C27BE4A6C003C4578 /* HandmanViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA5B27BE4A6C003C4578 /* HandmanViewController.swift */; }; D558EA5C27BE4A6C003C4578 /* HandmanViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA5B27BE4A6C003C4578 /* HandmanViewController.swift */; };
D558EA6127BE4C65003C4578 /* EmerHandViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA6027BE4C65003C4578 /* EmerHandViewController.swift */; }; D558EA6127BE4C65003C4578 /* EmerHandViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA6027BE4C65003C4578 /* EmerHandViewController.swift */; };
D55E88F327DE124B00DB59E7 /* GlidingCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */; }; D55E88F327DE124B00DB59E7 /* GlidingCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */; };
...@@ -103,6 +104,7 @@ ...@@ -103,6 +104,7 @@
D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwipeableItems.swift; path = "../../../../GoldCode/MaterialsColdCode/SwipeableView-master/SwipeableView/SwipeableView/SwipeableItems.swift"; sourceTree = "<group>"; }; D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwipeableItems.swift; path = "../../../../GoldCode/MaterialsColdCode/SwipeableView-master/SwipeableView/SwipeableView/SwipeableItems.swift"; sourceTree = "<group>"; };
D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmallListWorkVC.swift; sourceTree = "<group>"; }; D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmallListWorkVC.swift; sourceTree = "<group>"; };
D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SmallListWorkVC.xib; sourceTree = "<group>"; }; D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SmallListWorkVC.xib; sourceTree = "<group>"; };
D542183F27F25EAB00DA8F51 /* CustCellTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustCellTableViewCell.swift; sourceTree = "<group>"; };
D558EA5B27BE4A6C003C4578 /* HandmanViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandmanViewController.swift; sourceTree = "<group>"; }; D558EA5B27BE4A6C003C4578 /* HandmanViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandmanViewController.swift; sourceTree = "<group>"; };
D558EA6027BE4C65003C4578 /* EmerHandViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmerHandViewController.swift; sourceTree = "<group>"; }; D558EA6027BE4C65003C4578 /* EmerHandViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmerHandViewController.swift; sourceTree = "<group>"; };
D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GlidingCollection.swift; sourceTree = "<group>"; }; D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GlidingCollection.swift; sourceTree = "<group>"; };
...@@ -334,6 +336,7 @@ ...@@ -334,6 +336,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
D5CF729D27DFB3500026392B /* ListWorkViewController.swift */, D5CF729D27DFB3500026392B /* ListWorkViewController.swift */,
D542183F27F25EAB00DA8F51 /* CustCellTableViewCell.swift */,
); );
path = Addition; path = Addition;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -604,6 +607,7 @@ ...@@ -604,6 +607,7 @@
D5F0236F27C4DAD8008F4146 /* ChangePswViewController.swift in Sources */, D5F0236F27C4DAD8008F4146 /* ChangePswViewController.swift in Sources */,
D5057F9D27BA5E940015C0DC /* VKBookingViewController.swift in Sources */, D5057F9D27BA5E940015C0DC /* VKBookingViewController.swift in Sources */,
D5F0236A27C4DAC2008F4146 /* RegistrationViewController.swift in Sources */, D5F0236A27C4DAC2008F4146 /* RegistrationViewController.swift in Sources */,
D542184027F25EAB00DA8F51 /* CustCellTableViewCell.swift in Sources */,
D558EA6127BE4C65003C4578 /* EmerHandViewController.swift in Sources */, D558EA6127BE4C65003C4578 /* EmerHandViewController.swift in Sources */,
D514860727BB7FD7006830A3 /* ChatViewController.swift in Sources */, D514860727BB7FD7006830A3 /* ChatViewController.swift in Sources */,
D5CB9A2827ECCE9A000F8500 /* StringExtension.swift in Sources */, D5CB9A2827ECCE9A000F8500 /* StringExtension.swift in Sources */,
......
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D569AB5C27B8E27A0013DCFE"
BuildableName = "Em-call.app"
BlueprintName = "Em-call"
ReferencedContainer = "container:Em-call.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D569AB7527B8E27B0013DCFE"
BuildableName = "Em-callTests.xctest"
BlueprintName = "Em-callTests"
ReferencedContainer = "container:Em-call.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D569AB8027B8E27B0013DCFE"
BuildableName = "Em-callUITests.xctest"
BlueprintName = "Em-callUITests"
ReferencedContainer = "container:Em-call.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D569AB5C27B8E27A0013DCFE"
BuildableName = "Em-call.app"
BlueprintName = "Em-call"
ReferencedContainer = "container:Em-call.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "OS_ACTIVITY_MODE"
value = "disable"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D569AB5C27B8E27A0013DCFE"
BuildableName = "Em-call.app"
BlueprintName = "Em-call"
ReferencedContainer = "container:Em-call.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
filePath = "Em-call/VC/ElectricTableViewController.swift" filePath = "Em-call/VC/ElectricTableViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "42" startingLineNumber = "43"
endingLineNumber = "42" endingLineNumber = "43"
landmarkName = "unknown" landmarkName = "viewDidLoad()"
landmarkType = "0"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
filePath = "Em-call/VC/MainViewController.swift" filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "214" startingLineNumber = "278"
endingLineNumber = "214" endingLineNumber = "278"
landmarkName = "coordinateToAdress(_:)" landmarkName = "unknown"
landmarkType = "7"> landmarkType = "0">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
filePath = "Em-call/VC/HandmanViewController.swift" filePath = "Em-call/VC/HandmanViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "227" startingLineNumber = "265"
endingLineNumber = "227" endingLineNumber = "265"
landmarkName = "delegateClick(text:)" landmarkName = "delegateClick(text:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
filePath = "Em-call/VC/HandmanViewController.swift" filePath = "Em-call/VC/HandmanViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "236" startingLineNumber = "274"
endingLineNumber = "236" endingLineNumber = "274"
landmarkName = "calendarDelegateClick(text:flagData:)" landmarkName = "calendarDelegateClick(text:flagData:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -180,22 +180,6 @@ ...@@ -180,22 +180,6 @@
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "05ED9425-8429-42D9-B62E-7BDF0B14420F"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "91"
endingLineNumber = "91"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
...@@ -206,10 +190,10 @@ ...@@ -206,10 +190,10 @@
filePath = "Em-call/VC/MainViewController.swift" filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "113" startingLineNumber = "134"
endingLineNumber = "113" endingLineNumber = "134"
landmarkName = "viewDidAppear(_:)" landmarkName = "unknown"
landmarkType = "7"> landmarkType = "0">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -302,10 +286,10 @@ ...@@ -302,10 +286,10 @@
filePath = "Em-call/VC/ElectricTableViewController.swift" filePath = "Em-call/VC/ElectricTableViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "224" startingLineNumber = "235"
endingLineNumber = "224" endingLineNumber = "235"
landmarkName = "unknown" landmarkName = "ElectricTableViewController"
landmarkType = "0"> landmarkType = "21">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
......
...@@ -10,5 +10,23 @@ ...@@ -10,5 +10,23 @@
<integer>2</integer> <integer>2</integer>
</dict> </dict>
</dict> </dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>D569AB5C27B8E27A0013DCFE</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>D569AB7527B8E27B0013DCFE</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>D569AB8027B8E27B0013DCFE</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict> </dict>
</plist> </plist>
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
filePath = "Em-call/VC/ProfileViewController.swift" filePath = "Em-call/VC/ProfileViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "56" startingLineNumber = "59"
endingLineNumber = "56" endingLineNumber = "59"
landmarkName = "imagePickerController(_:didFinishPickingMediaWithInfo:)" landmarkName = "imagePickerController(_:didFinishPickingMediaWithInfo:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "928501E6-B75F-4FD2-BD11-2133648FF1DA" uuid = "928501E6-B75F-4FD2-BD11-2133648FF1DA"
shouldBeEnabled = "Yes" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/VC/ProfileViewController.swift" filePath = "Em-call/VC/ProfileViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "58" startingLineNumber = "61"
endingLineNumber = "58" endingLineNumber = "61"
landmarkName = "imagePickerController(_:didFinishPickingMediaWithInfo:)" landmarkName = "imagePickerController(_:didFinishPickingMediaWithInfo:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -148,22 +148,6 @@ ...@@ -148,22 +148,6 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "961D3D3C-3B31-4E3B-A6DA-64F7E35755EC"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "83"
endingLineNumber = "83"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
...@@ -174,10 +158,10 @@ ...@@ -174,10 +158,10 @@
filePath = "Em-call/VC/MainViewController.swift" filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "129" startingLineNumber = "169"
endingLineNumber = "129" endingLineNumber = "169"
landmarkName = "viewWillAppear(_:)" landmarkName = "unknown"
landmarkType = "7"> landmarkType = "0">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -212,38 +196,6 @@ ...@@ -212,38 +196,6 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "5B6BEC96-DAB7-4B10-AA15-EDB231A59C47"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/Addition/BananaViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "217"
endingLineNumber = "217"
landmarkName = "scrollViewTapped(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "0B5DDEC8-2549-483F-97AA-7CB3471CFBAE"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/Addition/BananaViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "192"
endingLineNumber = "192"
landmarkName = "assignTouchGesture()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
...@@ -270,73 +222,10 @@ ...@@ -270,73 +222,10 @@
filePath = "Em-call/VC/MainViewController.swift" filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "138" startingLineNumber = "178"
endingLineNumber = "138" endingLineNumber = "178"
landmarkName = "viewWillDisappear(_:)" landmarkName = "unknown"
landmarkType = "7"> landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "01B8D3CA-59D2-4306-A206-96990A93A494"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
landmarkName = "MainViewController"
landmarkType = "3">
<Locations>
<Location
uuid = "01B8D3CA-59D2-4306-A206-96990A93A494 - 487273fd74c401e5"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "Em_call.MainViewController.locationManager.getter : Em_call.LocationMng"
moduleName = "Em-call"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/alexsh/Documents/GitHub/Em-call/Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
offsetFromSymbolStart = "56">
</Location>
<Location
uuid = "01B8D3CA-59D2-4306-A206-96990A93A494 - a5f75be4f7611e4c"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "Em_call.MainViewController.init(nibName: Swift.Optional&lt;Swift.String&gt;, bundle: Swift.Optional&lt;__C.NSBundle&gt;) -&gt; Em_call.MainViewController"
moduleName = "Em-call"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/alexsh/Documents/GitHub/Em-call/Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
offsetFromSymbolStart = "1249">
</Location>
<Location
uuid = "01B8D3CA-59D2-4306-A206-96990A93A494 - fb416bcacc6445ed"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "Em_call.MainViewController.init(coder: __C.NSCoder) -&gt; Swift.Optional&lt;Em_call.MainViewController&gt;"
moduleName = "Em-call"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/alexsh/Documents/GitHub/Em-call/Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
offsetFromSymbolStart = "1184">
</Location>
</Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -349,10 +238,10 @@ ...@@ -349,10 +238,10 @@
filePath = "Em-call/VC/MainViewController.swift" filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "120" startingLineNumber = "141"
endingLineNumber = "120" endingLineNumber = "141"
landmarkName = "viewDidAppear(_:)" landmarkName = "unknown"
landmarkType = "7"> landmarkType = "0">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
...@@ -439,14 +328,14 @@ ...@@ -439,14 +328,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "113CF7DA-1BA8-4DC9-B113-0398D7502652" uuid = "113CF7DA-1BA8-4DC9-B113-0398D7502652"
shouldBeEnabled = "No" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift" filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "49" startingLineNumber = "52"
endingLineNumber = "49" endingLineNumber = "52"
landmarkName = "viewWillDisappear(_:)" landmarkName = "viewWillDisappear(_:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -455,7 +344,7 @@ ...@@ -455,7 +344,7 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "7BF1837A-022E-4B94-8149-74E8C96B61FB" uuid = "7BF1837A-022E-4B94-8149-74E8C96B61FB"
shouldBeEnabled = "No" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/Chat/MessageInputView.swift" filePath = "Em-call/Chat/MessageInputView.swift"
...@@ -487,14 +376,14 @@ ...@@ -487,14 +376,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "BA59213A-9BDF-4BF9-A03E-9486BE8EF9CE" uuid = "BA59213A-9BDF-4BF9-A03E-9486BE8EF9CE"
shouldBeEnabled = "No" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift" filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "69" startingLineNumber = "85"
endingLineNumber = "69" endingLineNumber = "85"
landmarkName = "sendWasTapped(message:)" landmarkName = "sendWasTapped(message:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -519,7 +408,7 @@ ...@@ -519,7 +408,7 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "9EDCFC4A-C54C-4AFA-888D-CB16510E1436" uuid = "9EDCFC4A-C54C-4AFA-888D-CB16510E1436"
shouldBeEnabled = "No" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/Chat/MessageInputView.swift" filePath = "Em-call/Chat/MessageInputView.swift"
...@@ -599,14 +488,14 @@ ...@@ -599,14 +488,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "3EB9BD12-531C-41D8-9CC5-1CA726900CF0" uuid = "3EB9BD12-531C-41D8-9CC5-1CA726900CF0"
shouldBeEnabled = "No" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift" filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "75" startingLineNumber = "91"
endingLineNumber = "75" endingLineNumber = "91"
landmarkName = "received(message:)" landmarkName = "received(message:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
...@@ -659,5 +548,229 @@ ...@@ -659,5 +548,229 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "87B2AA50-8EC0-4A30-B22D-99B39FE056AD"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "89"
endingLineNumber = "89"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "02CC8BF3-1CD9-4F1C-AE0F-3D6E50EA022B"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "73"
endingLineNumber = "73"
landmarkName = "hideKeyboardWhenTappedAround()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "C08BBF9C-0E30-4D97-943B-ED013C8D8888"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "174"
endingLineNumber = "174"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "5855786F-FEEF-46EE-A9EC-AA4DB0FFD8C2"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "272"
endingLineNumber = "272"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "C0F3CBC7-79E8-4CC3-B2B5-566BF5CA794B"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "304"
endingLineNumber = "304"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "518F8619-D98B-4F40-BEC8-420473AEC4BD"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "312"
endingLineNumber = "312"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "C1DF042B-F53E-42BC-ABB9-A85FCFA09B67"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "233"
endingLineNumber = "233"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "7F039346-648C-456E-BB8A-6E53D79B1D2E"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "209"
endingLineNumber = "209"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "F33A9E3E-136F-4F4C-994C-9B7D684117AE"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "79"
endingLineNumber = "79"
landmarkName = "dismissKeyboard()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "9A3BDEB0-DA5E-4BF6-837A-EF1BE86E4ED5"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/ChatViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "37"
endingLineNumber = "37"
landmarkName = "call_Method()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "D14255FD-00B8-49F8-89F4-31CCA9440383"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "265"
endingLineNumber = "265"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "F9F78669-CAFD-43DB-9C08-A95B0ECB38C3"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "264"
endingLineNumber = "264"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "26D9CD1F-5C59-47D4-9391-5981FEB9EBA9"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "239"
endingLineNumber = "239"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "FDCC0BC9-8637-4973-85FC-CAA34EF0FC6F"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "238"
endingLineNumber = "238"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>
//
// CustCellTableViewCell.swift
// Em-call
//
// Created by Alex Sh on 29.03.2022.
//
import UIKit
class CustCellTableViewCell: UITableViewCell {
@IBOutlet weak var custCell: UILabel!
@IBOutlet weak var custCell2: UILabel!
@IBOutlet weak var imageCell: UIImageView!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Union.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Vector.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "electric_map.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "electric_map2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "eva_pin-fill_red.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "eva_pin-fill_red3.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "handyman_map.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "handyman_map2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "plumber_map.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "plumber_map2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "uil_calendar-alt.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "worker_map.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "worker_map2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
This diff is collapsed.
...@@ -41,7 +41,7 @@ extension ChatViewController { ...@@ -41,7 +41,7 @@ extension ChatViewController {
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil)
// loadViews() hideKeyboardWhenTappedAround()
} }
@objc func keyboardWillChange(notification: NSNotification) { @objc func keyboardWillChange(notification: NSNotification) {
......
...@@ -86,7 +86,7 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS ...@@ -86,7 +86,7 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
}, completion: nil) }, completion: nil)
} }
} }
//не используется
func selectWork() { func selectWork() {
if let window = UIApplication.shared.keyWindow { if let window = UIApplication.shared.keyWindow {
blackView.backgroundColor = UIColor(white: 0, alpha: 0.5) blackView.backgroundColor = UIColor(white: 0, alpha: 0.5)
......
...@@ -7,23 +7,128 @@ ...@@ -7,23 +7,128 @@
import UIKit import UIKit
class CallProfiViewController: UIViewController { class KeyValueCell: UITableViewCell {
var keyLabel: UILabel? = nil
// var valueLabel: UILabel? = nil
}
class CallProfiViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
let cellReuseIdentifier = "cell"
var address = "Unknow address"
var dateAndTime = "2022/02/23"
var contact = "+1 123 112 11 22"
var card = "**** **** **** 1234"
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
// Do any additional setup after loading the view. tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier)
//tableView.rowHeight = 45
tableView.estimatedRowHeight = 44
tableView.rowHeight = UITableView.automaticDimension
tableView.delegate = self
tableView.dataSource = self
let item1 = setBarButtom(str: "akar-icons_arrow-left")
self.navigationItem.setLeftBarButtonItems([item1], animated: true)
let item2 = setBarButtom(str: "gg_close")
self.navigationItem.setRightBarButtonItems([item2], animated: true)
} }
func setBarButtom(str:String)->UIBarButtonItem {
let btn1 = UIButton(type: .custom)
btn1.setImage(UIImage(named: str), for: .normal)
btn1.frame = CGRect(x: 0, y: 0, width: 60, height: 60)
btn1.addTarget(self, action: #selector(self.back), for: .touchUpInside)
let item1 = UIBarButtonItem(customView: btn1)
return item1
}
@objc
func back() {
navigationController?.popViewController( animated: true)
}
@IBAction func pressShowMap(_ sender: Any) {
guard let vc = storyboard?.instantiateViewController(withIdentifier: "Logo")
else { return }
(vc as! MainViewController).showWorkerMap = 1
// (vc as! CalendarViewController).delegate = self
navigationController?.pushViewController(vc, animated: true)
// self.present(vc, animated: true, completion: nil)
}
func numberOfSections(in tableView: UITableView) -> Int {
return 4
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 1
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
// let cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell", for: indexPath)
// let cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
//let track = trackList[indexPath.row]
var cell:CustCellTableViewCell
let section = indexPath.section
switch section {
case 0:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell.text = address
case 1:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2.text = dateAndTime
// cell.imageCell.isHidden = true
case 2:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
case 3:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell?.text = card
cell.imageCell?.image = UIImage(named: "Vector")
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
// default: break
default:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
}
// cell.textLabel?.textColor = UIColor.darkGray
//cell.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 13)
return cell
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
} }
*/
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
switch section {
case 0: return ("Work location")
case 1: return ("Date and Time")
case 2: return ("Your contacts")
case 3: return ("Payment")
default: return ("")
}
}
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
// Создаём константу, именна через неё мы будем обращаться к свойствам и изменять их
let header = view as! UITableViewHeaderFooterView
// Установить цвет текста в label
header.textLabel?.textColor = .black
// Установить цвет фона для секции
header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label
// header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 12)
}
} }
...@@ -27,9 +27,12 @@ class ChatViewController: UIViewController { ...@@ -27,9 +27,12 @@ class ChatViewController: UIViewController {
var flagStartChat = 0 var flagStartChat = 0
//debug //debug
let SERVER_NO = 1 let SERVER_NO = 1
/*
override func viewDidLoad() {
super.viewDidLoad()
self.hideKeyboardWhenTappedAround()
}*/
@objc func call_Method () { @objc func call_Method () {
print("Click") print("Click")
} }
...@@ -63,6 +66,19 @@ class ChatViewController: UIViewController { ...@@ -63,6 +66,19 @@ class ChatViewController: UIViewController {
} }
// Put this piece of code anywhere you like
extension UIViewController {
//Now in every UIViewController, all you have to do is call this function:
func hideKeyboardWhenTappedAround() {
let tap = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard))
tap.cancelsTouchesInView = false
view.addGestureRecognizer(tap)
}
@objc func dismissKeyboard() {
view.endEditing(true)
}
}
//MARK - Message Input Bar //MARK - Message Input Bar
extension ChatViewController: MessageInputDelegate { extension ChatViewController: MessageInputDelegate {
func sendWasTapped(message: String) { func sendWasTapped(message: String) {
......
...@@ -30,9 +30,10 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl ...@@ -30,9 +30,10 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
fileprivate var images: [UIImage?] = [] fileprivate var images: [UIImage?] = []
//let cellReuseIdentifier = "cell" //let cellReuseIdentifier = "cell"
@IBOutlet weak var tableView: UITableView! @IBOutlet weak var tableView: UITableView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
...@@ -105,12 +106,10 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl ...@@ -105,12 +106,10 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
else { return } else { return }
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0) settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
glidingView.isHidden = false glidingView.isHidden = false
addPhotoTopConstraint.constant = 98 addPhotoTopConstraint.constant = 102
} }
func loadImages() {
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool { func textFieldShouldReturn(_ textField: UITextField) -> Bool {
descTextView.resignFirstResponder() descTextView.resignFirstResponder()
...@@ -135,11 +134,11 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl ...@@ -135,11 +134,11 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
// Создаём константу, именна через неё мы будем обращаться к свойствам и изменять их // Создаём константу, именна через неё мы будем обращаться к свойствам и изменять их
let header = view as! UITableViewHeaderFooterView let header = view as! UITableViewHeaderFooterView
// Установить цвет текста в label // Установить цвет текста в label
header.textLabel?.textColor = .darkGray header.textLabel?.textColor = .black
// Установить цвет фона для секции // Установить цвет фона для секции
header.tintColor = UIColor.white header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label // Установить шрифт и размер шрифта для label
header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 15) // header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 15)
} }
...@@ -155,18 +154,30 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl ...@@ -155,18 +154,30 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath) // let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
//let track = trackList[indexPath.row] var cell:CustCellTableViewCell
let section = indexPath.section let section = indexPath.section
switch section { switch section {
case 0: cell.textLabel?.text = address case 0:
case 1: cell.textLabel?.text = dateAndTime cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
case 2: cell.textLabel?.text = contact cell.custCell.text = address
case 3: cell.textLabel?.text = card case 1:
default: break cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell.text = dateAndTime // cell.imageCell.isHidden = true
cell.imageCell?.image = UIImage(named: "uil_calendar-alt")
case 2:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
case 3:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell?.text = card
cell.imageCell?.image = UIImage(named: "Vector")
default:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
} }
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
cell.textLabel?.font = UIFont(name: "Roboto", size: 13) // cell.textLabel?.font = UIFont(name: "Roboto", size: 13)
return cell return cell
} }
......
...@@ -13,7 +13,7 @@ class EmerHandViewController: UIViewController, UITableViewDataSource, ...@@ -13,7 +13,7 @@ class EmerHandViewController: UIViewController, UITableViewDataSource,
@IBOutlet weak var tableView: UITableView! @IBOutlet weak var tableView: UITableView!
@IBOutlet weak var addressView: UIView! @IBOutlet weak var addressView: UIView!
let trackList = Track.getTrackList() // let trackList = Track.getTrackList()
let cellReuseIdentifier = "cell" let cellReuseIdentifier = "cell"
var address = "Unknow address" var address = "Unknow address"
var dateAndTime = "2022/02/23" var dateAndTime = "2022/02/23"
...@@ -87,7 +87,7 @@ class EmerHandViewController: UIViewController, UITableViewDataSource, ...@@ -87,7 +87,7 @@ class EmerHandViewController: UIViewController, UITableViewDataSource,
return 1 return 1
} }
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
switch section { switch section {
case 0: return ("Payment") case 0: return ("Payment")
/* case 1: return ("Date and Time") case 2: return ("Your contacts") /* case 1: return ("Date and Time") case 2: return ("Your contacts")
......
...@@ -13,6 +13,9 @@ class HandmanViewController: UIViewController, UITableViewDataSource, ...@@ -13,6 +13,9 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
UITableViewDelegate, UITextViewDelegate UITableViewDelegate, UITextViewDelegate
{ {
var settingsLauncher:SettingsLauncher = SettingsLauncher() var settingsLauncher:SettingsLauncher = SettingsLauncher()
@IBOutlet weak var addPhotoTopConstraint: NSLayoutConstraint!
@IBOutlet weak var tableView: UITableView! @IBOutlet weak var tableView: UITableView!
@IBOutlet weak var descTextView: UITextView! @IBOutlet weak var descTextView: UITextView!
...@@ -45,19 +48,42 @@ class HandmanViewController: UIViewController, UITableViewDataSource, ...@@ -45,19 +48,42 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
settingsLauncher.delegate = self settingsLauncher.delegate = self
setup() setup()
glidingView.isHidden = true
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewWillAppear(animated)
collectionView.reloadData() collectionView.reloadData()
collectionView.collectionViewLayout.invalidateLayout() collectionView.collectionViewLayout.invalidateLayout()
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)]
title = "Handyman"
let item1 = setBarButtom(str: "akar-icons_arrow-left")
self.navigationItem.setLeftBarButtonItems([item1], animated: true)
let item2 = setBarButtom(str: "gg_close")
self.navigationItem.setRightBarButtonItems([item2], animated: true)
} }
func setBarButtom(str:String)->UIBarButtonItem {
let btn1 = UIButton(type: .custom)
btn1.setImage(UIImage(named: str), for: .normal)
btn1.frame = CGRect(x: 0, y: 0, width: 60, height: 60)
btn1.addTarget(self, action: #selector(self.back), for: .touchUpInside)
let item1 = UIBarButtonItem(customView: btn1)
return item1
}
@objc
func back() {
navigationController?.popViewController( animated: true)
}
@IBAction func pressAddPhoto(_ sender: Any) { @IBAction func pressAddPhoto(_ sender: Any) {
guard let navVC = self.navigationController guard let navVC = self.navigationController
else { return } else { return }
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0) settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
glidingView.isHidden = false
addPhotoTopConstraint.constant = 102
} }
@IBAction func BOOK_NOW_Click(_ sender: Any) { @IBAction func BOOK_NOW_Click(_ sender: Any) {
...@@ -84,7 +110,7 @@ class HandmanViewController: UIViewController, UITableViewDataSource, ...@@ -84,7 +110,7 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
// Установить цвет фона для секции // Установить цвет фона для секции
header.tintColor = UIColor.white header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label // Установить шрифт и размер шрифта для label
header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 15) // header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 15)
} }
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
...@@ -106,15 +132,27 @@ class HandmanViewController: UIViewController, UITableViewDataSource, ...@@ -106,15 +132,27 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath) // let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
//let track = trackList[indexPath.row] var cell:CustCellTableViewCell
let section = indexPath.section let section = indexPath.section
switch section { switch section {
case 0: cell.textLabel?.text = address case 0:
case 1: cell.textLabel?.text = dateAndTime cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
case 2: cell.textLabel?.text = contact cell.custCell.text = address
case 3: cell.textLabel?.text = card case 1:
default: break cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell.text = dateAndTime // cell.imageCell.isHidden = true
cell.imageCell?.image = UIImage(named: "uil_calendar-alt")
case 2:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
case 3:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell?.text = card
cell.imageCell?.image = UIImage(named: "Vector")
default:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
} }
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
return cell return cell
......
...@@ -8,24 +8,36 @@ ...@@ -8,24 +8,36 @@
import UIKit import UIKit
import MapKit import MapKit
class CustomPointAnnotation: MKPointAnnotation {
var imageName: String!
}
class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationManagerDelegate class MainViewController: UIViewController, UITextFieldDelegate, MKMapViewDelegate //, CLLocationManagerDelegate
{ {
@IBOutlet weak var text_Location: UITextField! @IBOutlet weak var text_Location: UITextField!
var count:Int = 0 var count:Int = 0
// var settingsLauncher:SettingsLauncher = SettingsLauncher() // var settingsLauncher:SettingsLauncher = SettingsLauncher()
var bottomSheetVC:UIViewController? = nil var bottomSheetVC:UIViewController? = nil
var selRow:Int = 0 var selRow:Int = 0
var showWorkerMap = 0
@IBOutlet weak var buttonWhatDo: UIButton!
@IBOutlet weak var imgMicrophon: UIImageView!
@IBOutlet weak var bottomView: UIView! @IBOutlet weak var bottomView: UIView!
// @IBOutlet weak var swipeableView: SwipeableView! @IBOutlet weak var buttonDoIt: UIButton!
// @IBOutlet weak var swipeableView: MKMapView!
var showAlert:ShowAlert = ShowAlert() var showAlert:ShowAlert = ShowAlert()
var arrayCoordMapWorker = [(51.51455283,-0.12197132),(51.5121277776,-0.120492655896),(51.515234854,-0.115117274),(51.5103413836,-0.1215190233),(51.51304096,-0.126825408),
(51.5089155267,-0.1272603095),
/*worker go*/(51.51379832395,-0.123224424264)]
var nameImageIconMap = ["electric_map2","plumber_map2","handyman_map2","worker_map2"]
var indexNameImageIconMap = 0
@IBOutlet weak var mapView: MKMapView! @IBOutlet weak var mapView: MKMapView!
//let locationManager = LocationMng(mainView:self)
let locationManager = LocationMng() let locationManager = LocationMng()
// var detailsController:MainChildViewController? // var detailsController:MainChildViewController?
@IBOutlet weak var buttonEmerElectric: UIButton! @IBOutlet weak var buttonEmerElectric: UIButton!
@IBOutlet weak var buttonLockUp: UIButton! @IBOutlet weak var buttonLockUp: UIButton!
...@@ -61,15 +73,20 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -61,15 +73,20 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
let pressPoint = (sender as AnyObject).location(in:mapView) let pressPoint = (sender as AnyObject).location(in:mapView)
// let pressCoordinate = mapView.convert(pressPoint, to: mapView) // let pressCoordinate = mapView.convert(pressPoint, to: mapView)
let pressCoordinate = mapView.convert(pressPoint, toCoordinateFrom: mapView) let pressCoordinate = mapView.convert(pressPoint, toCoordinateFrom: mapView)
removeSpecificAnnotation(titleAnnot: "My place")
let myposannot = MKPointAnnotation() let myposannot = CustomPointAnnotation()
myposannot.coordinate = pressCoordinate myposannot.coordinate = pressCoordinate
myposannot.title = "My place" myposannot.title = "My place"
myposannot.subtitle = "I am here!" myposannot.subtitle = "I am here!"
mapView.addAnnotation(myposannot) myposannot.imageName = "eva_pin-fill_red3"
mapView.addAnnotation(myposannot)
let getLat: CLLocationDegrees = pressCoordinate.latitude //let countAnnot = mapView.annotations.count
let anno = findSpecificAnnotation(titleAnnot: "My place")
if anno != nil {
mapView.selectAnnotation(anno as! MKAnnotation, animated: true)
}
let getLat: CLLocationDegrees = pressCoordinate.latitude
let getLon: CLLocationDegrees = pressCoordinate.longitude let getLon: CLLocationDegrees = pressCoordinate.longitude
let locationTouch: CLLocation = CLLocation(latitude: getLat, longitude: getLon) let locationTouch: CLLocation = CLLocation(latitude: getLat, longitude: getLon)
coordinateToAdress(locationTouch) coordinateToAdress(locationTouch)
...@@ -78,16 +95,7 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -78,16 +95,7 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
// setupBackButton() //London coordinates
// self.navigationItem.titleView?.isHidden = false
/* self.title = "LOGO"
self.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor : UIColor.white]
self.navigationController?.navigationBar.barTintColor = UIColor.black
self.navigationItem.title = "LOGO"
self.navigationController?.navigationBar.topItem?.title = "Logo"
self.navigationController?.navigationItem.title = "Logo"*/
//London coordinates
let initialLocation = CLLocation(latitude: 51.509865, longitude: -0.118092) let initialLocation = CLLocation(latitude: 51.509865, longitude: -0.118092)
mapView.centerToLocation(initialLocation) mapView.centerToLocation(initialLocation)
buttonEmergency.isHidden = false buttonEmergency.isHidden = false
...@@ -95,17 +103,30 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -95,17 +103,30 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
buttonEmerElectric.isHidden = true buttonEmerElectric.isHidden = true
buttonEmerPlumber.isHidden = true buttonEmerPlumber.isHidden = true
buttonEmerHandman.isHidden = true buttonEmerHandman.isHidden = true
text_Location.delegate = self text_Location.delegate = self
self.mapView.delegate = self
/* /*
let annotations = MKPointAnnotation() let annotations = MKPointAnnotation()
annotations.title = "Set my location" annotations.title = "Set my location"
annotations.coordinate = CLLocationCoordinate2D(latitude: 51.509865, longitude: -0.118092) annotations.coordinate = CLLocationCoordinate2D(latitude: 51.509865, longitude: -0.118092)
mapView.addAnnotation(annotations)*/ mapView.addAnnotation(annotations)*/ // settingsLauncher.delegate = self
// settingsLauncher.delegate = self
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)] navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)]
// let leftBarButtonItem = UIBarButtonItem(image: UIImage(contentsOfFile: "akar-icons_arrow-left"), style: .plain, target: self, action:Selector("pressEmerElectric")) // let leftBarButtonItem = UIBarButtonItem(image: UIImage(contentsOfFile: "akar-icons_arrow-left"), style: .plain, target: self, action:Selector("pressEmerElectric")) // self.navigationItem.leftBarButtonItem = leftBarButtonItem
// self.navigationItem.leftBarButtonItem = leftBarButtonItem // self.locationManager.delegate = self
for coord in arrayCoordMapWorker {
let annotations = CustomPointAnnotation()
annotations.coordinate = CLLocationCoordinate2D(latitude:
coord.0, longitude: coord.1)
annotations.imageName = nameImageIconMap[indexNameImageIconMap]
indexNameImageIconMap = indexNameImageIconMap + 1
if indexNameImageIconMap > 2 {
indexNameImageIconMap = 0 }
annotations.title = "Worker Place"
mapView.addAnnotation(annotations)
}
} }
override func viewDidAppear(_ animated:Bool) { override func viewDidAppear(_ animated:Bool) {
...@@ -118,11 +139,30 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -118,11 +139,30 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
buttonEmerHandman.isHidden = true buttonEmerHandman.isHidden = true
self.navigationController?.setNavigationBarHidden(true, animated: animated) self.navigationController?.setNavigationBarHidden(true, animated: animated)
if bottomSheetVC != nil { if bottomSheetVC != nil {
//sendSubviewToBack(_ view: UIView) //sendSubviewToBack(_ view: UIView)
self.view.sendSubviewToBack(bottomSheetVC!.view) self.view.sendSubviewToBack(bottomSheetVC!.view)
// self.view.willRemoveSubview(bottomSheetVC!.view) // self.view.willRemoveSubview(bottomSheetVC!.view)
bottomSheetVC!.removeFromParent() bottomSheetVC!.removeFromParent()
} }
if showWorkerMap == 1 //переход из CallProfiViewController
{
let annotations = CustomPointAnnotation()
let coord = arrayCoordMapWorker[3]
annotations.coordinate = CLLocationCoordinate2D(latitude: coord.0, longitude: coord.1)
annotations.imageName = nameImageIconMap[3]
mapView.addAnnotation(annotations)
text_Location.isHidden = true
buttonWhatDo.isHidden = true
buttonDoIt.isHidden = true
imgMicrophon.isHidden = true
} else {
text_Location.isHidden = false
buttonWhatDo.isHidden = false
buttonDoIt.isHidden = false
imgMicrophon.isHidden = false
}
// mapView.selectAnnotation(mapView.annotations[0], animated: true)
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
...@@ -137,11 +177,32 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -137,11 +177,32 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
override func viewWillDisappear(_ animated: Bool) { override func viewWillDisappear(_ animated: Bool) {
self.view.alpha = 1.0 self.view.alpha = 1.0
count = 0 count = 0
showWorkerMap = 0
} }
@IBAction func pressWhatDo(_ sender: Any) { @IBAction func pressWhatDo(_ sender: Any) {
addBottomSheetView() addBottomSheetView()
} }
func removeSpecificAnnotation(titleAnnot:String) {
for annotation in self.mapView.annotations {
if let title = annotation.title, title == titleAnnot {
self.mapView.removeAnnotation(annotation)
}
}
}
func findSpecificAnnotation(titleAnnot:String)->AnyObject? {
// var annot:MKAnnotation? = nil
for annotation in self.mapView.annotations {
if let title = annotation.title, title == titleAnnot {
// self.mapView.removeAnnotation(annotation)
return annotation
}
}
return nil
}
func addBottomSheetView() { func addBottomSheetView() {
// 1- Init bottomSheetVC // 1- Init bottomSheetVC
...@@ -162,22 +223,7 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -162,22 +223,7 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
} }
// bottomSheetVC.view.frame = CGRect(x: 0, y: 0, width: width, height: height) // bottomSheetVC.view.frame = CGRect(x: 0, y: 0, width: width, height: height)
} }
/*
@IBAction func pressRowSelect(_ sender: Any) {
// guard let navVC = self.navigationController
// else { return }
// settingsLauncher.showSettings(navigVC: navVC,dispatcher:1)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc:UIViewController
if #available(iOS 13.0, *) {
vc = storyboard.instantiateViewController(identifier: "ListWork") as! ListWorkViewController
} else {
vc = storyboard.instantiateViewController(withIdentifier: "ListWork")
}
navigationController?.pushViewController(vc, animated: true)
}*/
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) { func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
/* let item = UIBarButtonItem(title: "LOGO", style: .plain, target: nil, action: nil) /* let item = UIBarButtonItem(title: "LOGO", style: .plain, target: nil, action: nil)
viewController.navigationItem.backBarButtonItem = item*/ viewController.navigationItem.backBarButtonItem = item*/
...@@ -187,20 +233,38 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM ...@@ -187,20 +233,38 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
text_Location.resignFirstResponder() text_Location.resignFirstResponder()
} }
func mapView(mapViewAnnot: MKMapView!,ViewForAnnotation annotation: MKAnnotation!) ->MKAnnotationView{ //func mapView(mapViewAnnot: MKMapView!,ViewForAnnotation annotation: MKAnnotation!) ->MKAnnotationView{
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) ->MKAnnotationView? {
if !(annotation is CustomPointAnnotation) {
return MKAnnotationView(annotation: annotation, reuseIdentifier: "pin")
}
let reuseId = "pin" let reuseId = "pin"
var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView
if pinView == nil {
if(pinView == nil){ pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId) pinView?.canShowCallout = true
pinView!.canShowCallout = true }
pinView!.animatesDrop = true else {
pinView!.pinTintColor = .red pinView?.annotation = annotation
} else { pinView?.canShowCallout = true
pinView!.annotation = annotation // pinView.animatesDrop = true
} // pinView.pinTintColor = UIColor.darkGrayColor
pinView?.isDraggable = true
pinView?.accessibilityLabel = "hello"
let btn = UIButton(type: .detailDisclosure)
pinView?.rightCalloutAccessoryView = btn
}
/*var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView
if(pinView == nil){ pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
pinView!.canShowCallout = true pinView!.animatesDrop = true pinView!.pinTintColor = .red
} else { pinView!.annotation = annotation }*/
let cpa = annotation as! CustomPointAnnotation
if cpa.imageName != "eva_pin-fill_red3" {
pinView!.image = UIImage(named:cpa.imageName)
} else {
pinView!.image = UIImage(named: "eva_pin-fill_red3")
}
return pinView! return pinView!
} }
......
...@@ -12,7 +12,7 @@ protocol MapViewControllerDelegate:class { ...@@ -12,7 +12,7 @@ protocol MapViewControllerDelegate:class {
func delegateClick(text:String) func delegateClick(text:String)
} }
class MapViewController: UIViewController { class MapViewController: UIViewController, MKMapViewDelegate {
@IBOutlet weak var addressLocation: UITextField! @IBOutlet weak var addressLocation: UITextField!
@IBAction func pressSavePosition(_ sender: Any) { @IBAction func pressSavePosition(_ sender: Any) {
...@@ -26,21 +26,40 @@ class MapViewController: UIViewController { ...@@ -26,21 +26,40 @@ class MapViewController: UIViewController {
@IBOutlet weak var mapView: MKMapView! @IBOutlet weak var mapView: MKMapView!
let locationManager = LocationMng() let locationManager = LocationMng()
@IBOutlet weak var textLocation: UITextField! @IBOutlet weak var textLocation: UITextField!
var arrayCoordMapWorker = [(51.51455283,-0.12197132),(51.5121277776,-0.120492655896),(51.515234854,-0.115117274),(51.5103413836,-0.1215190233),(51.51304096,-0.126825408),
(51.5089155267,-0.1272603095),
/*worker go*/(51.51379832395,-0.123224424264)]
var nameImageIconMap = ["electric_map2","plumber_map2","handyman_map2","worker_map2"]
var indexNameImageIconMap = 0
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)]
let initialLocation = CLLocation(latitude: 51.509865, longitude: -0.118092) let initialLocation = CLLocation(latitude: 51.509865, longitude: -0.118092)
self.mapView.delegate = self
mapView.centerToLocation(initialLocation) mapView.centerToLocation(initialLocation)
let annotations = MKPointAnnotation() let annotations = MKPointAnnotation()
annotations.title = "Set my location" annotations.title = "Set my location"
annotations.coordinate = CLLocationCoordinate2D(latitude: annotations.coordinate = CLLocationCoordinate2D(latitude:
51.509865, longitude: -0.118092) 51.509865, longitude: -0.118092)
mapView.addAnnotation(annotations) mapView.addAnnotation(annotations)
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)]
for coord in arrayCoordMapWorker {
let annotations = CustomPointAnnotation()
annotations.coordinate = CLLocationCoordinate2D(latitude:
coord.0, longitude: coord.1)
annotations.imageName = nameImageIconMap[indexNameImageIconMap]
indexNameImageIconMap = indexNameImageIconMap + 1
if indexNameImageIconMap > 2 {
indexNameImageIconMap = 0 }
mapView.addAnnotation(annotations)
}
} }
override func viewDidAppear(_ animated:Bool) { override func viewDidAppear(_ animated:Bool) {
super.viewDidAppear(animated) super.viewDidAppear(animated)
locationManager.checkLocationEnable() locationManager.checkLocationEnable()
...@@ -67,22 +86,27 @@ class MapViewController: UIViewController { ...@@ -67,22 +86,27 @@ class MapViewController: UIViewController {
} }
func mapView(mapViewAnnot: MKMapView!,ViewForAnnotation annotation: MKAnnotation!) ->MKAnnotationView{ func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) ->MKAnnotationView? {
if !(annotation is CustomPointAnnotation) {
return MKAnnotationView(annotation: annotation, reuseIdentifier: "pin")
}
let reuseId = "pin" let reuseId = "pin"
var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId)
if pinView == nil {
pinView = MKAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
pinView?.canShowCallout = true
}
else {
pinView?.annotation = annotation
}
let cpa = annotation as! CustomPointAnnotation
pinView!.image = UIImage(named:cpa.imageName)
if(pinView == nil){
pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
pinView!.canShowCallout = true
pinView!.animatesDrop = true
pinView!.pinTintColor = .red
} else {
pinView!.annotation = annotation
}
return pinView! return pinView!
} }
// Преобразуем координаты в Адрес // Преобразуем координаты в Адрес
func coordinateToAdress(_ locations: CLLocation) { func coordinateToAdress(_ locations: CLLocation) {
CLGeocoder().reverseGeocodeLocation(locations /*.last!*/) { (placemarks, error) in CLGeocoder().reverseGeocodeLocation(locations /*.last!*/) { (placemarks, error) in
......
...@@ -11,7 +11,7 @@ import UIKit ...@@ -11,7 +11,7 @@ import UIKit
class PlumViewController: UIViewController, UITableViewDataSource, class PlumViewController: UIViewController, UITableViewDataSource,
UITableViewDelegate UITableViewDelegate
{ {
// let trackList = Track.getTrackList()
let cellReuseIdentifier = "cell" let cellReuseIdentifier = "cell"
var address = "Unknow address" var address = "Unknow address"
var dateAndTime = "2022/02/23" var dateAndTime = "2022/02/23"
......
...@@ -16,6 +16,7 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie ...@@ -16,6 +16,7 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie
@IBOutlet weak var glidingView: GlidingCollection! @IBOutlet weak var glidingView: GlidingCollection!
fileprivate var collectionView: UICollectionView! fileprivate var collectionView: UICollectionView!
@IBOutlet weak var addPhotoTopConstraint: NSLayoutConstraint!
var selRow:Int = 0 var selRow:Int = 0
// let imagePickerController = UIImagePickerController() // let imagePickerController = UIImagePickerController()
...@@ -26,28 +27,61 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie ...@@ -26,28 +27,61 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie
var card = "**** **** **** 1234" var card = "**** **** **** 1234"
fileprivate var images: [UIImage?] = [] fileprivate var images: [UIImage?] = []
@IBOutlet weak var tableview: UITableView!
@IBOutlet weak var textViewDesc: UITextView! @IBOutlet weak var textViewDesc: UITextView!
@IBOutlet weak var tableView: UITableView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier) self.tableview.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier)
tableView.rowHeight = 65 tableview.rowHeight = 65
// descTextView.delegate = self
tableView.delegate = self tableview.delegate = self
tableView.dataSource = self tableview.dataSource = self
textViewDesc.delegate = self textViewDesc.delegate = self
settingsLauncher.delegate = self settingsLauncher.delegate = self
//glide setup //glide setup
setup() setup()
glidingView.isHidden = true
} }
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
collectionView.reloadData()
collectionView.collectionViewLayout.invalidateLayout()
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:UIColor(red: 0 / 255, green: 0 / 255, blue: 0 / 255, alpha: 1.0)]
title = "Plumber"
let item1 = setBarButtom(str: "akar-icons_arrow-left")
self.navigationItem.setLeftBarButtonItems([item1], animated: true)
let item2 = setBarButtom(str: "gg_close")
self.navigationItem.setRightBarButtonItems([item2], animated: true)
}
func setBarButtom(str:String)->UIBarButtonItem {
let btn1 = UIButton(type: .custom)
btn1.setImage(UIImage(named: str), for: .normal)
btn1.frame = CGRect(x: 0, y: 0, width: 60, height: 60)
btn1.addTarget(self, action: #selector(self.back), for: .touchUpInside)
let item1 = UIBarButtonItem(customView: btn1)
return item1
}
@objc
func back() {
navigationController?.popViewController( animated: true)
}
@IBAction func pressAddPhoto(_ sender: Any) { @IBAction func pressAddPhoto(_ sender: Any) {
guard let navVC = self.navigationController guard let navVC = self.navigationController
else { return } else { return }
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0) settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
glidingView.isHidden = false
addPhotoTopConstraint.constant = 102
} }
@IBAction func BOOK_NOW_Click(_ sender: Any) { @IBAction func BOOK_NOW_Click(_ sender: Any) {
...@@ -84,15 +118,27 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie ...@@ -84,15 +118,27 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath) // let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
//let track = trackList[indexPath.row] var cell:CustCellTableViewCell
let section = indexPath.section let section = indexPath.section
switch section { switch section {
case 0: cell.textLabel?.text = address case 0:
case 1: cell.textLabel?.text = dateAndTime cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
case 2: cell.textLabel?.text = contact cell.custCell.text = address
case 3: cell.textLabel?.text = card case 1:
default: break cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell.text = dateAndTime // cell.imageCell.isHidden = true
cell.imageCell?.image = UIImage(named: "uil_calendar-alt")
case 2:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
case 3:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell?.text = card
cell.imageCell?.image = UIImage(named: "Vector")
default:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
} }
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
return cell return cell
...@@ -128,7 +174,7 @@ extension PlumbersViewController:MapViewControllerDelegate { ...@@ -128,7 +174,7 @@ extension PlumbersViewController:MapViewControllerDelegate {
func delegateClick(text:String) { func delegateClick(text:String) {
address = text address = text
// NotificationCenter.default.post(name: NSNotification.Name(rawValue: "delegateClick"), object: nil) // NotificationCenter.default.post(name: NSNotification.Name(rawValue: "delegateClick"), object: nil)
tableView.reloadData() tableview.reloadData()
} }
} }
extension PlumbersViewController:CalendarViewControllerDelegate { extension PlumbersViewController:CalendarViewControllerDelegate {
...@@ -144,7 +190,7 @@ extension PlumbersViewController:CalendarViewControllerDelegate { ...@@ -144,7 +190,7 @@ extension PlumbersViewController:CalendarViewControllerDelegate {
default: default:
break break
} }
tableView.reloadData() tableview.reloadData()
} }
} }
// //
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class ProfileViewController: UIViewController,UITableViewDataSource, UITableViewDelegate, class ProfileViewController: UIViewController,UITableViewDataSource, UITableViewDelegate,
UIImagePickerControllerDelegate, UINavigationControllerDelegate UIImagePickerControllerDelegate, UINavigationControllerDelegate
{ {
let cellReuseIdentifier = "cell" let cellReuseIdentifier = "cell"
var name = "Any name" var name = "Any name"
...@@ -19,17 +19,20 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView ...@@ -19,17 +19,20 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView
@IBOutlet weak var roundImage: UIImageView! @IBOutlet weak var roundImage: UIImageView!
@IBOutlet weak var tableView: UITableView! // @IBOutlet weak var tableview: UITableView!
@IBOutlet weak var tableview: UITableView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
imagePickerController.delegate = self imagePickerController.delegate = self
imagePickerController.allowsEditing = true imagePickerController.allowsEditing = true
tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier) tableview.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier)
tableView.rowHeight = 45 tableview.estimatedRowHeight = 44
tableview.rowHeight = UITableView.automaticDimension
tableView.delegate = self tableview.delegate = self
tableView.dataSource = self tableview.dataSource = self
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
} }
...@@ -93,17 +96,30 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView ...@@ -93,17 +96,30 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath) // let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
//let track = trackList[indexPath.row] var cell:CustCellTableViewCell
let section = indexPath.section let section = indexPath.section
switch section { switch section {
// case 0: cell.textLabel?.text = "" case 0:
// return cell cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
case 0: cell.textLabel?.text = name cell.custCell.text = name
case 1: cell.textLabel?.text = email case 1:
case 2: cell.textLabel?.text = contact cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
case 3: cell.textLabel?.text = card cell.custCell2.text = email // cell.imageCell.isHidden = true
default: break case 2:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
case 3:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell") as! CustCellTableViewCell
cell.custCell?.text = card
cell.imageCell?.image = UIImage(named: "Vector")
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
// default: break
default:
cell = tableView.dequeueReusableCell(withIdentifier: "cust_cell2") as! CustCellTableViewCell
cell.custCell2?.text = contact
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
} }
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
return cell return cell
...@@ -113,8 +129,7 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView ...@@ -113,8 +129,7 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView
// let rets:String? = mainTable.tableView(tableView, titleForHeaderInSection: section) // let rets:String? = mainTable.tableView(tableView, titleForHeaderInSection: section)
// return rets! // return rets!
switch section { switch section {
// case 0: return ("")
// return ("ico")
case 0: return ("Name") case 0: return ("Name")
case 1: return ("Your e-mail") case 1: return ("Your e-mail")
case 2: return ("Your contacts") case 2: return ("Your contacts")
...@@ -128,33 +143,21 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView ...@@ -128,33 +143,21 @@ class ProfileViewController: UIViewController,UITableViewDataSource, UITableView
var vc:UIViewController var vc:UIViewController
vc = storyboard.instantiateViewController(withIdentifier: "DataProfile") vc = storyboard.instantiateViewController(withIdentifier: "DataProfile")
(vc as! DataProfileViewController).delegate = self (vc as! DataProfileViewController).delegate = self
/// let nameXibName = ["Map","Calendar"]
// let section = indexPath.section
navigationController?.pushViewController(vc, animated: true) navigationController?.pushViewController(vc, animated: true)
/* switch section //if indexPath.row == 0
{
case 0:
navigationController?.pushViewController(vc, animated: true)
return
case 1:
navigationController?.pushViewController(vc, animated: true)
case 2:
navigationController?.pushViewController(vc, animated: true)
case 3:
navigationController?.pushViewController(vc, animated: true)
default: return
}*/
} }
/*
// MARK: - Navigation func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
// Создаём константу, именна через неё мы будем обращаться к свойствам и изменять их
// In a storyboard-based application, you will often want to do a little preparation before navigation let header = view as! UITableViewHeaderFooterView
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Установить цвет текста в label
// Get the new view controller using segue.destination. header.textLabel?.textColor = .black
// Pass the selected object to the new view controller. // Установить цвет фона для секции
header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label
// header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 12)
} }
*/
} }
/*extension ProfileViewController:MapViewControllerDelegate { /*extension ProfileViewController:MapViewControllerDelegate {
...@@ -179,7 +182,7 @@ extension ProfileViewController:DataProfileViewControllerDelegate { ...@@ -179,7 +182,7 @@ extension ProfileViewController:DataProfileViewControllerDelegate {
default: default:
break break
} }
tableView.reloadData() tableview.reloadData()
} }
} }
...@@ -7,16 +7,28 @@ ...@@ -7,16 +7,28 @@
import UIKit import UIKit
class VKBookingViewController: UIViewController,UITableViewDataSource, UITableViewDelegate { class VKBookingViewController: UIViewController {
@IBOutlet weak var emergency: UILabel! @IBOutlet weak var emergency: UILabel!
@IBOutlet weak var worker: UILabel! @IBOutlet weak var worker: UILabel!
@IBOutlet weak var workLocation: UILabel! @IBOutlet weak var workLocation: UILabel!
@IBOutlet weak var date_time: UILabel! @IBOutlet weak var date_time: UILabel!
@IBOutlet weak var cost: UILabel! @IBOutlet weak var cost: UILabel!
@IBOutlet weak var costType: UILabel! @IBOutlet weak var costType: UILabel!
@IBOutlet weak var viewBut: UIView!
@IBOutlet weak var butCost: UILabel!
@IBOutlet weak var butPrice: UILabel!
@IBOutlet weak var viewTop: UIView!
@IBOutlet weak var buttonTop: UIButton!
@IBAction func pressButtonTop(_ sender: Any) {
guard let vc = storyboard?.instantiateViewController(withIdentifier: "Call_Prof")
else { return }
// (vc as! MainViewController).showWorkerMap = 1
navigationController?.pushViewController(vc, animated: true)
}
@IBOutlet weak var tableViewWork: UITableView!
@IBOutlet weak var segmentControl: UISegmentedControl! @IBOutlet weak var segmentControl: UISegmentedControl!
let cellReuseIdentifier = "cell" let cellReuseIdentifier = "cell"
...@@ -24,13 +36,11 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi ...@@ -24,13 +36,11 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi
super.viewDidLoad() super.viewDidLoad()
self.navigationItem.title = "BOOKING" self.navigationItem.title = "BOOKING"
segmentControl.addTarget(self, action: #selector(segmentAction(_:)), for: .valueChanged) segmentControl.addTarget(self, action: #selector(segmentAction(_:)), for: .valueChanged)
self.tableViewWork.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier) viewBut.isHidden = true
tableViewWork.rowHeight = 60 butCost.isHidden = true
butPrice.isHidden = true
tableViewWork.delegate = self viewTop.isHidden = false
tableViewWork.dataSource = self hideKeyboardWhenTappedAround()
tableViewWork.isHidden = true
// self.title = "Booking"
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
...@@ -43,6 +53,7 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi ...@@ -43,6 +53,7 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi
let item2 = setBarButtom(str: "gg_close") let item2 = setBarButtom(str: "gg_close")
self.navigationItem.setRightBarButtonItems([item2], animated: true) self.navigationItem.setRightBarButtonItems([item2], animated: true)
} }
func setBarButtom(str:String)->UIBarButtonItem { func setBarButtom(str:String)->UIBarButtonItem {
...@@ -61,51 +72,29 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi ...@@ -61,51 +72,29 @@ class VKBookingViewController: UIViewController,UITableViewDataSource, UITableVi
@objc func segmentAction(_ segmentedControl: UISegmentedControl) { @objc func segmentAction(_ segmentedControl: UISegmentedControl) {
switch (segmentedControl.selectedSegmentIndex) { switch (segmentedControl.selectedSegmentIndex) {
case 0: case 0:
tableViewWork.isHidden = true //tableViewWork.isHidden = true
workLocation.text = "22 Dorlan ave, Manchester" workLocation.text = "22 Dorlan ave, Manchester"
date_time.text = "As soon as possible" date_time.text = "As soon as possible"
cost.text = "100" cost.text = "$100"
costType.text = "Approximate price" costType.text = "Approximate price"
viewBut.isHidden = true
butCost.isHidden = true
butPrice.isHidden = true
break // Uno break // Uno
case 1: case 1:
tableViewWork.isHidden = false viewBut.isHidden = false
workLocation.text = "22 Dorlan ave" workLocation.text = "22 Dorlan ave"
date_time.text = "18 feb, 18:00" date_time.text = "18 feb, 18:00"
cost.text = "200" cost.text = "$200"
costType.text = "Total price" costType.text = "Total price"
butCost.isHidden = false
butPrice.isHidden = false
break // Dos break // Dos
default: default:
break break
} }
} }
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 2
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath)
// let track = trackList[indexPath.row]
/* var content = cell.defaultContentConfiguration()
content.text = "Work"
content.secondaryText = "___________"
cell.contentConfiguration = content
*/
cell.textLabel?.text = "Work"
cell.detailTextLabel?.text = "___________"
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
return cell
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment