20_03_2022

20_03_2022
parent 27f01c03
File added
......@@ -16,6 +16,10 @@
D514861927BBEFC8006830A3 /* Track.swift in Sources */ = {isa = PBXBuildFile; fileRef = D514861827BBEFC8006830A3 /* Track.swift */; };
D51D33FD27BF8836008D5065 /* MapViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D51D33FC27BF8836008D5065 /* MapViewController.swift */; };
D51D340227BF98B9008D5065 /* CalendarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D51D340127BF98B9008D5065 /* CalendarViewController.swift */; };
D53F55FB27E5D12700C18B2A /* SwipeableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F55F927E5D12700C18B2A /* SwipeableView.swift */; };
D53F55FC27E5D12700C18B2A /* SwipeableItems.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */; };
D53F560B27E62D7600C18B2A /* SmallListWorkVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */; };
D53F560C27E62D7600C18B2A /* SmallListWorkVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */; };
D558EA5C27BE4A6C003C4578 /* HandmanViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA5B27BE4A6C003C4578 /* HandmanViewController.swift */; };
D558EA6127BE4C65003C4578 /* EmerHandViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D558EA6027BE4C65003C4578 /* EmerHandViewController.swift */; };
D55E88F327DE124B00DB59E7 /* GlidingCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */; };
......@@ -44,6 +48,8 @@
D5B0201A27C382A600C4BA4F /* Artwork.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5B0201927C382A600C4BA4F /* Artwork.swift */; };
D5C001D027DA60CB0045F6BE /* StartNavigationVCViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5C001CF27DA60CB0045F6BE /* StartNavigationVCViewController.swift */; };
D5C59AF127CFD1810013EFBB /* netwok.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5C59AF027CFD1810013EFBB /* netwok.swift */; };
D5CF729E27DFB3500026392B /* ListWorkViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5CF729D27DFB3500026392B /* ListWorkViewController.swift */; };
D5D6F1A627E77D4A008106EE /* DoubleElectricVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5D6F1A527E77D4A008106EE /* DoubleElectricVC.swift */; };
D5D82C8D27D21B070068A5B9 /* SettingsLauncher.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5D82C8C27D21B070068A5B9 /* SettingsLauncher.swift */; };
D5E2042427CE2DD90063A514 /* ProfileViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5E2042327CE2DD90063A514 /* ProfileViewController.swift */; };
D5E2042927CE30E20063A514 /* DataProfileViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5E2042827CE30E20063A514 /* DataProfileViewController.swift */; };
......@@ -84,6 +90,10 @@
D514861827BBEFC8006830A3 /* Track.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Track.swift; sourceTree = "<group>"; };
D51D33FC27BF8836008D5065 /* MapViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapViewController.swift; sourceTree = "<group>"; };
D51D340127BF98B9008D5065 /* CalendarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarViewController.swift; sourceTree = "<group>"; };
D53F55F927E5D12700C18B2A /* SwipeableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwipeableView.swift; path = "../../../../GoldCode/MaterialsColdCode/SwipeableView-master/SwipeableView/SwipeableView/SwipeableView.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>"; };
D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SmallListWorkVC.xib; 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>"; };
D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GlidingCollection.swift; sourceTree = "<group>"; };
......@@ -118,6 +128,8 @@
D5B0201927C382A600C4BA4F /* Artwork.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Artwork.swift; sourceTree = "<group>"; };
D5C001CF27DA60CB0045F6BE /* StartNavigationVCViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartNavigationVCViewController.swift; sourceTree = "<group>"; };
D5C59AF027CFD1810013EFBB /* netwok.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = netwok.swift; sourceTree = "<group>"; };
D5CF729D27DFB3500026392B /* ListWorkViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListWorkViewController.swift; sourceTree = "<group>"; };
D5D6F1A527E77D4A008106EE /* DoubleElectricVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DoubleElectricVC.swift; sourceTree = "<group>"; };
D5D82C8C27D21B070068A5B9 /* SettingsLauncher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsLauncher.swift; sourceTree = "<group>"; };
D5E2042327CE2DD90063A514 /* ProfileViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileViewController.swift; sourceTree = "<group>"; };
D5E2042827CE30E20063A514 /* DataProfileViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataProfileViewController.swift; sourceTree = "<group>"; };
......@@ -186,10 +198,20 @@
D5E2042327CE2DD90063A514 /* ProfileViewController.swift */,
D5E2042827CE30E20063A514 /* DataProfileViewController.swift */,
D5C001CF27DA60CB0045F6BE /* StartNavigationVCViewController.swift */,
D5D6F1A527E77D4A008106EE /* DoubleElectricVC.swift */,
);
path = VC;
sourceTree = "<group>";
};
D53F55F827E5D0F600C18B2A /* SwipeAble */ = {
isa = PBXGroup;
children = (
D53F55FA27E5D12700C18B2A /* SwipeableItems.swift */,
D53F55F927E5D12700C18B2A /* SwipeableView.swift */,
);
path = SwipeAble;
sourceTree = "<group>";
};
D55E88E827DE124A00DB59E7 /* CollectionCell */ = {
isa = PBXGroup;
children = (
......@@ -242,19 +264,17 @@
D569AB5F27B8E27A0013DCFE /* Em-call */ = {
isa = PBXGroup;
children = (
D53F560927E62D7600C18B2A /* SmallListWorkVC.swift */,
D53F560A27E62D7600C18B2A /* SmallListWorkVC.xib */,
D53F55F827E5D0F600C18B2A /* SwipeAble */,
D5A9FBFA27DB92CB00AAB5EA /* Addition */,
D5CF729927DFB2A90026392B /* Glide */,
D5F0237627C4DB76008F4146 /* Data */,
D5F0236027C4DA8E008F4146 /* EnterVC */,
D5057F9B27BA5E520015C0DC /* VC */,
D569AB6027B8E27A0013DCFE /* AppDelegate.swift */,
D569AB6227B8E27A0013DCFE /* SceneDelegate.swift */,
D569AB6627B8E27A0013DCFE /* Main.storyboard */,
D55E88E827DE124A00DB59E7 /* CollectionCell */,
D55E88F027DE124B00DB59E7 /* Extensions */,
D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */,
D55E88EF27DE124B00DB59E7 /* GlidingConfig.swift */,
D55E88EB27DE124B00DB59E7 /* GlidingLayout.swift */,
D55E88EC27DE124B00DB59E7 /* Protocols */,
D569AB6C27B8E27B0013DCFE /* Assets.xcassets */,
D569AB6E27B8E27B0013DCFE /* LaunchScreen.storyboard */,
D569AB7127B8E27B0013DCFE /* Info.plist */,
......@@ -293,10 +313,24 @@
D5A9FBFA27DB92CB00AAB5EA /* Addition */ = {
isa = PBXGroup;
children = (
D5CF729D27DFB3500026392B /* ListWorkViewController.swift */,
);
path = Addition;
sourceTree = "<group>";
};
D5CF729927DFB2A90026392B /* Glide */ = {
isa = PBXGroup;
children = (
D55E88E727DE124A00DB59E7 /* GlidingCollection.swift */,
D55E88EF27DE124B00DB59E7 /* GlidingConfig.swift */,
D55E88EB27DE124B00DB59E7 /* GlidingLayout.swift */,
D55E88EC27DE124B00DB59E7 /* Protocols */,
D55E88F027DE124B00DB59E7 /* Extensions */,
D55E88E827DE124A00DB59E7 /* CollectionCell */,
);
path = Glide;
sourceTree = "<group>";
};
D5F0236027C4DA8E008F4146 /* EnterVC */ = {
isa = PBXGroup;
children = (
......@@ -431,6 +465,7 @@
D569AB7027B8E27B0013DCFE /* LaunchScreen.storyboard in Resources */,
D569AB6D27B8E27B0013DCFE /* Assets.xcassets in Resources */,
D569AB6827B8E27A0013DCFE /* Main.storyboard in Resources */,
D53F560C27E62D7600C18B2A /* SmallListWorkVC.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -503,6 +538,8 @@
D5F0238827C4E2AA008F4146 /* ShowAlert.swift in Sources */,
D5E31B3227BCEC0900F5B87D /* CollectionViewCell.swift in Sources */,
D558EA5C27BE4A6C003C4578 /* HandmanViewController.swift in Sources */,
D53F55FC27E5D12700C18B2A /* SwipeableItems.swift in Sources */,
D5CF729E27DFB3500026392B /* ListWorkViewController.swift in Sources */,
D55E88FA27DE124B00DB59E7 /* Collection.swift in Sources */,
D5E2042427CE2DD90063A514 /* ProfileViewController.swift in Sources */,
D55E88F327DE124B00DB59E7 /* GlidingCollection.swift in Sources */,
......@@ -510,6 +547,7 @@
D55E88F627DE124B00DB59E7 /* GlidingLayout.swift in Sources */,
D569AB6B27B8E27A0013DCFE /* Em_call.xcdatamodeld in Sources */,
D569AB6127B8E27A0013DCFE /* AppDelegate.swift in Sources */,
D53F560B27E62D7600C18B2A /* SmallListWorkVC.swift in Sources */,
D55E88F827DE124B00DB59E7 /* GlidingCollectionDelegate.swift in Sources */,
D55E88F427DE124B00DB59E7 /* CollectionCell.swift in Sources */,
D55E88FB27DE124B00DB59E7 /* FileManager.swift in Sources */,
......@@ -531,8 +569,10 @@
D569AB6327B8E27A0013DCFE /* SceneDelegate.swift in Sources */,
D5B0201027C37BBE00C4BA4F /* MainViewController.swift in Sources */,
D59E3CE527D3B37B008A7E0C /* Extensions.swift in Sources */,
D5D6F1A627E77D4A008106EE /* DoubleElectricVC.swift in Sources */,
D51D33FD27BF8836008D5065 /* MapViewController.swift in Sources */,
D5C59AF127CFD1810013EFBB /* netwok.swift in Sources */,
D53F55FB27E5D12700C18B2A /* SwipeableView.swift in Sources */,
D5E2042927CE30E20063A514 /* DataProfileViewController.swift in Sources */,
D514861427BBEB76006830A3 /* ElectricTableViewController.swift in Sources */,
);
......
......@@ -14,8 +14,8 @@
filePath = "Em-call/VC/ElectricTableViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "39"
endingLineNumber = "39"
startingLineNumber = "42"
endingLineNumber = "42"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
......@@ -46,24 +46,8 @@
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "176"
endingLineNumber = "176"
landmarkName = "coordinateToAdress(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "795D045A-BBDB-4A91-A943-821B1A16C690"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "198"
endingLineNumber = "198"
startingLineNumber = "227"
endingLineNumber = "227"
landmarkName = "coordinateToAdress(_:)"
landmarkType = "7">
</BreakpointContent>
......@@ -206,8 +190,8 @@
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "94"
endingLineNumber = "94"
startingLineNumber = "107"
endingLineNumber = "107"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
......@@ -222,22 +206,6 @@
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "114"
endingLineNumber = "114"
landmarkName = "viewDidAppear(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "D29E76F2-FB27-445B-A035-7B215E517371"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "126"
endingLineNumber = "126"
landmarkName = "viewDidAppear(_:)"
......@@ -334,8 +302,8 @@
filePath = "Em-call/VC/ElectricTableViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "173"
endingLineNumber = "173"
startingLineNumber = "191"
endingLineNumber = "191"
landmarkName = "delegateClick(text:)"
landmarkType = "7">
</BreakpointContent>
......
......@@ -142,8 +142,8 @@
filePath = "Em-call/Data/SettingsLauncher.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "96"
endingLineNumber = "96"
startingLineNumber = "191"
endingLineNumber = "191"
landmarkName = "imagePickerController(_:didFinishPickingMediaWithInfo:)"
landmarkType = "7">
</BreakpointContent>
......@@ -158,8 +158,8 @@
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "86"
endingLineNumber = "86"
startingLineNumber = "99"
endingLineNumber = "99"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
......@@ -174,8 +174,8 @@
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "132"
endingLineNumber = "132"
startingLineNumber = "142"
endingLineNumber = "142"
landmarkName = "viewWillAppear(_:)"
landmarkType = "7">
</BreakpointContent>
......@@ -247,32 +247,127 @@
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "FC5A3F9B-B53A-48E6-B53D-ADCF39677E27"
uuid = "297FB017-CBEC-4B34-9F11-FB71AC7A44EB"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/ElectricTableViewController.swift"
filePath = "Em-call/Data/LocationMng.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "198"
endingLineNumber = "198"
landmarkName = "settingsDelegateClick(img:)"
startingLineNumber = "42"
endingLineNumber = "42"
landmarkName = "checkAuthorization()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "16148796-3411-4F8E-9120-7BFCFD6FFF7B"
uuid = "8BFACC74-74E9-44BC-A527-6EBCA717F70E"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/HandmanViewController.swift"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "151"
endingLineNumber = "151"
landmarkName = "viewWillDisappear(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "1D277C88-21DD-4FDF-8A59-20D31F1943AE"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/Addition/ListWorkViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "97"
endingLineNumber = "97"
landmarkName = "ListWorkViewController"
landmarkType = "3">
</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>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "7A60F594-021F-4282-BC47-4BC335086B4A"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Em-call/VC/MainViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "240"
endingLineNumber = "240"
landmarkName = "settingsDelegateClick(img:)"
startingLineNumber = "133"
endingLineNumber = "133"
landmarkName = "viewDidAppear(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
......
//
// ListWorkViewController.swift
// Em-call
//
// Created by Alex Sh on 14.03.2022.
//
import UIKit
import CoreGraphics
protocol ListWorkViewControllerProtocol:class {
/// Called when one of the supported character categories did change
/// - Parameters:
/// - race: the acutal race character
/// - weapon: the actual weapon character
/// - coa: the actual coat of arms character
func charactersDidChange(race:Character, weapon:Character, coa:Character)
}
class ListWorkViewController: UIViewController {
// var settingsLauncher:SettingsLauncher = SettingsLauncher()
var debug = 0
/// Any delegate for this view
weak var delegate: ListWorkViewControllerProtocol?
let fullView: CGFloat = 100
var partialView: CGFloat {
// return UIScreen.main.bounds.height - (400 + UIApplication.shared.statusBarFrame.height)
return UIScreen.main.bounds.height - 200
}
// var partialView: CGFloat { return UIScreen.main.bounds.height - 400 }
override func viewDidLoad() {
super.viewDidLoad()
// let gesture = UIPanGestureRecognizer.init(target: self, action: #selector(ListWorkViewController.panGesture))
//gesture.delegate = self
// view.addGestureRecognizer(gesture)
roundViews()
}
/*
@objc func panGesture(_ recognizer: UIPanGestureRecognizer) {
let translation = recognizer.translation(in: self.view)
let velocity = recognizer.velocity(in: self.view)
let y = self.view.frame.minY
if (y + translation.y >= fullView) && (y + translation.y <= partialView) {
self.view.frame = CGRect(x: 0, y: y + translation.y, width: view.frame.width, height: view.frame.height)
recognizer.setTranslation(CGPoint.zero, in: self.view)
}
if recognizer.state == .ended {
var duration = velocity.y < 0 ? Double((y - fullView) / -velocity.y) : Double((partialView - y) / velocity.y )
duration = duration > 1.3 ? 1 : duration
UIView.animate(withDuration: duration, delay: 0.0, options: [.allowUserInteraction], animations: {
if velocity.y >= 0 {
self.view.frame = CGRect(x: 0, y: self.partialView, width: self.view.frame.width, height: self.view.frame.height)
} else {
self.view.frame = CGRect(x: 0, y: self.fullView, width: self.view.frame.width, height: self.view.frame.height)
}
}, completion: { [weak self] _ in
if ( velocity.y < 0 ) {
self?.debug = 1
}
})
}
}
func prepareBackgroundView(){
let blurEffect = UIBlurEffect.init(style: .dark)
let visualEffect = UIVisualEffectView.init(effect: blurEffect)
let bluredView = UIVisualEffectView.init(effect: blurEffect)
bluredView.contentView.addSubview(visualEffect)
visualEffect.frame = UIScreen.main.bounds
bluredView.frame = UIScreen.main.bounds
view.insertSubview(bluredView, at: 0)
}
*/
func roundViews() {
view.layer.cornerRadius = 5
/* holdView.layer.cornerRadius = 3
left.layer.cornerRadius = 10
right.layer.cornerRadius = 10
// left.layer.borderColor = UIColor(colorLiteralRed: 0, green: 148/255, blue: 247.0/255.0, alpha: 1).cgColor
left.layer.borderWidth = 1*/
view.clipsToBounds = true
}
/*
func panGesture(recognizer: UIPanGestureRecognizer) {
let translation = recognizer.translation(in: self.view)
let y = self.view.frame.minY
self.view.frame = CGRect(x: 0, y: y + translation.y, width: view.frame.width, height: view.frame.height)
// recognizer.setTranslation(CoreGraphics.CGPointZero, in: self.view)
recognizer.setTranslation(CGPoint(x: 0, y: 0), in: self.view)
// CGRect(x: 0, y: y + translation.y, width: view.frame.width, height: view.frame.height)
}
*/
override func viewDidAppear(_ animated: Bool) {
/*
UIView.animate(withDuration: 0.6, animations: { [weak self] in
let frame = self?.view.frame
let yComponent = self?.partialView
self?.view.frame = CGRect(x: 0, y: yComponent!, width: frame!.width, height: frame!.height - 100)
})*/
}
//MARK: Private
func setup(){
//self.view.backgroundColor = UIColor.Showcase8.colorB2
//self.loadData()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// prepareBackgroundView()
}
}
extension ListWorkViewController: UIGestureRecognizerDelegate {
// Solution
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
let gesture = (gestureRecognizer as! UIPanGestureRecognizer)
let direction = gesture.velocity(in: view).y
let y = view.frame.minY
// if (y == fullView && tableView.contentOffset.y == 0 && direction > 0) || (y == partialView) {
if (y == fullView && direction > 0) || (y == partialView) {
// tableView.isScrollEnabled = false
} else {
// tableView.isScrollEnabled = true
}
return false
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "electricico.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "handmanico.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "lockico.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "plumberico.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -465,6 +465,7 @@
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" enablesReturnKeyAutomatically="YES"/>
</textView>
</subviews>
<color key="backgroundColor" systemColor="systemGroupedBackgroundColor"/>
<accessibility key="accessibilityConfiguration">
<accessibilityTraits key="traits" allowsDirectInteraction="YES"/>
</accessibility>
......@@ -559,18 +560,18 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="FL6-Uj-FcU">
<rect key="frame" x="12" y="291" width="384" height="307"/>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="FL6-Uj-FcU">
<rect key="frame" x="12" y="277" width="384" height="321"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="307" id="gyd-IM-Kr6"/>
<constraint firstAttribute="height" constant="321" id="gyd-IM-Kr6"/>
</constraints>
</tableView>
</subviews>
<constraints>
<constraint firstItem="gZa-oX-G5J" firstAttribute="top" secondItem="bt3-GW-sTZ" secondAttribute="bottom" constant="8" id="1iI-yB-V2M"/>
<constraint firstItem="FL6-Uj-FcU" firstAttribute="leading" secondItem="gZa-oX-G5J" secondAttribute="leading" constant="-2" id="3FQ-vR-0fd"/>
<constraint firstItem="FL6-Uj-FcU" firstAttribute="top" secondItem="gZa-oX-G5J" secondAttribute="bottom" constant="8" id="55a-ka-WTT"/>
<constraint firstItem="FL6-Uj-FcU" firstAttribute="top" secondItem="gZa-oX-G5J" secondAttribute="bottom" constant="-6" id="55a-ka-WTT"/>
<constraint firstItem="FCC-73-4eE" firstAttribute="trailing" secondItem="jdP-Qc-1W1" secondAttribute="trailing" id="AXq-09-3tV"/>
<constraint firstAttribute="trailing" secondItem="bt3-GW-sTZ" secondAttribute="trailing" constant="15" id="NV9-I8-Rjk"/>
<constraint firstItem="FCC-73-4eE" firstAttribute="leading" secondItem="jdP-Qc-1W1" secondAttribute="leading" id="RaP-oi-lq0"/>
......@@ -610,7 +611,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="qZ4-Xu-JRG" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2481.1594202898555" y="20.758928571428569"/>
<point key="canvasLocation" x="2446" y="30"/>
</scene>
<!--DataProfile-->
<scene sceneID="i1c-FV-6jH">
......@@ -748,6 +749,215 @@
</objects>
<point key="canvasLocation" x="1793" y="682"/>
</scene>
<!--DouvleElectric-->
<scene sceneID="bs3-3E-dmW">
<objects>
<viewController title="DouvleElectric" id="c35-zZ-N3V" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="E75-Gf-2A1"/>
<viewControllerLayoutGuide type="bottom" id="CLF-dx-gX7"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="e3P-gk-m8N">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YDj-oE-DKK">
<rect key="frame" x="19" y="44" width="376" height="926"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Dv-AJ-Gv1">
<rect key="frame" x="-6" y="33" width="374" height="155"/>
<subviews>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" verticalCompressionResistancePriority="751" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kjr-EP-Pr6">
<rect key="frame" x="8" y="41.5" width="358" height="29"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="tintColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Start typing the task name and choose the right one">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="7"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Choose a task or discribe a problem" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eN7-gG-qIN">
<rect key="frame" x="51" y="-5" width="273.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="Discribe your problem. For example Entering electricity into the house." textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="Rbt-Ve-lFC">
<rect key="frame" x="7" y="79.5" width="366" height="45"/>
<color key="backgroundColor" white="0.83329665490000004" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="textColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" enablesReturnKeyAutomatically="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textView>
</subviews>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="kjr-EP-Pr6" secondAttribute="trailing" constant="8" id="2lO-oI-JlF"/>
<constraint firstItem="kjr-EP-Pr6" firstAttribute="leading" secondItem="1Dv-AJ-Gv1" secondAttribute="leadingMargin" id="5zZ-AR-hlz"/>
<constraint firstItem="eN7-gG-qIN" firstAttribute="leading" secondItem="1Dv-AJ-Gv1" secondAttribute="leading" constant="51" id="AFD-kf-HWj"/>
<constraint firstAttribute="trailing" secondItem="kjr-EP-Pr6" secondAttribute="trailing" constant="8" id="D3p-ua-4of"/>
<constraint firstAttribute="trailing" secondItem="Rbt-Ve-lFC" secondAttribute="trailing" constant="1" id="HMz-h6-eK7"/>
<constraint firstItem="Rbt-Ve-lFC" firstAttribute="top" secondItem="kjr-EP-Pr6" secondAttribute="bottom" constant="9" id="KCf-O3-NJz"/>
<constraint firstItem="kjr-EP-Pr6" firstAttribute="top" secondItem="eN7-gG-qIN" secondAttribute="bottom" constant="26" id="Qx9-MY-GNW"/>
<constraint firstAttribute="trailing" secondItem="kjr-EP-Pr6" secondAttribute="trailing" constant="8" id="WcT-vC-Y4N"/>
<constraint firstAttribute="trailing" secondItem="kjr-EP-Pr6" secondAttribute="trailing" constant="8" id="c8T-lx-5Ze"/>
<constraint firstAttribute="bottom" secondItem="Rbt-Ve-lFC" secondAttribute="bottom" constant="30.5" id="eUx-Xi-Uwi"/>
<constraint firstItem="Rbt-Ve-lFC" firstAttribute="leading" secondItem="1Dv-AJ-Gv1" secondAttribute="leading" constant="7" id="gc3-gt-8hj"/>
<constraint firstAttribute="trailing" secondItem="kjr-EP-Pr6" secondAttribute="trailing" constant="8" id="kTP-Zp-2Sb"/>
<constraint firstItem="eN7-gG-qIN" firstAttribute="top" secondItem="1Dv-AJ-Gv1" secondAttribute="top" constant="-5" id="yX5-fi-YGu"/>
</constraints>
</view>
<view contentMode="scaleToFill" id="tAh-pm-wcq">
<rect key="frame" x="2" y="196" width="374" height="121"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p5B-bi-dPL">
<rect key="frame" x="110" y="49" width="153" height="22"/>
<color key="backgroundColor" white="0.88974471830000001" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.90666263199999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Add photo" image="plus.viewfinder" catalog="system">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="pressAddPhoto:" destination="M0x-rT-c3r" eventType="touchUpInside" id="sQY-bt-l9G"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jz7-IA-sZz" customClass="GlidingCollection" customModule="Em_call" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="374" height="98"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="jz7-IA-sZz" secondAttribute="trailing" id="PqO-mm-dLq"/>
<constraint firstItem="jz7-IA-sZz" firstAttribute="leading" secondItem="tAh-pm-wcq" secondAttribute="leading" id="Qyo-ca-bRV"/>
<constraint firstAttribute="trailing" secondItem="p5B-bi-dPL" secondAttribute="trailing" constant="111" id="jhm-3x-GpY"/>
<constraint firstItem="jz7-IA-sZz" firstAttribute="top" secondItem="tAh-pm-wcq" secondAttribute="top" id="kQZ-rk-vnt"/>
<constraint firstAttribute="bottom" secondItem="jz7-IA-sZz" secondAttribute="bottom" constant="23" id="mfW-9o-7l0"/>
<constraint firstItem="p5B-bi-dPL" firstAttribute="leading" secondItem="tAh-pm-wcq" secondAttribute="leading" constant="110" id="rF1-7t-Tfa"/>
<constraint firstItem="p5B-bi-dPL" firstAttribute="top" secondItem="tAh-pm-wcq" secondAttribute="top" constant="49" id="xDr-Cu-4WP"/>
</constraints>
</view>
<button contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DiE-jM-mor">
<rect key="frame" x="12" y="635" width="348" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="BOOK NOW">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="7"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="BookNowClick:" destination="M0x-rT-c3r" eventType="touchUpInside" id="V62-rd-lkX"/>
</connections>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="e0E-KL-uZo">
<rect key="frame" x="12" y="672" width="348" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="EDIT">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="7"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8r0-U6-HnC">
<rect key="frame" x="12" y="709" width="348" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="DELETE">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="7"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Y5C-5x-0lh">
<rect key="frame" x="2" y="325" width="366" height="302"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="302" id="fKS-m8-TeJ"/>
</constraints>
</tableView>
</subviews>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="8r0-U6-HnC" secondAttribute="trailing" constant="16" id="48q-MR-FbN"/>
<constraint firstAttribute="bottom" secondItem="8r0-U6-HnC" secondAttribute="bottom" constant="281" id="78s-V3-JSF"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="top" secondItem="mMK-cc-dC7" secondAttribute="top" constant="33" id="Azf-42-tdJ"/>
<constraint firstItem="e0E-KL-uZo" firstAttribute="top" secondItem="DiE-jM-mor" secondAttribute="bottom" constant="8" symbolic="YES" id="GTC-nL-Nih"/>
<constraint firstItem="tAh-pm-wcq" firstAttribute="top" secondItem="1Dv-AJ-Gv1" secondAttribute="bottom" constant="8" id="Hpw-xW-DHn"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="leading" secondItem="mMK-cc-dC7" secondAttribute="leading" constant="-6" id="Nbg-lo-JHr"/>
<constraint firstItem="Y5C-5x-0lh" firstAttribute="top" secondItem="tAh-pm-wcq" secondAttribute="bottom" constant="8" id="OaU-oI-FJx"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="8r0-U6-HnC" secondAttribute="trailing" constant="16" id="PWl-to-lyz"/>
<constraint firstItem="8r0-U6-HnC" firstAttribute="leading" secondItem="mMK-cc-dC7" secondAttribute="leading" constant="12" id="U29-rt-o07"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="leading" secondItem="mMK-cc-dC7" secondAttribute="leading" constant="-6" id="U2D-Cm-Jz2"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="8r0-U6-HnC" secondAttribute="trailing" constant="16" id="V7F-Us-bNt"/>
<constraint firstItem="DiE-jM-mor" firstAttribute="top" secondItem="Y5C-5x-0lh" secondAttribute="bottom" constant="8" symbolic="YES" id="XDf-Xe-sRc"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="leading" secondItem="tAh-pm-wcq" secondAttribute="leading" constant="-8" id="e68-lN-bBc"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="e0E-KL-uZo" secondAttribute="trailing" constant="16" id="fFF-en-Cmj"/>
<constraint firstItem="DiE-jM-mor" firstAttribute="leading" secondItem="mMK-cc-dC7" secondAttribute="leading" constant="12" id="fZP-w1-nI0"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="trailing" secondItem="YDj-oE-DKK" secondAttribute="trailingMargin" id="fe2-IY-vkd"/>
<constraint firstItem="e0E-KL-uZo" firstAttribute="leading" secondItem="mMK-cc-dC7" secondAttribute="leading" constant="12" id="hVA-NI-qxY"/>
<constraint firstItem="Y5C-5x-0lh" firstAttribute="trailing" secondItem="tAh-pm-wcq" secondAttribute="trailing" constant="-8" id="hWe-Yr-vc1"/>
<constraint firstItem="Y5C-5x-0lh" firstAttribute="leading" secondItem="tAh-pm-wcq" secondAttribute="leading" id="hkR-Ke-Cfm"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="DiE-jM-mor" secondAttribute="trailing" constant="16" id="kPt-xP-5HU"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="e0E-KL-uZo" secondAttribute="trailing" constant="16" id="lGJ-VA-665"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="trailing" secondItem="mMK-cc-dC7" secondAttribute="trailing" constant="-8" id="n6O-3L-Qi5"/>
<constraint firstItem="1Dv-AJ-Gv1" firstAttribute="trailing" secondItem="tAh-pm-wcq" secondAttribute="trailing" constant="-8" id="nNs-NM-Y6W"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="e0E-KL-uZo" secondAttribute="trailing" constant="16" id="sqM-1D-bqO"/>
<constraint firstItem="mMK-cc-dC7" firstAttribute="trailing" secondItem="DiE-jM-mor" secondAttribute="trailing" constant="16" id="vU3-Fa-Mc0"/>
<constraint firstItem="8r0-U6-HnC" firstAttribute="top" secondItem="e0E-KL-uZo" secondAttribute="bottom" constant="8" symbolic="YES" id="yvb-2e-XH3"/>
</constraints>
<viewLayoutGuide key="contentLayoutGuide" id="i7v-bu-d4f"/>
<viewLayoutGuide key="frameLayoutGuide" id="mMK-cc-dC7"/>
</scrollView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="YDj-oE-DKK" firstAttribute="centerX" secondItem="e3P-gk-m8N" secondAttribute="centerX" id="Hem-Qa-2K3"/>
<constraint firstItem="YDj-oE-DKK" firstAttribute="top" secondItem="E75-Gf-2A1" secondAttribute="bottom" id="RL1-cd-VUa"/>
<constraint firstAttribute="bottom" secondItem="YDj-oE-DKK" secondAttribute="bottom" constant="-74" id="XYg-KE-8z3"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="hdX-5E-VHN" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2492.753623188406" y="681.69642857142856"/>
</scene>
<!--ChangeCard-->
<scene sceneID="Bqg-PP-viG">
<objects>
......@@ -836,20 +1046,20 @@
</objects>
<point key="canvasLocation" x="-732" y="246"/>
</scene>
<!--LOGO-->
<!--Main View Controller-->
<scene sceneID="Eei-cQ-h3K">
<objects>
<viewController storyboardIdentifier="Logo" title="LOGO" modalTransitionStyle="crossDissolve" modalPresentationStyle="fullScreen" useStoryboardIdentifierAsRestorationIdentifier="YES" interfaceStyle="dark" id="3tU-MJ-808" customClass="MainViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="Logo" modalTransitionStyle="crossDissolve" modalPresentationStyle="fullScreen" useStoryboardIdentifierAsRestorationIdentifier="YES" interfaceStyle="dark" id="3tU-MJ-808" customClass="MainViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="bfJ-Nd-98L"/>
<viewControllerLayoutGuide type="bottom" id="29T-bo-998"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="ebz-LD-cv0">
<view key="view" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="ebz-LD-cv0">
<rect key="frame" x="0.0" y="0.0" width="414" height="813"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" restorationIdentifier="mapLondon" mapType="standard" showsUserLocation="YES" showsScale="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QPE-G4-uRl">
<rect key="frame" x="7" y="188" width="400" height="568"/>
<rect key="frame" x="0.0" y="1" width="414" height="756"/>
<color key="backgroundColor" systemColor="systemGray5Color"/>
<gestureRecognizers/>
<connections>
......@@ -857,89 +1067,110 @@
<outletCollection property="gestureRecognizers" destination="fYJ-q4-Q9j" appends="YES" id="Ebd-KJ-SUl"/>
</connections>
</mapView>
<stackView opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleAspectFit" distribution="fillEqually" alignment="center" spacing="36" baselineRelativeArrangement="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PQE-tc-Y85">
<rect key="frame" x="38" y="95" width="338" height="94"/>
<stackView opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleAspectFit" distribution="fillEqually" alignment="center" spacing="20" baselineRelativeArrangement="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PQE-tc-Y85">
<rect key="frame" x="38" y="75" width="320" height="70"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1SL-se-9O9">
<rect key="frame" x="0.0" y="3" width="88.5" height="88"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="bottom" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Iep-Xa-5NT">
<rect key="frame" x="0.0" y="0.0" width="65" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="88.5" id="oid-eG-HpF"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="65" id="0R4-eU-u61"/>
<constraint firstAttribute="height" constant="70" id="qDb-xT-hDD"/>
</constraints>
<state key="normal" title="Button" backgroundImage="electric"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Handyman" backgroundImage="handmanico">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<segue destination="M0x-rT-c3r" kind="show" id="hhV-TF-8wH"/>
<segue destination="pn9-ml-gRd" kind="show" id="OWt-UN-ffM"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8Fj-31-Iaf">
<rect key="frame" x="124.5" y="3" width="89" height="88"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="bottom" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1SL-se-9O9">
<rect key="frame" x="85" y="2.5" width="65" height="65"/>
<constraints>
<constraint firstAttribute="width" constant="89" id="dw2-EX-8Wf"/>
<constraint firstAttribute="height" constant="70" id="5lu-bv-b4j"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="65" id="mKS-Zf-tzb"/>
</constraints>
<state key="normal" backgroundImage="plumbing"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Electric" backgroundImage="electricico">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<segue destination="HPQ-ND-dIY" kind="show" id="kwG-5B-SKM"/>
<segue destination="M0x-rT-c3r" kind="show" id="Cpg-vY-3Te"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Iep-Xa-5NT">
<rect key="frame" x="249.5" y="3" width="88.5" height="88"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="bottom" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="k9R-dK-sFh">
<rect key="frame" x="170" y="2.5" width="65" height="65"/>
<constraints>
<constraint firstAttribute="height" constant="88" id="Euj-PG-Iik"/>
<constraint firstAttribute="height" constant="65" id="e1t-gn-QJX"/>
</constraints>
<state key="normal" backgroundImage="handynan"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Locksmith" backgroundImage="lockico">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="bottom" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8Fj-31-Iaf">
<rect key="frame" x="255" y="0.0" width="65" height="70"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="65" id="7By-UG-G2M"/>
<constraint firstAttribute="height" constant="70" id="u0A-tZ-Otr"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Plumber" backgroundImage="plumberico">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<segue destination="pn9-ml-gRd" kind="show" id="gts-bo-pkU"/>
<segue destination="HPQ-ND-dIY" kind="show" id="kwG-5B-SKM"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="1SL-se-9O9" firstAttribute="top" secondItem="8Fj-31-Iaf" secondAttribute="top" id="1Ca-Qa-G40"/>
<constraint firstItem="8Fj-31-Iaf" firstAttribute="baseline" secondItem="Iep-Xa-5NT" secondAttribute="baseline" id="OdA-gd-Ewd"/>
<constraint firstItem="8Fj-31-Iaf" firstAttribute="firstBaseline" secondItem="Iep-Xa-5NT" secondAttribute="firstBaseline" id="gc0-JU-F3x"/>
<constraint firstItem="1SL-se-9O9" firstAttribute="top" secondItem="Iep-Xa-5NT" secondAttribute="top" id="mW6-h1-kjI"/>
<constraint firstAttribute="height" constant="94" id="u5f-Ci-HkC"/>
<constraint firstItem="k9R-dK-sFh" firstAttribute="baseline" secondItem="1SL-se-9O9" secondAttribute="baseline" id="Jts-0g-wPG"/>
</constraints>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qe3-eP-tPe">
<rect key="frame" x="7" y="552" width="400" height="212"/>
<view multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qe3-eP-tPe">
<rect key="frame" x="0.0" y="552" width="414" height="212"/>
<subviews>
<button contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hkN-n9-t5l">
<rect key="frame" x="16" y="85" width="285" height="53"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="What do you want to do?">
<color key="titleColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="microphon" translatesAutoresizingMaskIntoConstraints="NO" id="xUm-eu-wJk">
<rect key="frame" x="314" y="90" width="53" height="46"/>
<rect key="frame" x="328" y="90" width="53" height="46"/>
<constraints>
<constraint firstAttribute="height" constant="46" id="4nf-XU-KwR"/>
<constraint firstAttribute="width" constant="53" id="AAe-be-BdR"/>
</constraints>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="89" translatesAutoresizingMaskIntoConstraints="NO" id="NB5-FR-6t1">
<rect key="frame" x="20" y="12" width="360" height="197"/>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" alignment="top" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="NB5-FR-6t1">
<rect key="frame" x="20" y="12" width="374" height="194"/>
<subviews>
<textField opaque="NO" multipleTouchEnabled="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Unknow address" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="5of-Ew-1lP">
<rect key="frame" x="0.0" y="0.0" width="360" height="54"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<textField opaque="NO" multipleTouchEnabled="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Unknow address" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="5of-Ew-1lP">
<rect key="frame" x="0.0" y="0.0" width="374" height="54"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<accessibility key="accessibilityConfiguration" label="Address"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/>
</textField>
<button contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" pointerInteraction="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hkN-n9-t5l">
<rect key="frame" x="0.0" y="70" width="274" height="54"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<gestureRecognizers/>
<state key="normal" title="What do you want to do?">
<color key="titleColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="pressRowSelect:" destination="uxj-dw-uKY" eventType="touchUpInside" id="GNt-Kj-Mdh"/>
<action selector="pressWhatDo:" destination="3tU-MJ-808" eventType="touchUpInside" id="xFb-PA-xc5"/>
</connections>
</button>
<button contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CLO-A9-oGu">
<rect key="frame" x="0.0" y="143" width="360" height="54"/>
<rect key="frame" x="0.0" y="140" width="374" height="54"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="54" id="6kV-zv-SSM"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="Rqd-MM-Up9"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="50" id="eM1-k6-vZY"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="50" id="rn6-wU-HEP"/>
<constraint firstAttribute="height" constant="54" id="Ta2-jQ-Sxb"/>
</constraints>
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Do It!">
......@@ -952,20 +1183,22 @@
</userDefinedRuntimeAttributes>
</button>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="5of-Ew-1lP" secondAttribute="trailing" id="EGU-RI-PZz"/>
<constraint firstItem="CLO-A9-oGu" firstAttribute="trailing" secondItem="5of-Ew-1lP" secondAttribute="trailing" id="Rua-nd-QIg"/>
<constraint firstAttribute="trailing" secondItem="hkN-n9-t5l" secondAttribute="trailing" constant="100" id="io0-5S-8O5"/>
</constraints>
</stackView>
</subviews>
<color key="backgroundColor" red="0.72036917098445596" green="0.72036917098445596" blue="0.72036917098445596" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="tintColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" white="0.9066626320422535" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<accessibility key="accessibilityConfiguration">
<bool key="isElement" value="YES"/>
</accessibility>
<gestureRecognizers/>
<constraints>
<constraint firstItem="hkN-n9-t5l" firstAttribute="leading" secondItem="Qe3-eP-tPe" secondAttribute="leading" constant="16" id="3He-C6-kFI"/>
<constraint firstAttribute="trailing" secondItem="xUm-eu-wJk" secondAttribute="trailing" constant="33" id="3jV-B1-hE0"/>
<constraint firstAttribute="bottom" secondItem="hkN-n9-t5l" secondAttribute="bottom" constant="74" id="9Y0-mV-zi3"/>
<constraint firstItem="xUm-eu-wJk" firstAttribute="leading" secondItem="hkN-n9-t5l" secondAttribute="trailing" constant="13" id="EEb-dV-U8u"/>
<constraint firstItem="xUm-eu-wJk" firstAttribute="top" secondItem="Qe3-eP-tPe" secondAttribute="top" constant="90" id="G3j-Dg-rPR"/>
<constraint firstItem="hkN-n9-t5l" firstAttribute="top" secondItem="Qe3-eP-tPe" secondAttribute="top" constant="85" id="G6K-9x-4xD"/>
<constraint firstAttribute="trailing" secondItem="xUm-eu-wJk" secondAttribute="trailing" constant="33" id="Glo-BD-XCz"/>
<constraint firstItem="NB5-FR-6t1" firstAttribute="leading" secondItem="Qe3-eP-tPe" secondAttribute="leading" constant="20" id="M0d-z1-2UW"/>
<constraint firstItem="NB5-FR-6t1" firstAttribute="centerX" secondItem="Qe3-eP-tPe" secondAttribute="centerX" id="qew-Ep-dsa"/>
......@@ -974,26 +1207,33 @@
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="10"/>
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<outletCollection property="gestureRecognizers" destination="wIF-nn-zZN" appends="YES" id="JGj-Qd-Ln2"/>
</connections>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xed-ou-84V">
<rect key="frame" x="345" y="286" width="49" height="49"/>
<rect key="frame" x="334" y="286" width="60" height="60"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="ChQ-zh-OJ2"/>
<constraint firstAttribute="width" constant="60" id="xIz-3m-EJc"/>
</constraints>
<state key="normal" backgroundImage="emerg_service"/>
<connections>
<action selector="pressEmergency:" destination="3tU-MJ-808" eventType="touchUpInside" id="17M-W2-CWU"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Sx-hm-dYD">
<rect key="frame" x="332" y="226" width="45" height="45"/>
<rect key="frame" x="321" y="226" width="56" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="u2P-69-oCT"/>
</constraints>
<state key="normal" backgroundImage="ico_loc_up"/>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Aki-wx-bzG">
<rect key="frame" x="279" y="259" width="45" height="45"/>
<rect key="frame" x="268" y="259" width="45" height="45"/>
<constraints>
<constraint firstAttribute="width" constant="45" id="mO5-vY-Coa"/>
<constraint firstAttribute="height" constant="45" id="uhV-Bz-gqs"/>
......@@ -1005,7 +1245,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="l69-xc-Uun">
<rect key="frame" x="279" y="321" width="45" height="45"/>
<rect key="frame" x="268" y="321" width="45" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="B1K-6L-rVh"/>
</constraints>
......@@ -1016,7 +1256,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="i9I-pg-vSj">
<rect key="frame" x="332" y="351" width="45" height="45"/>
<rect key="frame" x="321" y="362" width="56" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="pbw-AT-gxY"/>
</constraints>
......@@ -1027,44 +1267,41 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="5Sx-hm-dYD" firstAttribute="top" secondItem="PQE-tc-Y85" secondAttribute="bottom" constant="37" id="0Dp-bh-Dd0"/>
<constraint firstItem="xed-ou-84V" firstAttribute="trailing" secondItem="ebz-LD-cv0" secondAttribute="trailingMargin" id="3rU-vM-sfe"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="trailing" secondItem="Qe3-eP-tPe" secondAttribute="trailing" id="53l-jK-cko"/>
<constraint firstItem="5Sx-hm-dYD" firstAttribute="leading" secondItem="Aki-wx-bzG" secondAttribute="trailing" constant="8" symbolic="YES" id="6ah-4T-hkF"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="top" secondItem="bfJ-Nd-98L" secondAttribute="bottom" constant="4" id="6ql-4P-CFS"/>
<constraint firstItem="5Sx-hm-dYD" firstAttribute="trailing" secondItem="i9I-pg-vSj" secondAttribute="trailing" id="B6P-e2-fli"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="top" secondItem="bfJ-Nd-98L" secondAttribute="bottom" constant="7" id="E2C-v6-UeI"/>
<constraint firstItem="Qe3-eP-tPe" firstAttribute="centerX" secondItem="ebz-LD-cv0" secondAttribute="centerX" id="Eo0-eN-MsV"/>
<constraint firstItem="i9I-pg-vSj" firstAttribute="top" secondItem="xed-ou-84V" secondAttribute="bottom" constant="16" id="HGC-Xy-295"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="leading" secondItem="Qe3-eP-tPe" secondAttribute="leading" id="KCp-6x-chu"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="trailing" secondItem="Qe3-eP-tPe" secondAttribute="trailing" id="LdU-QD-TPo"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="leading" secondItem="ebz-LD-cv0" secondAttribute="leadingMargin" constant="18" id="N5V-88-srf"/>
<constraint firstItem="Aki-wx-bzG" firstAttribute="top" secondItem="ebz-LD-cv0" secondAttribute="top" constant="259" id="Iu9-xr-aSk"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="leading" secondItem="ebz-LD-cv0" secondAttribute="leadingMargin" constant="-20" id="OB9-Jl-Q0T"/>
<constraint firstItem="29T-bo-998" firstAttribute="top" secondItem="Qe3-eP-tPe" secondAttribute="bottom" id="PmM-Tm-rff"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="top" secondItem="bfJ-Nd-98L" secondAttribute="bottom" constant="100" id="R3Z-nS-3vd"/>
<constraint firstItem="29T-bo-998" firstAttribute="top" secondItem="QPE-G4-uRl" secondAttribute="bottom" constant="8" symbolic="YES" id="TMQ-Cd-wOF"/>
<constraint firstItem="Qe3-eP-tPe" firstAttribute="leading" secondItem="ebz-LD-cv0" secondAttribute="leadingMargin" constant="-13" id="TMn-Ic-zfh"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="top" secondItem="ebz-LD-cv0" secondAttribute="top" constant="75" id="Tgv-iO-J2I"/>
<constraint firstItem="i9I-pg-vSj" firstAttribute="leading" secondItem="l69-xc-Uun" secondAttribute="trailing" constant="8" symbolic="YES" id="X84-gs-ag8"/>
<constraint firstItem="l69-xc-Uun" firstAttribute="top" secondItem="Aki-wx-bzG" secondAttribute="bottom" constant="17" id="ZmB-yn-Mc1"/>
<constraint firstItem="5Sx-hm-dYD" firstAttribute="leading" secondItem="i9I-pg-vSj" secondAttribute="leading" id="a0w-tm-bf0"/>
<constraint firstAttribute="trailing" secondItem="PQE-tc-Y85" secondAttribute="trailing" constant="56" id="cIn-Od-Mr7"/>
<constraint firstItem="xed-ou-84V" firstAttribute="leading" secondItem="Aki-wx-bzG" secondAttribute="trailing" constant="21" id="fSg-nj-psk"/>
<constraint firstItem="xed-ou-84V" firstAttribute="top" secondItem="bfJ-Nd-98L" secondAttribute="bottom" constant="198" id="gk9-JE-LRp"/>
<constraint firstItem="Aki-wx-bzG" firstAttribute="leading" secondItem="l69-xc-Uun" secondAttribute="leading" id="jm5-4q-yiG"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="top" secondItem="bfJ-Nd-98L" secondAttribute="bottom" constant="100" id="mhZ-qM-RVB"/>
<constraint firstAttribute="trailingMargin" secondItem="PQE-tc-Y85" secondAttribute="trailing" constant="18" id="niR-a0-Gnn"/>
<constraint firstItem="29T-bo-998" firstAttribute="top" secondItem="QPE-G4-uRl" secondAttribute="bottom" constant="7" id="pCu-sg-ZYk"/>
<constraint firstItem="xed-ou-84V" firstAttribute="top" secondItem="5Sx-hm-dYD" secondAttribute="bottom" constant="15" id="q0g-2U-WbH"/>
<constraint firstAttribute="trailingMargin" secondItem="5Sx-hm-dYD" secondAttribute="trailing" constant="17" id="rEz-yc-exG"/>
<constraint firstItem="Aki-wx-bzG" firstAttribute="top" secondItem="PQE-tc-Y85" secondAttribute="bottom" constant="70" id="rG6-ut-Uzv"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="leading" secondItem="ebz-LD-cv0" secondAttribute="leadingMargin" constant="18" id="trH-rf-svp"/>
<constraint firstItem="PQE-tc-Y85" firstAttribute="leading" secondItem="ebz-LD-cv0" secondAttribute="leading" constant="38" id="sqp-YW-3zL"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="leading" secondItem="Qe3-eP-tPe" secondAttribute="leading" id="vyI-Py-Xbh"/>
<constraint firstItem="QPE-G4-uRl" firstAttribute="top" secondItem="ebz-LD-cv0" secondAttribute="topMargin" constant="-87" id="xn9-fW-4gV"/>
</constraints>
</view>
<toolbarItems>
<barButtonItem title="LOGO" image="home" id="gQw-Ip-mJ1"/>
</toolbarItems>
<navigationItem key="navigationItem" title="Logo" largeTitleDisplayMode="never" id="1Rh-ji-VrJ"/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" barStyle="black" prompted="NO"/>
<toolbarItems/>
<navigationItem key="navigationItem" largeTitleDisplayMode="never" id="1Rh-ji-VrJ"/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="bottomView" destination="Qe3-eP-tPe" id="wxP-b1-Zc5"/>
<outlet property="buttonEmerElectric" destination="Aki-wx-bzG" id="SuP-cp-22v"/>
<outlet property="buttonEmerHandman" destination="i9I-pg-vSj" id="0yt-JX-572"/>
<outlet property="buttonEmerPlumber" destination="l69-xc-Uun" id="Iks-Jk-NVK"/>
......@@ -1075,6 +1312,7 @@
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="sSD-oA-3Xk" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
<exit id="uxj-dw-uKY" userLabel="Exit" sceneMemberID="exit"/>
<pongPressGestureRecognizer allowableMovement="10" minimumPressDuration="0.5" id="Orp-cy-FAX">
<connections>
<action selector="longPress:" destination="3tU-MJ-808" id="NQE-qb-XBU"/>
......@@ -1085,29 +1323,196 @@
<action selector="tapGesture:" destination="3tU-MJ-808" id="MXv-nT-0iN"/>
</connections>
</tapGestureRecognizer>
<tapGestureRecognizer id="wIF-nn-zZN"/>
</objects>
<point key="canvasLocation" x="2691" y="-848"/>
<point key="canvasLocation" x="2689.8550724637685" y="-848.4375"/>
</scene>
<!--Electric-->
<scene sceneID="d3q-Op-5rV">
<objects>
<viewController storyboardIdentifier="ListWork" extendedLayoutIncludesOpaqueBars="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" interfaceStyle="light" id="NTZ-g6-KXc" customClass="ListWorkViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="6Hu-BF-WpV"/>
<viewControllerLayoutGuide type="bottom" id="Unf-QV-I5Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="OOa-8j-1ky">
<rect key="frame" x="0.0" y="0.0" width="414" height="808"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField multipleTouchEnabled="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Enter work type" borderStyle="roundedRect" placeholder="Unknow address" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="5Ct-qb-dL2">
<rect key="frame" x="20" y="27" width="374" height="34"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<accessibility key="accessibilityConfiguration" label="Address"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/>
</textField>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" alignment="top" spacing="15" translatesAutoresizingMaskIntoConstraints="NO" id="jAN-D4-4wo">
<rect key="frame" x="20" y="89" width="374" height="435"/>
<subviews>
<button contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="wordWrap" pointerInteraction="YES" translatesAutoresizingMaskIntoConstraints="NO" id="X0k-Lb-N3U">
<rect key="frame" x="0.0" y="0.0" width="226" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Electrician Emergency Departure">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vjc-fC-lSP">
<rect key="frame" x="0.0" y="45" width="230" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Entering electricity into the house">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="o1p-Wf-j6S">
<rect key="frame" x="0.0" y="90" width="279" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric heated towel rail">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lqH-gK-DUF">
<rect key="frame" x="0.0" y="135" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="C3P-Lp-yjk">
<rect key="frame" x="0.0" y="180" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="D6H-az-Z0l">
<rect key="frame" x="0.0" y="225" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ciZ-7P-kqe">
<rect key="frame" x="0.0" y="270" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5WX-Kq-CcP">
<rect key="frame" x="0.0" y="315" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="exF-t2-Qvd">
<rect key="frame" x="0.0" y="360" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9ie-Qk-v4q">
<rect key="frame" x="0.0" y="405" width="206" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Dismantling the electric meter">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="jAN-D4-4wo" firstAttribute="leading" secondItem="OOa-8j-1ky" secondAttribute="leadingMargin" id="7R5-3i-nYc"/>
<constraint firstItem="5Ct-qb-dL2" firstAttribute="leading" secondItem="OOa-8j-1ky" secondAttribute="leadingMargin" id="Sj9-ty-Whg"/>
<constraint firstItem="jAN-D4-4wo" firstAttribute="top" secondItem="5Ct-qb-dL2" secondAttribute="bottom" constant="28" id="Vnu-GV-y4L"/>
<constraint firstItem="5Ct-qb-dL2" firstAttribute="trailing" secondItem="OOa-8j-1ky" secondAttribute="trailingMargin" id="cO2-Sz-JqX"/>
<constraint firstAttribute="trailingMargin" secondItem="jAN-D4-4wo" secondAttribute="trailing" id="dT2-9j-4R5"/>
<constraint firstItem="5Ct-qb-dL2" firstAttribute="top" secondItem="6Hu-BF-WpV" secondAttribute="bottom" constant="27" id="rPK-fi-uvZ"/>
</constraints>
</view>
<extendedEdge key="edgesForExtendedLayout" bottom="YES"/>
<navigationItem key="navigationItem" title="Electric" leftItemsSupplementBackButton="YES" id="xsX-aF-hq5">
<barButtonItem key="backBarButtonItem" title="Back" id="Wzs-CO-bIg"/>
</navigationItem>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="THa-gC-kNs" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3610" y="-456"/>
</scene>
<!--Electric-->
<scene sceneID="Azi-KW-v7X">
<objects>
<viewController id="M0x-rT-c3r" customClass="ElectricTableViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="Electric" title="Electric" modalTransitionStyle="crossDissolve" modalPresentationStyle="fullScreen" useStoryboardIdentifierAsRestorationIdentifier="YES" id="M0x-rT-c3r" customClass="ElectricTableViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="JGQ-oL-T3u"/>
<viewControllerLayoutGuide type="bottom" id="sNr-Zn-75u"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ox3-d8-QQc">
<rect key="frame" x="0.0" y="0.0" width="414" height="813"/>
<view key="view" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ox3-d8-QQc">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wOb-kl-MC5">
<rect key="frame" x="19" y="87" width="376" height="1005"/>
<rect key="frame" x="19" y="76" width="376" height="1139"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Uox-tQ-aHh">
<rect key="frame" x="-6" y="64" width="374" height="124"/>
<rect key="frame" x="-6" y="21" width="374" height="167"/>
<subviews>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" verticalCompressionResistancePriority="751" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2de-tU-xBf">
<rect key="frame" x="8" y="41.5" width="358" height="29"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="tintColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Start typing the task name and choose the right one">
......@@ -1121,37 +1526,50 @@
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<segue destination="NTZ-g6-KXc" kind="show" id="RNR-ET-KmF"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Choose a task or discribe a problem" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rqA-Rp-bTY">
<rect key="frame" x="51" y="10" width="273.5" height="20.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Choose a task or discribe a problem" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rqA-Rp-bTY">
<rect key="frame" x="51" y="-5" width="273.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Discribe your problem. For example Entering electricity into the house." textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="snE-N6-ZWS">
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="Discribe your problem. For example Entering electricity into the house." textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="snE-N6-ZWS">
<rect key="frame" x="7" y="79.5" width="366" height="45"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="textColor" systemColor="labelColor"/>
<color key="backgroundColor" white="0.83329665490000004" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" enablesReturnKeyAutomatically="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textView>
</subviews>
<constraints>
<constraint firstItem="2de-tU-xBf" firstAttribute="top" secondItem="rqA-Rp-bTY" secondAttribute="bottom" constant="11" id="BzO-3t-yTJ"/>
<constraint firstItem="rqA-Rp-bTY" firstAttribute="top" secondItem="Uox-tQ-aHh" secondAttribute="top" constant="10" id="Hk3-4X-4ik"/>
<constraint firstAttribute="trailing" secondItem="2de-tU-xBf" secondAttribute="trailing" constant="8" id="LPh-wj-xdH"/>
<constraint firstAttribute="trailing" secondItem="2de-tU-xBf" secondAttribute="trailing" constant="8" id="T9t-9d-smI"/>
<constraint firstAttribute="trailing" secondItem="2de-tU-xBf" secondAttribute="trailing" constant="8" id="ek6-Fb-umY"/>
<constraint firstAttribute="trailing" secondItem="2de-tU-xBf" secondAttribute="trailing" constant="8" id="jXN-HN-94x"/>
<constraint firstAttribute="trailing" secondItem="2de-tU-xBf" secondAttribute="trailing" constant="8" id="lVu-sF-Wkp"/>
<constraint firstItem="rqA-Rp-bTY" firstAttribute="leading" secondItem="Uox-tQ-aHh" secondAttribute="leading" constant="51" id="x94-NB-SW0"/>
<constraint firstItem="2de-tU-xBf" firstAttribute="leading" secondItem="Uox-tQ-aHh" secondAttribute="leadingMargin" id="xTK-HQ-GcC"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="2de-tU-xBf" firstAttribute="top" secondItem="rqA-Rp-bTY" secondAttribute="bottom" constant="26" id="79Z-VU-ZqX"/>
<constraint firstItem="rqA-Rp-bTY" firstAttribute="centerX" secondItem="2de-tU-xBf" secondAttribute="centerX" id="Bay-A0-EAm"/>
<constraint firstAttribute="trailing" secondItem="snE-N6-ZWS" secondAttribute="trailing" constant="1" id="IEx-15-q5b"/>
<constraint firstItem="2de-tU-xBf" firstAttribute="trailing" secondItem="Uox-tQ-aHh" secondAttribute="trailingMargin" id="TTu-9f-joc"/>
<constraint firstItem="snE-N6-ZWS" firstAttribute="top" secondItem="2de-tU-xBf" secondAttribute="bottom" constant="9" id="UPL-Mm-Sj0"/>
<constraint firstAttribute="bottom" secondItem="snE-N6-ZWS" secondAttribute="bottom" constant="42.5" id="atJ-7m-ndr"/>
<constraint firstItem="2de-tU-xBf" firstAttribute="leading" secondItem="Uox-tQ-aHh" secondAttribute="leadingMargin" id="b5E-TI-hcF"/>
<constraint firstItem="rqA-Rp-bTY" firstAttribute="leading" secondItem="Uox-tQ-aHh" secondAttribute="leading" constant="51" id="hD3-AS-Ri7"/>
<constraint firstItem="snE-N6-ZWS" firstAttribute="leading" secondItem="Uox-tQ-aHh" secondAttribute="leading" constant="7" id="jNz-by-iCa"/>
<constraint firstItem="rqA-Rp-bTY" firstAttribute="top" secondItem="Uox-tQ-aHh" secondAttribute="top" constant="-5" id="qii-YG-FmD"/>
</constraints>
</view>
<button contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6Zb-r4-Yob">
<rect key="frame" x="12" y="635" width="348" height="29"/>
<rect key="frame" x="12" y="635" width="352" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="29" id="FMi-J0-1sz"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="BOOK NOW">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -1169,8 +1587,11 @@
</connections>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iZV-CB-uhN">
<rect key="frame" x="12" y="672" width="348" height="29"/>
<rect key="frame" x="12" y="677" width="348" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="29" id="fWy-O3-aVK"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="EDIT">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -1185,7 +1606,7 @@
</userDefinedRuntimeAttributes>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ec0-sM-bbQ">
<rect key="frame" x="12" y="709" width="348" height="29"/>
<rect key="frame" x="12" y="725" width="352" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="DELETE">
......@@ -1200,21 +1621,23 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Ft6-FA-tBM">
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="45" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Ft6-FA-tBM">
<rect key="frame" x="2" y="325" width="366" height="302"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="302" id="014-A3-Mrd"/>
<constraint firstAttribute="height" constant="302" id="mg8-v4-WcW"/>
</constraints>
</tableView>
<view contentMode="scaleToFill" id="dqm-7z-zxb">
<rect key="frame" x="2" y="196" width="374" height="121"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jxf-LZ-qwm">
<rect key="frame" x="135" y="98" width="104" height="22"/>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" adjustsImageWhenDisabled="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jxf-LZ-qwm">
<rect key="frame" x="97" y="49" width="180" height="22"/>
<color key="backgroundColor" white="0.88974471830000001" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.90666263199999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Add photo" image="plus.viewfinder" catalog="system">
<color key="titleColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="pressAddPhoto:" destination="M0x-rT-c3r" eventType="touchUpInside" id="eUa-9L-Lal"/>
......@@ -1222,61 +1645,65 @@
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="r02-7k-jVm" customClass="GlidingCollection" customModule="Em_call" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="374" height="98"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Jxf-LZ-qwm" firstAttribute="top" secondItem="r02-7k-jVm" secondAttribute="bottom" id="EQd-J8-rWp"/>
<constraint firstItem="Jxf-LZ-qwm" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" constant="135" id="VKl-hk-K7c"/>
<constraint firstItem="Jxf-LZ-qwm" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="top" constant="98" id="ZxG-XB-5Qs"/>
<constraint firstItem="r02-7k-jVm" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" id="g46-aT-IxT"/>
<constraint firstAttribute="trailing" secondItem="r02-7k-jVm" secondAttribute="trailing" id="l8d-FZ-FRX"/>
<constraint firstItem="r02-7k-jVm" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="top" id="umf-Sx-kb8"/>
<constraint firstAttribute="trailing" secondItem="Jxf-LZ-qwm" secondAttribute="trailing" constant="97" id="0Zw-Fg-PIr"/>
<constraint firstAttribute="bottom" secondItem="r02-7k-jVm" secondAttribute="bottom" constant="23" id="2Ap-KH-hxX"/>
<constraint firstItem="Jxf-LZ-qwm" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" constant="97" id="7QO-k7-mjo"/>
<constraint firstItem="r02-7k-jVm" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="top" id="Sna-6G-2xL"/>
<constraint firstItem="Jxf-LZ-qwm" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="top" constant="49" id="iJQ-bd-sBh"/>
<constraint firstItem="r02-7k-jVm" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" id="jJS-Dy-MNz"/>
<constraint firstAttribute="trailing" secondItem="r02-7k-jVm" secondAttribute="trailing" id="mC6-49-uXe"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="top" secondItem="kFn-VL-JHT" secondAttribute="top" constant="33" id="1HO-4l-smZ"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="iZV-CB-uhN" secondAttribute="trailing" constant="16" id="8Gm-G7-LbR"/>
<constraint firstItem="Ft6-FA-tBM" firstAttribute="trailing" secondItem="dqm-7z-zxb" secondAttribute="trailing" constant="-8" id="AU0-UK-0av"/>
<constraint firstItem="iZV-CB-uhN" firstAttribute="top" secondItem="6Zb-r4-Yob" secondAttribute="bottom" constant="8" symbolic="YES" id="BUh-gG-Ky6"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="iZV-CB-uhN" secondAttribute="trailing" constant="16" id="Fcw-vY-z0c"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" constant="-8" id="H94-46-iac"/>
<constraint firstAttribute="trailing" secondItem="Ec0-sM-bbQ" secondAttribute="trailing" constant="16" id="MAT-k3-Hjm"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="trailing" secondItem="wOb-kl-MC5" secondAttribute="trailingMargin" id="SKr-cB-7Ij"/>
<constraint firstItem="Ft6-FA-tBM" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" id="YRz-OL-zQZ"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="-6" id="ZRD-wl-zp7"/>
<constraint firstItem="Ec0-sM-bbQ" firstAttribute="top" secondItem="iZV-CB-uhN" secondAttribute="bottom" constant="8" symbolic="YES" id="ZWH-BT-4Oh"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="-6" id="Zkm-Tw-24K"/>
<constraint firstItem="dqm-7z-zxb" firstAttribute="top" secondItem="Uox-tQ-aHh" secondAttribute="bottom" constant="8" id="Zr7-U0-G46"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="iZV-CB-uhN" secondAttribute="trailing" constant="16" id="ald-k9-PRp"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="6Zb-r4-Yob" secondAttribute="trailing" constant="16" id="cpA-Gb-Q8h"/>
<constraint firstItem="6Zb-r4-Yob" firstAttribute="top" secondItem="Ft6-FA-tBM" secondAttribute="bottom" constant="8" symbolic="YES" id="hCs-Ij-dS6"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="Ec0-sM-bbQ" secondAttribute="trailing" constant="16" id="hn6-ob-nmx"/>
<constraint firstItem="Ft6-FA-tBM" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="bottom" constant="8" id="hwr-a5-J0y"/>
<constraint firstItem="iZV-CB-uhN" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="o9F-ui-EtT"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="Ec0-sM-bbQ" secondAttribute="trailing" constant="16" id="oDL-s5-dqt"/>
<constraint firstAttribute="bottom" secondItem="Ec0-sM-bbQ" secondAttribute="bottom" constant="281" id="ofa-fY-uFj"/>
<constraint firstItem="Ec0-sM-bbQ" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="p3C-Gr-sFf"/>
<constraint firstItem="6Zb-r4-Yob" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="rCa-tb-MBg"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="6Zb-r4-Yob" secondAttribute="trailing" constant="16" id="s5a-TG-BTy"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="trailing" secondItem="dqm-7z-zxb" secondAttribute="trailing" constant="-8" id="xRJ-xW-FDd"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="trailing" secondItem="kFn-VL-JHT" secondAttribute="trailing" constant="-8" id="zDg-vH-Icf"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="Uox-tQ-aHh" secondAttribute="trailing" constant="8" id="4nm-2k-eky"/>
<constraint firstItem="Ft6-FA-tBM" firstAttribute="top" secondItem="dqm-7z-zxb" secondAttribute="bottom" constant="8" symbolic="YES" id="5Mr-zg-UCG"/>
<constraint firstItem="6Zb-r4-Yob" firstAttribute="top" secondItem="Ft6-FA-tBM" secondAttribute="bottom" constant="8" symbolic="YES" id="67u-3r-wDn"/>
<constraint firstAttribute="bottom" secondItem="Uox-tQ-aHh" secondAttribute="bottom" constant="939" id="85i-lB-BLH"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="leading" secondItem="wOb-kl-MC5" secondAttribute="leading" constant="-6" id="9hA-5w-w3a"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="trailing" secondItem="wOb-kl-MC5" secondAttribute="trailingMargin" id="AiQ-eV-M98"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="6Zb-r4-Yob" secondAttribute="trailing" constant="12" id="B7A-Cg-EKj"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="iZV-CB-uhN" secondAttribute="trailing" constant="16" id="H7e-23-dKR"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="top" secondItem="kFn-VL-JHT" secondAttribute="top" constant="33" id="Iz7-cX-hr5"/>
<constraint firstItem="Uox-tQ-aHh" firstAttribute="trailing" secondItem="Ft6-FA-tBM" secondAttribute="trailing" id="KtY-5v-HuW"/>
<constraint firstItem="iZV-CB-uhN" firstAttribute="top" secondItem="6Zb-r4-Yob" secondAttribute="bottom" constant="13" id="RxD-Bw-gee"/>
<constraint firstItem="dqm-7z-zxb" firstAttribute="top" secondItem="Uox-tQ-aHh" secondAttribute="bottom" constant="8" symbolic="YES" id="Vgy-mJ-62u"/>
<constraint firstItem="Ec0-sM-bbQ" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="cdE-Js-dJJ"/>
<constraint firstItem="6Zb-r4-Yob" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="dJe-zL-l3l"/>
<constraint firstItem="Ft6-FA-tBM" firstAttribute="leading" secondItem="dqm-7z-zxb" secondAttribute="leading" id="fah-9R-1V7"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="iZV-CB-uhN" secondAttribute="trailing" constant="16" id="orG-i2-kHq"/>
<constraint firstItem="Ec0-sM-bbQ" firstAttribute="top" secondItem="iZV-CB-uhN" secondAttribute="bottom" constant="19" id="wr3-IB-CFX"/>
<constraint firstItem="iZV-CB-uhN" firstAttribute="leading" secondItem="kFn-VL-JHT" secondAttribute="leading" constant="12" id="xs5-Ng-2Hh"/>
<constraint firstItem="kFn-VL-JHT" firstAttribute="trailing" secondItem="Ec0-sM-bbQ" secondAttribute="trailing" constant="12" id="y6m-yo-v4J"/>
</constraints>
<viewLayoutGuide key="contentLayoutGuide" id="WbH-6M-xxQ"/>
<viewLayoutGuide key="frameLayoutGuide" id="kFn-VL-JHT"/>
</scrollView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.89023987680000005" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="wOb-kl-MC5" firstAttribute="centerX" secondItem="Ox3-d8-QQc" secondAttribute="centerX" id="GdM-f0-Dc8"/>
<constraint firstAttribute="bottom" secondItem="wOb-kl-MC5" secondAttribute="bottom" constant="-196" id="r7x-fe-FTH"/>
<constraint firstItem="wOb-kl-MC5" firstAttribute="top" secondItem="Ox3-d8-QQc" secondAttribute="topMargin" constant="-1" id="uJS-vU-3G0"/>
<constraint firstAttribute="bottom" secondItem="wOb-kl-MC5" secondAttribute="bottom" constant="-319" id="1ia-ul-PSq"/>
<constraint firstItem="wOb-kl-MC5" firstAttribute="leading" secondItem="Ox3-d8-QQc" secondAttribute="leadingMargin" constant="-1" id="VBq-Ii-xrR"/>
<constraint firstItem="wOb-kl-MC5" firstAttribute="top" secondItem="Ox3-d8-QQc" secondAttribute="topMargin" constant="-12" id="WkE-fe-LdT"/>
<constraint firstItem="wOb-kl-MC5" firstAttribute="centerX" secondItem="Ox3-d8-QQc" secondAttribute="centerX" id="oEQ-6C-Pxa"/>
</constraints>
<edgeInsets key="layoutMargins" top="0.0" left="20" bottom="80" right="20"/>
</view>
<navigationItem key="navigationItem" title="Electric" id="rgt-tm-YA9"/>
<navigationItem key="navigationItem" title="Electric" leftItemsSupplementBackButton="YES" id="rgt-tm-YA9">
<barButtonItem key="backBarButtonItem" title="Back" id="Icn-8n-wyd"/>
</navigationItem>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics" barStyle="black" translucent="NO"/>
<connections>
<outlet property="addPhotoTopConstraint" destination="iJQ-bd-sBh" id="Ymx-kM-6tz"/>
<outlet property="descTextView" destination="snE-N6-ZWS" id="OAG-8o-UdN"/>
<outlet property="glidingView" destination="r02-7k-jVm" id="A7V-ya-2RE"/>
<outlet property="tableView" destination="Ft6-FA-tBM" id="3dX-2R-CNM"/>
......@@ -1284,28 +1711,29 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="ILp-zW-vJS" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3304.347826086957" y="10.044642857142856"/>
<point key="canvasLocation" x="3266.666666666667" y="201.5625"/>
</scene>
<!--Handyman-->
<scene sceneID="YJ2-XP-V1j">
<objects>
<viewController title="Handyman" id="pn9-ml-gRd" customClass="HandmanViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<viewController title="Handyman" modalPresentationStyle="fullScreen" id="pn9-ml-gRd" customClass="HandmanViewController" customModule="Em_call" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="JuT-ER-s2a"/>
<viewControllerLayoutGuide type="bottom" id="mVh-EM-n3c"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="WYQ-qO-1uc">
<view key="view" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WYQ-qO-1uc">
<rect key="frame" x="0.0" y="0.0" width="414" height="813"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Evh-Q6-pmw">
<rect key="frame" x="0.0" y="87" width="406" height="922"/>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" id="Evh-Q6-pmw">
<rect key="frame" x="6" y="36" width="406" height="920"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Sjq-s9-kJ0">
<rect key="frame" x="13" y="22" width="382" height="162"/>
<rect key="frame" x="13" y="-9" width="382" height="193"/>
<subviews>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" verticalCompressionResistancePriority="751" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fbg-un-grM">
<rect key="frame" x="8" y="49.5" width="366" height="29"/>
<rect key="frame" x="8" y="48.5" width="366" height="29"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="tintColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -1322,44 +1750,46 @@
</userDefinedRuntimeAttributes>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Choose a task or discribe a problem" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mtr-Ff-YNJ">
<rect key="frame" x="51" y="21" width="273.5" height="20.5"/>
<rect key="frame" x="0.0" y="21" width="382" height="19.5"/>
<constraints>
<constraint firstAttribute="height" constant="19.5" id="cZ8-W6-Qul"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="Discribe your problem. For example Entering electricity into the house." textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="45z-Bb-LY6">
<rect key="frame" x="8" y="87" width="366" height="76"/>
<rect key="frame" x="8" y="86" width="366" height="108"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="76" id="c1B-J8-sU4"/>
</constraints>
<color key="textColor" systemColor="labelColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<constraints>
<constraint firstItem="Fbg-un-grM" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leadingMargin" id="5fi-RK-jVc"/>
<constraint firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" constant="8" id="UIK-2u-lmt"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leading" constant="51" id="a9z-aN-U7K"/>
<constraint firstItem="45z-Bb-LY6" firstAttribute="top" secondItem="Fbg-un-grM" secondAttribute="bottom" constant="8.5" id="acC-Ea-rhb"/>
<constraint firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" constant="8" id="cMj-vz-ZqD"/>
<constraint firstItem="45z-Bb-LY6" firstAttribute="leading" secondItem="Fbg-un-grM" secondAttribute="leading" id="eO1-8z-ha7"/>
<constraint firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" constant="8" id="iAk-Oq-Zmi"/>
<constraint firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" constant="8" id="iDE-iP-KiT"/>
<constraint firstItem="45z-Bb-LY6" firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" id="im1-y8-dpv"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="top" secondItem="mtr-Ff-YNJ" secondAttribute="bottom" constant="8" symbolic="YES" id="naX-rW-O3u"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="top" secondItem="Sjq-s9-kJ0" secondAttribute="top" constant="21" id="qZX-Cz-16f"/>
<constraint firstAttribute="bottom" secondItem="45z-Bb-LY6" secondAttribute="bottom" constant="-1" id="xkG-q7-3QA"/>
<constraint firstAttribute="trailing" secondItem="Fbg-un-grM" secondAttribute="trailing" constant="8" id="xtK-8u-Sbd"/>
<constraint firstAttribute="trailing" secondItem="mtr-Ff-YNJ" secondAttribute="trailing" id="1vi-Cz-ptj"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="trailing" secondItem="Sjq-s9-kJ0" secondAttribute="trailingMargin" id="8J7-gk-KFz"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="leading" secondItem="45z-Bb-LY6" secondAttribute="leading" id="BOd-2d-3ob"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leading" id="KWM-eU-wj3"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leadingMargin" id="LiF-Bt-xrr"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="top" secondItem="Sjq-s9-kJ0" secondAttribute="top" constant="21" id="Ma1-bO-0O3"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="trailing" secondItem="45z-Bb-LY6" secondAttribute="trailing" id="PU8-iv-KIq"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leading" id="Qaw-Dd-LXk"/>
<constraint firstItem="Fbg-un-grM" firstAttribute="top" secondItem="mtr-Ff-YNJ" secondAttribute="bottom" constant="8" symbolic="YES" id="WDT-Q0-hH2"/>
<constraint firstItem="45z-Bb-LY6" firstAttribute="top" secondItem="Fbg-un-grM" secondAttribute="bottom" constant="8.5" id="Z8c-RZ-MY9"/>
<constraint firstAttribute="bottom" secondItem="45z-Bb-LY6" secondAttribute="bottom" constant="-1" id="hr7-NP-ZQZ"/>
<constraint firstItem="mtr-Ff-YNJ" firstAttribute="leading" secondItem="Sjq-s9-kJ0" secondAttribute="leading" id="nKp-jH-PPy"/>
</constraints>
</view>
<view contentMode="scaleToFill" id="olz-GI-amO">
<rect key="frame" x="16" y="192" width="390" height="100"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xsq-kH-cQr">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xsq-kH-cQr">
<rect key="frame" x="135" y="77" width="105" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="s64-c5-9aS"/>
</constraints>
<state key="normal" title="Add photo" image="plus.viewfinder" catalog="system">
<color key="titleColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
......@@ -1374,20 +1804,26 @@
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="topMargin" id="38P-Ww-7L2"/>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" id="ARh-9f-6OL"/>
<constraint firstAttribute="trailing" secondItem="rSG-Wo-CCu" secondAttribute="trailing" id="C0M-p4-4bf"/>
<constraint firstAttribute="trailing" secondItem="rSG-Wo-CCu" secondAttribute="trailing" id="ThI-8V-UJg"/>
<constraint firstItem="xsq-kH-cQr" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="top" constant="77" id="Xts-Dl-kY9"/>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="top" constant="8" id="doh-SK-But"/>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" id="pER-aD-3mg"/>
<constraint firstItem="xsq-kH-cQr" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" constant="135" id="sj6-0b-uGe"/>
<constraint firstItem="xsq-kH-cQr" firstAttribute="top" secondItem="rSG-Wo-CCu" secondAttribute="bottom" id="sqN-wl-AVW"/>
<constraint firstAttribute="trailing" secondItem="rSG-Wo-CCu" secondAttribute="trailing" id="PhX-k0-EXu"/>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" id="Qob-j0-SyV"/>
<constraint firstItem="xsq-kH-cQr" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" constant="135" id="gF2-Zr-bWJ"/>
<constraint firstItem="xsq-kH-cQr" firstAttribute="top" secondItem="rSG-Wo-CCu" secondAttribute="bottom" id="gqf-O4-CoR"/>
<constraint firstAttribute="bottom" secondItem="xsq-kH-cQr" secondAttribute="bottom" constant="-1" id="lki-Rp-35d"/>
<constraint firstItem="rSG-Wo-CCu" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="topMargin" id="qPu-R0-G7V"/>
</constraints>
</view>
<button contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kkO-w9-OoR">
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" sectionIndexMinimumDisplayRowCount="4" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="TLV-yn-gjz">
<rect key="frame" x="12" y="300" width="382" height="313"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="sectionIndexColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="sectionIndexBackgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</tableView>
<button contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kkO-w9-OoR">
<rect key="frame" x="12" y="571" width="374" height="29"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="29" id="QbC-YG-ZFb"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="BOOK NOW">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -1404,8 +1840,8 @@
<action selector="BOOK_NOW_Click:" destination="pn9-ml-gRd" eventType="touchUpInside" id="V0B-Op-6Nm"/>
</connections>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GF9-jP-npH">
<rect key="frame" x="12" y="608" width="374" height="29"/>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GF9-jP-npH">
<rect key="frame" x="12" y="613" width="382" height="9"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="EDIT">
......@@ -1420,9 +1856,12 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JgQ-M6-bIY">
<rect key="frame" x="12" y="645" width="374" height="29"/>
<button clipsSubviews="YES" alpha="0.5" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JgQ-M6-bIY">
<rect key="frame" x="12" y="632" width="382" height="30"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="9nV-dB-bYz"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<state key="normal" title="DELETE">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -1436,68 +1875,40 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" sectionIndexMinimumDisplayRowCount="4" rowHeight="65" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="TLV-yn-gjz">
<rect key="frame" x="12" y="300" width="382" height="263"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="263" id="YT0-KG-Ptw"/>
</constraints>
<color key="sectionIndexColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="sectionIndexBackgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</tableView>
</subviews>
<constraints>
<constraint firstItem="JgQ-M6-bIY" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="12" id="0Qp-Gq-Bcd"/>
<constraint firstItem="olz-GI-amO" firstAttribute="top" secondItem="Evh-Q6-pmw" secondAttribute="topMargin" constant="184" id="0ji-jq-LSy"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="GF9-jP-npH" secondAttribute="trailing" constant="20" id="2DX-NL-1eB"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" constant="-3" id="4c2-H8-hLQ"/>
<constraint firstItem="kkO-w9-OoR" firstAttribute="top" secondItem="TLV-yn-gjz" secondAttribute="bottom" constant="8" id="4oZ-kk-WSA"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="GF9-jP-npH" secondAttribute="trailing" constant="20" id="AtO-JI-MZV"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="JgQ-M6-bIY" secondAttribute="trailing" constant="20" id="GAW-EO-fcN"/>
<constraint firstItem="JgQ-M6-bIY" firstAttribute="top" secondItem="GF9-jP-npH" secondAttribute="bottom" constant="8" symbolic="YES" id="OeI-LJ-AYe"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="GF9-jP-npH" secondAttribute="trailing" constant="20" id="P8w-aP-v97"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="trailing" secondItem="olz-GI-amO" secondAttribute="trailing" constant="-12" id="PC4-nf-ARX"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="top" secondItem="8Dc-om-cYb" secondAttribute="top" constant="23" id="TtP-Gw-B5G"/>
<constraint firstItem="GF9-jP-npH" firstAttribute="top" secondItem="kkO-w9-OoR" secondAttribute="bottom" constant="8" symbolic="YES" id="Xmn-Tz-bzi"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="bottom" constant="8" id="cnM-9A-8eH"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="trailing" secondItem="olz-GI-amO" secondAttribute="trailing" constant="-11" id="err-sh-9cz"/>
<constraint firstItem="kkO-w9-OoR" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="12" id="h3A-Yi-K0d"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="kkO-w9-OoR" secondAttribute="trailing" constant="20" id="hZI-xC-C7Q"/>
<constraint firstItem="olz-GI-amO" firstAttribute="top" secondItem="Sjq-s9-kJ0" secondAttribute="bottom" constant="8" id="hqh-2Y-kZQ"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="JgQ-M6-bIY" secondAttribute="trailing" constant="20" id="ih2-RT-a8h"/>
<constraint firstItem="GF9-jP-npH" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="12" id="qsI-zw-AwC"/>
<constraint firstAttribute="trailing" secondItem="JgQ-M6-bIY" secondAttribute="trailing" constant="20" id="rgZ-HZ-aSn"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="trailing" secondItem="Evh-Q6-pmw" secondAttribute="trailingMargin" constant="-3" id="vTP-Ev-j8U"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="kkO-w9-OoR" secondAttribute="trailing" constant="20" id="w4Y-HX-wj5"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="trailing" secondItem="8Dc-om-cYb" secondAttribute="trailing" constant="-11" id="w5k-Ew-bs3"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="leading" secondItem="olz-GI-amO" secondAttribute="leading" constant="-4" id="zZu-6n-fqh"/>
<constraint firstItem="GF9-jP-npH" firstAttribute="leading" secondItem="JgQ-M6-bIY" secondAttribute="leading" id="2uT-Nr-Sut"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="leading" secondItem="kkO-w9-OoR" secondAttribute="leading" id="ByS-L6-hdm"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="trailing" secondItem="JgQ-M6-bIY" secondAttribute="trailing" id="G1v-mu-pDN"/>
<constraint firstItem="kkO-w9-OoR" firstAttribute="top" secondItem="TLV-yn-gjz" secondAttribute="bottom" constant="10" id="GSa-10-eUI"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="bottom" secondItem="GF9-jP-npH" secondAttribute="bottom" constant="246" id="GuC-u7-WLS"/>
<constraint firstAttribute="trailing" secondItem="Sjq-s9-kJ0" secondAttribute="trailing" constant="11" id="Guy-ND-4Aw"/>
<constraint firstItem="GF9-jP-npH" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="12" id="H0U-44-fGv"/>
<constraint firstAttribute="bottom" secondItem="JgQ-M6-bIY" secondAttribute="bottom" constant="206" id="Jm3-w1-OLE"/>
<constraint firstItem="olz-GI-amO" firstAttribute="top" secondItem="Sjq-s9-kJ0" secondAttribute="bottom" constant="8" symbolic="YES" id="LS2-vT-H8L"/>
<constraint firstItem="GF9-jP-npH" firstAttribute="top" secondItem="kkO-w9-OoR" secondAttribute="bottom" constant="13" id="UMf-ff-iTZ"/>
<constraint firstItem="JgQ-M6-bIY" firstAttribute="top" secondItem="kkO-w9-OoR" secondAttribute="bottom" constant="32" id="URa-QS-LA3"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="12" id="ViP-F6-W6V"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="top" secondItem="olz-GI-amO" secondAttribute="bottom" constant="8" symbolic="YES" id="Yba-Sg-AdI"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="top" secondItem="8Dc-om-cYb" secondAttribute="top" constant="43" id="gu9-32-TMx"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="Sjq-s9-kJ0" secondAttribute="trailing" constant="11" id="me2-K5-D78"/>
<constraint firstItem="kkO-w9-OoR" firstAttribute="top" secondItem="Evh-Q6-pmw" secondAttribute="top" constant="623" id="nIr-qc-nSb"/>
<constraint firstItem="Sjq-s9-kJ0" firstAttribute="leading" secondItem="8Dc-om-cYb" secondAttribute="leading" constant="13" id="ohx-JD-xkt"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="kkO-w9-OoR" secondAttribute="trailing" constant="20" id="pcE-25-63Q"/>
<constraint firstItem="TLV-yn-gjz" firstAttribute="centerX" secondItem="Evh-Q6-pmw" secondAttribute="centerX" id="q8l-cG-Anc"/>
<constraint firstItem="8Dc-om-cYb" firstAttribute="trailing" secondItem="GF9-jP-npH" secondAttribute="trailing" constant="12" id="xmh-jl-2OK"/>
</constraints>
<viewLayoutGuide key="contentLayoutGuide" id="xlr-cK-01q"/>
<viewLayoutGuide key="frameLayoutGuide" id="8Dc-om-cYb"/>
</scrollView>
<tabBar contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" barStyle="black" translucent="NO" id="enr-1H-YjZ">
<rect key="frame" x="0.0" y="815" width="414" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<items>
<tabBarItem title="Home" image="home" id="HHR-ij-zvy"/>
<tabBarItem title="Booking" image="booking" id="qBq-MR-ewD"/>
<tabBarItem title="Chat" image="chat" id="EOd-NR-HEU"/>
<tabBarItem title="Profile" image="profile" id="BMw-vu-66M"/>
</items>
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</tabBar>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<gestureRecognizers/>
<constraints>
<constraint firstItem="Evh-Q6-pmw" firstAttribute="leading" secondItem="WYQ-qO-1uc" secondAttribute="leading" id="78s-jo-MQw"/>
<constraint firstAttribute="bottom" secondItem="Evh-Q6-pmw" secondAttribute="bottom" constant="-196" id="Dz6-Oo-GIK"/>
<constraint firstItem="Evh-Q6-pmw" firstAttribute="top" secondItem="WYQ-qO-1uc" secondAttribute="topMargin" constant="-1" id="cbV-vU-6is"/>
<constraint firstAttribute="trailingMargin" secondItem="Evh-Q6-pmw" secondAttribute="trailing" constant="-12" id="gxj-CM-1ut"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Hamdyman" largeTitleDisplayMode="never" id="o2h-fn-Vof"/>
<navigationItem key="navigationItem" title="Hamdyman" leftItemsSupplementBackButton="YES" largeTitleDisplayMode="never" id="o2h-fn-Vof">
<barButtonItem key="backBarButtonItem" title="Back" id="XMq-F0-Vbh"/>
</navigationItem>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics" barStyle="black" translucent="NO"/>
<connections>
<outlet property="addr" destination="mtr-Ff-YNJ" id="2bR-pq-qFU"/>
<outlet property="descTextView" destination="45z-Bb-LY6" id="9rN-DZ-zCy"/>
......@@ -1507,7 +1918,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Lmm-tD-Lz3" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="4457.971014492754" y="34.821428571428569"/>
<point key="canvasLocation" x="4022" y="279"/>
</scene>
<!--Map-->
<scene sceneID="tRu-tc-UB7">
......@@ -1584,7 +1995,7 @@
</connections>
</pongPressGestureRecognizer>
</objects>
<point key="canvasLocation" x="4843" y="730"/>
<point key="canvasLocation" x="6662.3188405797109" y="729.91071428571422"/>
</scene>
<!--DateTimeController-->
<scene sceneID="BuO-Pk-89Q">
......@@ -1746,7 +2157,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="jfl-KJ-u1X" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="5551" y="279"/>
<point key="canvasLocation" x="7371.0144927536239" y="278.57142857142856"/>
</scene>
<!--Plumbing-->
<scene sceneID="hYv-nD-Jeg">
......@@ -1919,7 +2330,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="0Wq-Me-WNR" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3683" y="-947"/>
<point key="canvasLocation" x="3545" y="-1096"/>
</scene>
<!--Electrician-->
<scene sceneID="x8E-tO-mFN">
......@@ -2259,7 +2670,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="rab-pP-gh6" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="4564" y="-948"/>
<point key="canvasLocation" x="5473.913043478261" y="-948.21428571428567"/>
</scene>
<!--Tab Bar Controller-->
<scene sceneID="RRk-WJ-HQk">
......@@ -2510,14 +2921,13 @@
<!--LOGO-->
<scene sceneID="RhX-dw-ZYH">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" modalPresentationStyle="fullScreen" interfaceStyle="dark" id="VPr-Uq-avW" sceneMemberID="viewController">
<navigationController automaticallyAdjustsScrollViewInsets="NO" modalPresentationStyle="fullScreen" interfaceStyle="light" navigationBarHidden="YES" hidesBarsWhenVerticallyCompact="YES" id="VPr-Uq-avW" sceneMemberID="viewController">
<extendedEdge key="edgesForExtendedLayout"/>
<tabBarItem key="tabBarItem" title="LOGO" image="home" id="S4c-c3-jHH"/>
<toolbarItems/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" translucent="NO" prompted="NO"/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics" translucent="NO"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" translucent="NO" id="0YZ-fY-ZcW">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="0YZ-fY-ZcW">
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
......@@ -2527,7 +2937,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="BRY-Ss-X9y" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1299" y="-783"/>
<point key="canvasLocation" x="1858" y="-861"/>
</scene>
<!--PROFILE-->
<scene sceneID="s51-NC-q1y">
......@@ -2591,10 +3001,10 @@
<image name="booking" width="10" height="10"/>
<image name="chat" width="10.5" height="10"/>
<image name="edit" width="20" height="20"/>
<image name="electric" width="54" height="54"/>
<image name="electricico" width="31" height="31"/>
<image name="emerg_service" width="49" height="49"/>
<image name="eva" width="35" height="35"/>
<image name="handynan" width="54" height="54"/>
<image name="handmanico" width="31" height="31"/>
<image name="home" width="9" height="10.5"/>
<image name="ico_changepsw" width="11" height="11"/>
<image name="ico_handyman" width="30" height="30"/>
......@@ -2602,8 +3012,9 @@
<image name="ico_loc_up" width="30" height="30"/>
<image name="ico_logout" width="8" height="10"/>
<image name="ico_plumber" width="30" height="30"/>
<image name="lockico" width="31" height="31"/>
<image name="microphon" width="22" height="21.5"/>
<image name="plumbing" width="54" height="54"/>
<image name="plumberico" width="31" height="31"/>
<image name="plus.viewfinder" catalog="system" width="128" height="115"/>
<image name="profile" width="10" height="11"/>
<image name="square.and.pencil" catalog="system" width="128" height="115"/>
......@@ -2622,6 +3033,9 @@
<systemColor name="systemGray6Color">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGroupedBackgroundColor">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemOrangeColor">
<color red="1" green="0.58431372549019611" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
......
......@@ -18,7 +18,7 @@ class Setting: NSObject {
}
protocol SettingsLauncherDelegate:class {
func settingsDelegateClick(img: UIImage?)
func settingsDelegateClick(img: UIImage?,selRow:Int)
}
class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataSource, UIImagePickerControllerDelegate, UINavigationControllerDelegate
......@@ -26,18 +26,28 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
let imagePickerController = UIImagePickerController()
var imgs: [UIImage]? = nil
let blackView = UIView()
weak var delegate:SettingsLauncherDelegate?
let textLocation:UITextField = UITextField()
let whatDoYou:UITextField = UITextField()
let micro = UIImageView()
let doIt:UIButton = UIButton()
let back = UIView()
weak var delegate:SettingsLauncherDelegate?
var dispatcher:Int = 0
var tableView = UITableView()
var navController:UINavigationController? = nil
let frazes:[String] = ["Select source", "Camera", "Photogalery","Cancel",
"Electrician Emergency Departure",
"Entering electricity into the house",
"Dismantling the electric heated towel rail",
"Dismantling the electric meter"]
let cellId = "cellId"
let cellHeight: CGFloat = 50
var imgArray:[UIImage]? = []
func showSettings(navigVC:UINavigationController) {
func showSettings(navigVC:UINavigationController,dispatcher:Int) {
// func showSettings(navigVC:UINavigationController) {
//show menu
tableView.delegate = self
tableView.dataSource = self
......@@ -46,34 +56,112 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
imagePickerController.allowsEditing = true
tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellId)
navController = navigVC
self.dispatcher = dispatcher
if dispatcher == 0 {
selectPhoto()
}
else {
selectWork()
}
}
func selectPhoto() {
if let window = UIApplication.shared.keyWindow {
blackView.backgroundColor = UIColor(white: 0, alpha: 0.5)
blackView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleDismiss)))
window.addSubview(blackView)
self.tableView.layer.cornerRadius = 10
window.addSubview(tableView)
// let height: CGFloat = CGFloat(settings.count) * cellHeight
let height: CGFloat = 200
let yw = window.frame.height - height
tableView.frame = CGRect(x: 10, y: window.frame.height, width: window.frame.width-10, height: height)
blackView.frame = window.frame
blackView.alpha = 0
UIView.animate(withDuration: 0.5, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseOut, animations: {
self.blackView.alpha = 1
self.tableView.frame = CGRect(x:10, y: yw, width: self.tableView.frame.width-10, height: self.tableView.frame.height)
self.tableView.layer.cornerRadius = 10
}, completion: nil)
}
}
func selectWork() {
if let window = UIApplication.shared.keyWindow {
blackView.backgroundColor = UIColor(white: 0, alpha: 0.5)
blackView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleDismiss)))
window.addSubview(blackView)
self.back.layer.cornerRadius = 10
// self.tableView.layer.cornerRadius = 10
// window.addSubview(tableView)
window.addSubview(back)
let height: CGFloat = 370.0
back.frame = CGRect(x: 10, y: window.frame.height-160.0, width: window.frame.width-10, height: height)
back.translatesAutoresizingMaskIntoConstraints = false
back.centerXAnchor.constraint(equalTo: window.centerXAnchor).isActive = true
back.widthAnchor.constraint(equalToConstant: (window.frame.width-10)).isActive = true
var margins = window.layoutMarginsGuide
// back.leadingAnchor.constraint(equalTo: margins.leadingAnchor, constant: 20).isActive = true
// back.trailingAnchor.constraint(equalTo: margins.trailingAnchor, constant: 20).isActive = true
//topAnchor
back.topAnchor.constraint(equalTo: margins.topAnchor, constant: (window.frame.height - 85)).isActive = true
// back.bottomAnchor.constraint(equalTo: margins.bottomAnchor, constant: 20).isActive = true
// back.widthAnchor.constraint(equalToConstant:(window.frame.width-10)).isActive = true
back.heightAnchor.constraint(equalToConstant: height).isActive = true
let yw = window.frame.height - height - 120
// let yw = window.frame.height - height - 85
// back.frame = CGRect(x: 10, y: window.frame.height-160.0, width: window.frame.width-10, height: height)
// blackView.frame = window.frame
back.backgroundColor = UIColor(white: 1.0, alpha: 1.0)
// let height: CGFloat = CGFloat(settings.count) * cellHeight
//let height: CGFloat = 200
// let yw = window.frame.height - height - 160
// tableView.frame = CGRect(x: 10, y: window.frame.height-160, width: window.frame.width-10, height: height)
/* textLocation.frame = CGRect(x: 20, y: window.frame.height-150.0, width: window.frame.width-60, height: 55)*/
back.addSubview(textLocation)
textLocation.translatesAutoresizingMaskIntoConstraints = false
textLocation.centerXAnchor.constraint(equalTo: back.centerXAnchor).isActive = true
textLocation.widthAnchor.constraint(equalToConstant: (window.frame.width-60)).isActive = true
var margin = back.layoutMarginsGuide
textLocation.topAnchor.constraint(equalTo: margin.topAnchor, constant: (window.frame.height - height - 85)).isActive = true
textLocation.heightAnchor.constraint(equalToConstant: 55).isActive = true
textLocation.text = "Unknow address"
// textLocation.backgroundColor = UIColor(white: 0, alpha: 1.0)
// textLocation.backgroundColor = UIColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
// textLocation.textColor = UIColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
tableView.frame = CGRect(x: 10, y: window.frame.height-240.0, width: window.frame.width-10, height: height - 200)
// back.addSubview(tableView)
blackView.frame = window.frame
blackView.alpha = 0
//ANIMATION
UIView.animate(withDuration: 0.7, delay: 0.0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseOut, animations: {
self.blackView.alpha = 1
// self.tableView.frame = CGRect(x:10, y: yw, width:
//self.tableView.frame.width-10, height: self.tableView.frame.height)
// self.back.frame = CGRect(x:10, y: yw, width:
// self.back.frame.width-10, height: self.back.frame.height)
self.back.translatesAutoresizingMaskIntoConstraints = false
self.back.centerXAnchor.constraint(equalTo: window.centerXAnchor).isActive = true
self.back.widthAnchor.constraint(equalToConstant: (window.frame.width-20)).isActive = true
margins = window.layoutMarginsGuide
self.back.topAnchor.constraint(equalTo: margins.topAnchor, constant: yw).isActive = true
self.back.heightAnchor.constraint(equalToConstant: self.back.frame.height).isActive = true
// window.addSubview(self.back)
// self.textLocation.frame = CGRect(x: 20, y: yw - 425, width: window.frame.width-60, height: self.textLocation.frame.height)
self.textLocation.translatesAutoresizingMaskIntoConstraints = false
self.textLocation.centerXAnchor.constraint(equalTo: self.back.centerXAnchor).isActive = true
self.textLocation.widthAnchor.constraint(equalToConstant: (window.frame.width-60)).isActive = true
margin = self.back.layoutMarginsGuide
self.textLocation.topAnchor.constraint(equalTo: margin.topAnchor, constant: 10).isActive = true
self.textLocation.heightAnchor.constraint(equalToConstant: 55).isActive = true
self.tableView.frame = CGRect(x:10, y: yw - 300, width:
self.tableView.frame.width-20, height: self.tableView.frame.height)
self.tableView.layer.cornerRadius = 10
self.back.layer.cornerRadius = 10
}, completion: nil)
}
}
......@@ -81,10 +169,17 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
@objc func handleDismiss() {
UIView.animate(withDuration: 0.5) {
self.blackView.alpha = 0
if self.dispatcher == 0 {
if let window = UIApplication.shared.keyWindow {
self.tableView.frame = CGRect(x: 10, y: window.frame.height, width: self.tableView.frame.width-10, height: self.tableView.frame.height)
}
} else {
if let window = UIApplication.shared.keyWindow {
self.back.frame = CGRect(x: 10, y: window.frame.height, width: self.back.frame.width-10, height: self.back.frame.height)
self.textLocation.frame = CGRect(x: 20, y:window.frame.height+10, width: window.frame.width-20, height: 55)
self.tableView.frame = CGRect(x: 10, y: window.frame.height, width: self.tableView.frame.width-10, height: self.tableView.frame.height)
}
}
}
}
//The delegate UIImagePickerController
......@@ -93,7 +188,7 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
else {
return }
self.delegate?.settingsDelegateClick(img: image)
self.delegate?.settingsDelegateClick(img: image,selRow: 0)
self.navController?.dismiss(animated: true)
}
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
......@@ -115,13 +210,19 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellId, for: indexPath)
let row = indexPath.row
switch row {
case 0: cell.textLabel?.text = "Select source"
if dispatcher == 0 {
cell.textLabel?.text = frazes[row]
} else {
cell.textLabel?.text = frazes[row+4]
}
/* switch row {
case 0:
cell.textLabel?.text = frazes[row]
case 1: cell.textLabel?.text = "Camera"
case 2: cell.textLabel?.text = "Photogalery"
case 3: cell.textLabel?.text = "Cancel"
default: break
}
}*/
// cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
// cell.text.textAlignment = .center
cell.textLabel?.textAlignment = .center
......@@ -135,7 +236,9 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
(vc as! DataProfileViewController).delegate = self
*/
let row = indexPath.row
self.delegate?.settingsDelegateClick(img:nil,selRow: row)
// navigationController?.pushViewController(vc, animated: true)
if dispatcher == 0 {
switch row //if indexPath.row == 0
{
case 0:
......@@ -154,6 +257,15 @@ class SettingsLauncher : UIViewController, UITableViewDelegate, UITableViewDataS
default: return
}
}
else {
handleDismiss()
let storyboard = UIStoryboard(name: "Main", bundle: nil)
var vc:UIViewController
vc = storyboard.instantiateViewController(withIdentifier: "Electric")
// (vc as! ElectricTableViewController).delegate = self
navController?.pushViewController(vc, animated: true)
}
}
}
......
......@@ -102,10 +102,11 @@ extension GlidingCollection: UIGestureRecognizerDelegate {
let topOverylayHeight = collectionView.frame.minY
// topOverlayGradient.frame = CGRect(x: 0, y: 0, width: bounds.width, height: topOverylayHeight)
topOverlayGradient.frame = CGRect(x: 0, y: bounds.height/2, width: bounds.width, height: topOverylayHeight/2)
topOverlayGradient.frame = CGRect(x: 0, y: bounds.height/2 - cardSize.height/2, width: bounds.width, height: 0)
let bottomOverylayHeight = bounds.height - collectionView.frame.maxY
bottomOverlayGradient.frame = CGRect(x: 0, y: collectionView.frame.maxY, width: bounds.width, height: bottomOverylayHeight)
// let bottomOverylayHeight = bounds.height - collectionView.frame.maxY
let bottomOverylayHeight = 0
bottomOverlayGradient.frame = CGRect(x: 0, y: collectionView.frame.maxY, width: bounds.width, height: CGFloat(bottomOverylayHeight))
}
/// :nodoc:
......
//
// GlidingCollection.swift
// GlidingCollection
// GlidingConfig.swift
// GlidingConfig
//
......@@ -22,7 +22,8 @@ public struct GlidingConfig {
/// Scale factor of inactive sections buttons.
public var buttonsScaleFactor: CGFloat = 0.65
/// Active section button color.
public var activeButtonColor: UIColor = .darkGray
// public var activeButtonColor: UIColor = .darkGray
public var activeButtonColor: UIColor = .lightGray
/// Inactive sections buttons color.
public var inactiveButtonsColor: UIColor = .lightGray
/// Space between collectionView's cells.
......
//
// GlidingCollection.swift
// GlidingCollection
// GlidingLayout.swift
//
......
//
// SmallListWorkVC.swift
// Em-call
//
// Created by Alex Sh on 19.03.2022.
//
import UIKit
class SmallListWorkVC: UIViewController {
let fullView: CGFloat = 100
var partialView: CGFloat {
return UIScreen.main.bounds.height - (400 + UIApplication.shared.statusBarFrame.height)
// return UIScreen.main.bounds.height - 200
}
override func viewDidLoad() {
super.viewDidLoad()
let gesture = UIPanGestureRecognizer.init(target: self, action: #selector(panGesture))
//gesture.delegate = self
view.addGestureRecognizer(gesture)
roundViews()
// Do any additional setup after loading the view.
}
override func viewDidAppear(_ animated: Bool) {
UIView.animate(withDuration: 0.6, animations: { [weak self] in
let frame = self?.view.frame
let yComponent = self?.partialView
self?.view.frame = CGRect(x: 0, y: yComponent!, width: frame!.width, height: frame!.height - 100)
})
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// prepareBackgroundView()
}
@IBAction func pressWorkType(_ sender: Any) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc:UIViewController
if #available(iOS 13.0, *) {
vc = storyboard.instantiateViewController(identifier: "Electric") as! ElectricTableViewController
} else {
vc = storyboard.instantiateViewController(withIdentifier: "Electric")
}
navigationController?.pushViewController(vc, animated: true)
}
@objc func panGesture(_ recognizer: UIPanGestureRecognizer) {
let translation = recognizer.translation(in: self.view)
let velocity = recognizer.velocity(in: self.view)
let y = self.view.frame.minY
if (y + translation.y >= fullView) && (y + translation.y <= partialView) {
self.view.frame = CGRect(x: 0, y: y + translation.y, width: view.frame.width, height: view.frame.height)
recognizer.setTranslation(CGPoint.zero, in: self.view)
}
if recognizer.state == .ended {
var duration = velocity.y < 0 ? Double((y - fullView) / -velocity.y) : Double((partialView - y) / velocity.y )
duration = duration > 1.3 ? 1 : duration
UIView.animate(withDuration: duration, delay: 0.0, options: [.allowUserInteraction], animations: {
if velocity.y >= 0 {
self.view.frame = CGRect(x: 0, y: self.partialView, width: self.view.frame.width, height: self.view.frame.height)
} else {
self.view.frame = CGRect(x: 0, y: self.fullView, width: self.view.frame.width, height: self.view.frame.height)
}
}, completion: { [weak self] _ in
if ( velocity.y < 0 ) {
}
})
}
}
func prepareBackgroundView(){
let blurEffect = UIBlurEffect.init(style: .dark)
let visualEffect = UIVisualEffectView.init(effect: blurEffect)
let bluredView = UIVisualEffectView.init(effect: blurEffect)
bluredView.contentView.addSubview(visualEffect)
visualEffect.frame = UIScreen.main.bounds
bluredView.frame = UIScreen.main.bounds
view.insertSubview(bluredView, at: 0)
}
func roundViews() {
view.layer.cornerRadius = 5
/* holdView.layer.cornerRadius = 3
left.layer.cornerRadius = 10
right.layer.cornerRadius = 10
// left.layer.borderColor = UIColor(colorLiteralRed: 0, green: 148/255, blue: 247.0/255.0, alpha: 1).cgColor
left.layer.borderWidth = 1*/
view.clipsToBounds = true
}
/*
// 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.
}
*/
}
extension SmallListWorkVC: UIGestureRecognizerDelegate {
// Solution
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
let gesture = (gestureRecognizer as! UIPanGestureRecognizer)
let direction = gesture.velocity(in: view).y
let y = view.frame.minY
// if (y == fullView && tableView.contentOffset.y == 0 && direction > 0) || (y == partialView) {
if (y == fullView && direction > 0) || (y == partialView) {
// tableView.isScrollEnabled = false
} else {
// tableView.isScrollEnabled = true
}
return false
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17505"/>
<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="SmallListWorkVC" customModule="Em_call" customModuleProvider="target">
<connections>
<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="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="15" translatesAutoresizingMaskIntoConstraints="NO" id="nqP-jn-KuZ">
<rect key="frame" x="20" y="169" width="374" height="181"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Electrician Emergency Departure" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="fr2-pg-bHP">
<rect key="frame" x="0.0" y="0.0" width="374" height="34"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="pressWorkType:" destination="-1" eventType="editingDidEnd" id="3vk-8Q-bDe"/>
</connections>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Entering electricity into the house" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Z63-Ea-CPs">
<rect key="frame" x="0.0" y="49" width="374" height="34"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Dismantling the electric heated towel rail" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Gg2-Ve-Pf1">
<rect key="frame" x="0.0" y="98" width="374" height="34"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Dismantling the electric meter" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="dRM-xy-rte">
<rect key="frame" x="0.0" y="147" width="374" height="34"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="B9M-8S-4PD">
<rect key="frame" x="21" y="367" width="372" height="36"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="36" id="Loh-aF-Qb1"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" title="DO IT!">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
</button>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="What do you want to do?" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="31i-Py-j20">
<rect key="frame" x="21" y="113" width="324" height="34"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="324" id="Kci-qW-DmA"/>
</constraints>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="6"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<textField opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Undefined address" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="VWO-IA-oF7">
<rect key="frame" x="21" y="60" width="372" height="34"/>
<color key="backgroundColor" systemColor="systemGroupedBackgroundColor"/>
<color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="microphon" translatesAutoresizingMaskIntoConstraints="NO" id="Sc0-cO-Rk1">
<rect key="frame" x="353" y="111" width="38" height="38"/>
</imageView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemGroupedBackgroundColor"/>
<constraints>
<constraint firstItem="nqP-jn-KuZ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="20" id="3NQ-iu-OjB"/>
<constraint firstItem="Sc0-cO-Rk1" firstAttribute="top" secondItem="VWO-IA-oF7" secondAttribute="bottom" constant="17" id="LrC-f6-dlh"/>
<constraint firstItem="nqP-jn-KuZ" firstAttribute="top" secondItem="Sc0-cO-Rk1" secondAttribute="bottom" constant="20" id="QEO-iQ-tg0"/>
<constraint firstItem="Sc0-cO-Rk1" firstAttribute="centerY" secondItem="31i-Py-j20" secondAttribute="centerY" id="TDb-ta-TUf"/>
<constraint firstItem="B9M-8S-4PD" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="21" id="TGQ-gf-5CR"/>
<constraint firstItem="31i-Py-j20" firstAttribute="leading" secondItem="B9M-8S-4PD" secondAttribute="leading" id="V8m-uy-Afk"/>
<constraint firstItem="nqP-jn-KuZ" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="169" id="Vd6-l6-D0K"/>
<constraint firstItem="nqP-jn-KuZ" firstAttribute="top" secondItem="31i-Py-j20" secondAttribute="bottom" constant="22" id="b8j-fB-CM9"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Sc0-cO-Rk1" secondAttribute="trailing" constant="23" id="cTk-wz-Zap"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="nqP-jn-KuZ" secondAttribute="trailing" constant="20" id="jyh-hc-rAZ"/>
<constraint firstItem="Sc0-cO-Rk1" firstAttribute="leading" secondItem="31i-Py-j20" secondAttribute="trailing" constant="8" symbolic="YES" id="lT3-Dz-ylw"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="B9M-8S-4PD" secondAttribute="trailing" constant="21" id="mUT-4H-oJU"/>
<constraint firstItem="B9M-8S-4PD" firstAttribute="top" secondItem="nqP-jn-KuZ" secondAttribute="bottom" constant="17" id="nOE-qq-NJe"/>
</constraints>
<point key="canvasLocation" x="140.57971014492756" y="87.723214285714278"/>
</view>
</objects>
<resources>
<image name="microphon" width="22" height="21.5"/>
<systemColor name="systemGroupedBackgroundColor">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
Showing Recent Messages
The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.2.99.
Value for SWIFT_VERSION cannot be empty.
//
// DoubleElectricVC.swift
// Em-call
//
// Created by Alex Sh on 20.03.2022.
//
import UIKit
class DoubleElectricVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// 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.
}
*/
}
......@@ -9,14 +9,17 @@ import UIKit
class ElectricTableViewController:UIViewController,UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate, UITextViewDelegate
{
//@IBOutlet weak var addPhotoTopConstraint: NSLayoutConstraint!
@IBOutlet weak var addPhotoTopConstraint: NSLayoutConstraint!
var settingsLauncher:SettingsLauncher = SettingsLauncher()
@IBOutlet weak var glidingView: GlidingCollection!
fileprivate var collectionView: UICollectionView!
@IBOutlet weak var descTextView: UITextView!
var selRow:Int = 0
let cellReuseIdentifier = "cell"
var address = "Unknow address"
var dateAndTime = "2022/02/23"
......@@ -37,12 +40,14 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
settingsLauncher.delegate = self
// Register the table view cell class and its reuse id
self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier)
tableView.rowHeight = 65
tableView.rowHeight = 45
tableView.delegate = self
tableView.dataSource = self
descTextView.delegate = self
setup()
glidingView.isHidden = true
// addPhotoTopConstraint.constant = 78
}
override func viewWillAppear(_ animated: Bool) {
......@@ -66,14 +71,15 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
@IBAction func pressAddPhoto(_ sender: Any) {
guard let navVC = self.navigationController
else { return }
settingsLauncher.showSettings(navigVC: navVC)
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
glidingView.isHidden = false
addPhotoTopConstraint.constant = 98
}
func loadImages() {
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
descTextView.resignFirstResponder()
}
......@@ -93,6 +99,18 @@ class ElectricTableViewController:UIViewController,UITableViewDataSource, UITabl
return 4
}
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
// Создаём константу, именна через неё мы будем обращаться к свойствам и изменять их
let header = view as! UITableViewHeaderFooterView
// Установить цвет текста в label
header.textLabel?.textColor = .darkGray
// Установить цвет фона для секции
header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label
header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 15)
}
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
switch section {
......@@ -194,12 +212,15 @@ extension ElectricTableViewController:CalendarViewControllerDelegate {
}
extension ElectricTableViewController:SettingsLauncherDelegate {
func settingsDelegateClick(img: UIImage?) {
func settingsDelegateClick(img: UIImage?,selRow:Int) {
if img != nil {
images.append(img!)
}
collectionView.reloadData()
}
else {
self.selRow = selRow
}
}
}
// MARK: - CollectionView 🎛
extension ElectricTableViewController: UICollectionViewDataSource, UICollectionViewDelegate {
......
......@@ -47,13 +47,27 @@ class EmerElecricianViewController: UIViewController, UITableViewDataSource, UIT
return 1
}
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
// Создаём константу, именнo через неё мы будем обращаться к свойствам и изменять их
let header = view as! UITableViewHeaderFooterView
// Установить цвет текста в label
header.textLabel?.textColor = .black
// Установить цвет фона для секции
header.tintColor = UIColor.white
// Установить шрифт и размер шрифта для label
header.textLabel?.font = UIFont(name: "Helvetica-Regular", size: 10)
}
// Вызовите метод titleForHeaderInSection в TableViewController классе и добавьте в него текст
func numberOfSections(in tableView: UITableView) -> Int {
return 4
}// Default is 1 if not implemented
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
switch section {
case 0: return ("Work location")
case 0:
return ("Work location")
case 1: return ("Date and Time")
case 2: return ("Your contacts")
case 3: return ("Payment")
......@@ -67,6 +81,11 @@ class EmerElecricianViewController: UIViewController, UITableViewDataSource, UIT
let section = indexPath.section
switch section {
case 0: cell.textLabel?.text = address
//// cell.setSelected(true, animated: false)
// cell.textLabel?.textColor = UIColor.darkGray
// cell.textLabel?.font.pointSize = 10
// = UIFont(name: "Helvetica-Regular", size: 10)
//// cell.setSelected(false, animated: false)
case 1: cell.textLabel?.text = dateAndTime
case 2: cell.textLabel?.text = contact
case 3: cell.textLabel?.text = card
......
......@@ -27,7 +27,7 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
// fileprivate var images = [UIImage(named: "plus")!]
fileprivate var images: [UIImage?] = []
let cellReuseIdentifier = "cell"
var selRow:Int = 0
var address = "Unknow address"
var dateAndTime = "2022/02/23"
......@@ -57,7 +57,7 @@ class HandmanViewController: UIViewController, UITableViewDataSource,
@IBAction func pressAddPhoto(_ sender: Any) {
guard let navVC = self.navigationController
else { return }
settingsLauncher.showSettings(navigVC: navVC)
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
}
@IBAction func BOOK_NOW_Click(_ sender: Any) {
......@@ -235,10 +235,13 @@ extension HandmanViewController:CalendarViewControllerDelegate {
}
extension HandmanViewController:SettingsLauncherDelegate {
func settingsDelegateClick(img: UIImage?) {
func settingsDelegateClick(img: UIImage?,selRow:Int) {
if img != nil {
images.append(img!)
}
collectionView.reloadData()
}
else {
self.selRow = selRow
}
}
}
......@@ -13,6 +13,14 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
{
@IBOutlet weak var text_Location: UITextField!
var count:Int = 0
// var settingsLauncher:SettingsLauncher = SettingsLauncher()
var bottomSheetVC:UIViewController? = nil
var selRow:Int = 0
@IBOutlet weak var bottomView: UIView!
// @IBOutlet weak var swipeableView: SwipeableView!
// @IBOutlet weak var swipeableView: MKMapView!
var showAlert:ShowAlert = ShowAlert()
@IBOutlet weak var mapView: MKMapView!
//let locationManager = LocationMng(mainView:self)
......@@ -31,6 +39,7 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
}
@IBAction func pressEmerElectric(_ sender: Any) {
}
@IBAction func pressEmergency(_ sender: Any) {
buttonLockUp.isHidden = false
buttonEmerElectric.isHidden = false
......@@ -45,19 +54,6 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
} else {
self.view.alpha = 1.0
}
/* let detailsWidth: CGFloat = view.bounds.width
let detailsHeight: CGFloat = view.bounds.height - 100
let detailsViewFrame: CGRect = CGRect(x: 0,
y: 0,
width: detailsWidth, height: detailsHeight)
detailsController = storyboard?.instantiateViewController(withIdentifier: "ChildMainVC") as? MainChildViewController
// detailsController.descriptionText = "I'm a text that was passed from the MainViewController"
if detailsController != nil {
self.addChild(detailsController! )
detailsController?.view.frame = detailsViewFrame
view.addSubview(detailsController!.view)
}*/
}
@IBAction func longPress(_ sender: Any) {
......@@ -78,19 +74,36 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
coordinateToAdress(locationTouch)
}
/*
private func setupSwipeable() {
self.swipeableView.isPanGestureInverted = true
self.swipeableView.flexibleLayout = .init(with: flexLayout, end: view.frame.height / 2)
self.swipeableView.childViewInteractionOnExpandedOnly = false
self.swipeableView.indicatorColors = (UIColor.Showcase8.colorB4,UIColor.Showcase8.colorB1)
}
private func setupChildview() {
if let characterPickerView = self.storyboard?.instantiateViewController(withIdentifier:"child_Id8") as? ShowcaseChildViewController_8 {
self.characterPickerView = characterPickerView
// plug the child view into the swipeable view
self.swipeableView.setChildView(childVC: characterPickerView, parentVC: self)
// plug the character picker delegate
characterPickerView.delegate = self
}
}
*/
override func viewDidLoad() {
super.viewDidLoad()
// setupBackButton()
// self.navigationItem.titleView?.isHidden = false
self.title = "LOGO"
/* self.title = "LOGO"
self.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor : UIColor.white]
self.navigationController?.navigationBar.barTintColor = UIColor.black
self.navigationItem.title = "LOGO"
//London coordinates
self.navigationController?.navigationBar.topItem?.title = "Logo"
self.navigationController?.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)
mapView.centerToLocation(initialLocation)
buttonEmergency.isHidden = false
......@@ -100,13 +113,12 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
buttonEmerHandman.isHidden = true
text_Location.delegate = self
/*
let annotations = MKPointAnnotation()
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)*/
// settingsLauncher.delegate = self
}
override func viewDidAppear(_ animated:Bool) {
......@@ -117,22 +129,22 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
buttonEmerElectric.isHidden = true
buttonEmerPlumber.isHidden = true
buttonEmerHandman.isHidden = true
// let detailsController:MainChildViewController
/* if detailsController != nil {
self.detailsController!.removeFromParent()
// self.navigationController?.setNavigationBarHidden(true, animated: animated)
if bottomSheetVC != nil {
//sendSubviewToBack(_ view: UIView)
self.view.sendSubviewToBack(bottomSheetVC!.view)
// self.view.willRemoveSubview(bottomSheetVC!.view)
bottomSheetVC!.removeFromParent()
}
else {
// if detailsController != nil {
return
}*/
}
override func viewWillAppear(_ animated: Bool) {
self.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor : UIColor.white]
/* self.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor : UIColor.white]
self.navigationController?.navigationBar.barTintColor = UIColor.black
self.navigationController?.navigationBar.topItem?.title = "LOGO"
self.navigationController?.navigationItem.title = "LOGO"
self.navigationController?.navigationItem.title = "LOGO"*/
// self.view.removeFromSuperview()
self.navigationController?.setNavigationBarHidden(true, animated: animated)
}
override func viewWillDisappear(_ animated: Bool) {
......@@ -140,9 +152,48 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
count = 0
}
@IBAction func pressWhatDo(_ sender: Any) {
addBottomSheetView()
}
func addBottomSheetView() {
// 1- Init bottomSheetVC
bottomSheetVC = SmallListWorkVC()
// mapView.isHidden = true
// bottomView.isHidden = true
// 2- Add bottomSheetVC as a child view
if bottomSheetVC != nil {
self.addChild(bottomSheetVC!)
self.view.addSubview(bottomSheetVC!.view)
bottomSheetVC!.didMove(toParent: self)
// 3- Adjust bottomSheet frame and initial position.
let height = view.frame.height
let width = view.frame.width
bottomSheetVC!.view.frame = CGRect(x: 0, y: self.view.frame.maxY, 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) {
let item = UIBarButtonItem(title: "LOGO", style: .plain, target: nil, action: nil)
viewController.navigationItem.backBarButtonItem = item
/* let item = UIBarButtonItem(title: "LOGO", style: .plain, target: nil, action: nil)
viewController.navigationItem.backBarButtonItem = item*/
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
......@@ -174,77 +225,46 @@ class MainViewController: UIViewController, UITextFieldDelegate //, CLLocationM
CLGeocoder().reverseGeocodeLocation(locations /*.last!*/) { (placemarks, error) in
// Детализированная информация по точке
var placemark: CLPlacemark!
if let placemarks = placemarks {
placemark = placemarks[0]
}
// Словарь адресов // print(placemark.addressDictionary!)
// Вытаскиваем атрибуты адреса
guard let country = placemark.addressDictionary!["Country"] as?
String
} /* guard let country = placemark.addressDictionary!["Country"] as? String
else { // print("Country name \(country)")
return
}
guard let city:String = (placemark.addressDictionary!["City"] as? String)
else { //print("City name \(city)")
return
}
// Street address
/* if let street = placemark.addressDictionary!["Thoroughfare"] as? NSString { print(street) }*/
return } guard let city:String = (placemark.addressDictionary!["City"] as? String)
else { //print("City name \(city)") return }*/
guard let street = placemark.addressDictionary!["Street"] as? String
else {
return// print(street)
}
/* if let numHome = placemark.addressDictionary!["SubThoroughfare"] as? NSString { print(numHome) }*/
/* if let name = placemark.addressDictionary!["Name"] as? NSString { print(name) }*/
/* if let locality = placemark.addressDictionary!["Locality"] as? NSString {
print(locality) }*/
guard let subLocality = placemark.addressDictionary!["SubLocality"] as? String
else {
return// print(subLocality)
}
self.text_Location.text = city + " , " + street + " , " + subLocality
//return address
// address dictionary properties
/* open var name: String? { get } // eg. Apple Inc.
open var thoroughfare: String? { get } // street name, eg. Infinite Loop
open var subThoroughfare: String? { get } // eg. 1
open var locality: String? { get } // city, eg. Cupertino
open var subLocality: String? { get } // neighborhood, common name, eg. Mission District
open var administrativeArea: String? { get } // state, eg. CA
open var subAdministrativeArea: String? { get } // county, eg. Santa Clara
open var postalCode: String? { get } // zip code, eg. 95014
open var isoCountryCode: String? { get } // eg. US
open var country: String? { get } // eg. United States
open var inlandWater: String? { get } // eg. Lake Tahoe
open var ocean: String? { get } // eg. Pacific Ocean
open var areasOfInterest: [String]? { get } // eg. Golden Gate Park
*/
/* self.delay(15, closure: {
self.showAlertLocation()
}*/
//)
self.text_Location.text = street + " , " + subLocality
}
}
}
/*
extension UIViewController {
func setupBackButton() {
let customBackButton = UIBarButtonItem(title: " ", style: .plain, target: nil, action: nil)
navigationItem.backBarButtonItem = customBackButton
}}
*/
private extension MKMapView {
func centerToLocation(
_ location: CLLocation,
regionRadius: CLLocationDistance = 1000
) {
let coordinateRegion = MKCoordinateRegion(
center: location.coordinate,
latitudinalMeters: regionRadius,
longitudinalMeters: regionRadius)
let coordinateRegion = MKCoordinateRegion( center: location.coordinate,
latitudinalMeters: regionRadius, longitudinalMeters: regionRadius)
setRegion(coordinateRegion, animated: true)
}
}
extension MainViewController:SettingsLauncherDelegate {
func settingsDelegateClick(img: UIImage?,selRow:Int) {
if img != nil {
// images.append(img!)
// collectionView.reloadData()
}
else {
self.selRow = selRow
}
}
}
......@@ -16,7 +16,7 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie
@IBOutlet weak var glidingView: GlidingCollection!
fileprivate var collectionView: UICollectionView!
var selRow:Int = 0
// let imagePickerController = UIImagePickerController()
let cellReuseIdentifier = "cell"
......@@ -40,13 +40,14 @@ class PlumbersViewController: UIViewController,UITableViewDataSource, UITableVie
tableView.dataSource = self
textViewDesc.delegate = self
settingsLauncher.delegate = self
//glide setup
setup()
}
@IBAction func pressAddPhoto(_ sender: Any) {
guard let navVC = self.navigationController
else { return }
settingsLauncher.showSettings(navigVC: navVC)
settingsLauncher.showSettings(navigVC: navVC,dispatcher:0)
}
@IBAction func BOOK_NOW_Click(_ sender: Any) {
......@@ -148,12 +149,16 @@ extension PlumbersViewController:CalendarViewControllerDelegate {
}
//
extension PlumbersViewController:SettingsLauncherDelegate {
func settingsDelegateClick(img: UIImage?) {
func settingsDelegateClick(img: UIImage?,selRow:Int) {
if img != nil {
images.append(img!)
}
collectionView.reloadData()
}
else {
self.selRow = selRow
}
}
}
// MARK: - Setup
......
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