Update podspec only Source
This commit is contained in:
1 parent
3c2848ffd1
commit
f2e8d4411f
159 files changed
+2
-12319
No files matched your search
@@ -1,69 +0,0 @@
|
||||
//
|
||||
// TripsDayEmptyView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MapsButtons: XibView {
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet weak var buttonMenu: UIButton!
|
||||
@IBOutlet weak var buttonLocation: UIButton!
|
||||
|
||||
@IBOutlet weak var mainView: DesignView!
|
||||
var visualEffectView: UIVisualEffectView?
|
||||
|
||||
var buttonsActionCallback: ((_ index: Int) -> Void)?
|
||||
|
||||
override func loadedFromNib() {
|
||||
backgroundColor = .clear
|
||||
}
|
||||
|
||||
// MARK: - IBAction
|
||||
|
||||
public func changeButtonLocation(fill: Bool) {
|
||||
let sysName = fill ? "location.fill" : "location"
|
||||
buttonLocation.setImage(UIImage(systemName: sysName), for: .normal)
|
||||
}
|
||||
|
||||
@IBAction func buttonInfoAction(_ sender: UIButton) {
|
||||
if let buttonsActionCallback = buttonsActionCallback {
|
||||
return buttonsActionCallback(0)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func buttonLocationAction(_ sender: UIButton) {
|
||||
if let buttonsActionCallback = buttonsActionCallback {
|
||||
return buttonsActionCallback(1)
|
||||
}
|
||||
}
|
||||
|
||||
func addBlur(darkStyle: Bool) {
|
||||
let style: UIBlurEffect.Style = darkStyle ? .systemThinMaterialDark : .systemChromeMaterialLight
|
||||
|
||||
buttonMenu.tintColor = darkStyle ? .white : .systemBlue
|
||||
buttonLocation.tintColor = darkStyle ? .white : .systemBlue
|
||||
|
||||
mainView.fillColor = .clear
|
||||
|
||||
if visualEffectView == nil {
|
||||
let blurView = UIVisualEffectView(effect: UIBlurEffect(style: style))
|
||||
mainView.insertSubview(blurView, at: 0)
|
||||
visualEffectView = blurView
|
||||
}
|
||||
|
||||
visualEffectView?.effect = UIBlurEffect(style: style)
|
||||
visualEffectView?.bounds = bounds
|
||||
visualEffectView?.x = 0
|
||||
visualEffectView?.y = 0
|
||||
visualEffectView?.layer.cornerRadius = 8.0
|
||||
visualEffectView?.layer.masksToBounds = true
|
||||
visualEffectView?.autoresizingMask = [.flexibleLeftMargin, .flexibleWidth, .flexibleRightMargin, .flexibleTopMargin, .flexibleHeight, .flexibleBottomMargin]
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MapsButtons" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="buttonLocation" destination="9Mm-as-dAI" id="fHl-0s-gB3"/>
|
||||
<outlet property="buttonMenu" destination="2Re-wl-lXF" id="wlG-CZ-ZEk"/>
|
||||
<outlet property="mainView" destination="odA-SN-ic1" id="VZP-G8-aFg"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eiX-vg-4Th">
|
||||
<rect key="frame" x="0.0" y="0.0" width="45" height="91"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="odA-SN-ic1" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="45" height="91"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2Re-wl-lXF">
|
||||
<rect key="frame" x="0.0" y="0.0" width="45" height="45"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" image="info.circle" catalog="system"/>
|
||||
<connections>
|
||||
<action selector="buttonInfoAction:" destination="-1" eventType="touchUpInside" id="z4I-lA-L0G"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9Mm-as-dAI">
|
||||
<rect key="frame" x="0.0" y="46" width="45" height="45"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" image="location" catalog="system"/>
|
||||
<connections>
|
||||
<action selector="buttonLocationAction:" destination="-1" eventType="touchUpInside" id="yYZ-Hw-UcF"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.20000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="shadowOpacity">
|
||||
<real key="value" value="2"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="shadowRadius">
|
||||
<real key="value" value="3"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="shadowColor">
|
||||
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JAR-Am-Qql" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="45.5" width="45" height="0.5"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.20000000298023224" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<point key="canvasLocation" x="312.80000000000001" y="119.1904047976012"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="info.circle" catalog="system" width="64" height="60"/>
|
||||
<image name="location" catalog="system" width="64" height="56"/>
|
||||
</resources>
|
||||
</document>
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
//
|
||||
// TripsDayEmptyView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MapsWeatherView: XibView {
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet weak var mainView: DesignView!
|
||||
var visualEffectView: UIVisualEffectView?
|
||||
@IBOutlet weak var textLabel: UILabel!
|
||||
|
||||
override func loadedFromNib() {
|
||||
backgroundColor = .clear
|
||||
mainView.fillColor = .clear
|
||||
}
|
||||
|
||||
public func addBlur(darkStyle: Bool) {
|
||||
let style: UIBlurEffect.Style = darkStyle ? .systemThinMaterialDark : .systemChromeMaterialLight
|
||||
|
||||
textLabel.textColor = darkStyle ? .white : .black
|
||||
|
||||
mainView.fillColor = .clear
|
||||
|
||||
if visualEffectView == nil {
|
||||
let blurView = UIVisualEffectView(effect: UIBlurEffect(style: style))
|
||||
mainView.insertSubview(blurView, at: 0)
|
||||
visualEffectView = blurView
|
||||
}
|
||||
|
||||
visualEffectView?.effect = UIBlurEffect(style: style)
|
||||
visualEffectView?.bounds = bounds
|
||||
visualEffectView?.x = 0
|
||||
visualEffectView?.y = 0
|
||||
visualEffectView?.layer.cornerRadius = 6.0
|
||||
visualEffectView?.layer.masksToBounds = true
|
||||
visualEffectView?.autoresizingMask = [.flexibleLeftMargin, .flexibleWidth, .flexibleRightMargin, .flexibleTopMargin, .flexibleHeight, .flexibleBottomMargin]
|
||||
}
|
||||
|
||||
}
|
||||
-52
@@ -1,52 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MapsWeatherView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="mainView" destination="FyJ-7L-vgu" id="l1E-Iq-1QQ"/>
|
||||
<outlet property="textLabel" destination="Out-BO-xeF" id="lzo-vU-Ieh"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ltI-Wt-r3w">
|
||||
<rect key="frame" x="0.0" y="0.0" width="58" height="27"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="FyJ-7L-vgu" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="58" height="27"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="6"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="16°" lineBreakMode="tailTruncation" numberOfLines="100" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Out-BO-xeF">
|
||||
<rect key="frame" x="26" y="2" width="33" height="24"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="20"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TrB-eA-HV8">
|
||||
<rect key="frame" x="2" y="2" width="23" height="22"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="tintColor" systemColor="systemYellowColor" red="1" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<state key="normal" image="sun.max.fill" catalog="system"/>
|
||||
</button>
|
||||
</subviews>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="124.8" y="151.57421289355324"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="sun.max.fill" catalog="system" width="64" height="62"/>
|
||||
</resources>
|
||||
</document>
|
||||
-44
@@ -1,44 +0,0 @@
|
||||
//
|
||||
// HeaderLocationDetailsView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
|
||||
class HeaderDetailsView: XibView {
|
||||
|
||||
var buttonCloseClickCallback: (() -> Void)?
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet public weak var separatorView: UIView?
|
||||
@IBOutlet weak var separatorHeight: NSLayoutConstraint?
|
||||
|
||||
@IBOutlet weak var titleLabel: UILabel!
|
||||
@IBOutlet weak var subtitle: UILabel!
|
||||
@IBOutlet weak var textButton: UIButton!
|
||||
|
||||
override func loadedFromNib() {
|
||||
separatorHeight?.constant = 0.5
|
||||
separatorView?.alpha = 0.0
|
||||
|
||||
titleLabel.text = ""
|
||||
subtitle.text = ""
|
||||
textButton.setTitle("", for: .normal)
|
||||
}
|
||||
|
||||
func add(darkStyle: Bool) {
|
||||
titleLabel.textColor = darkStyle ? .white : .black
|
||||
subtitle.textColor = darkStyle ? .white : .black
|
||||
}
|
||||
|
||||
@IBAction func buttonCloseAction(_ sender: Any) {
|
||||
buttonCloseClickCallback?()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-144
@@ -1,144 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HeaderLocationDetailsView" customModule="ContainerController" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="separatorHeight" destination="XeQ-S6-epL" id="RJb-Cx-wsu"/>
|
||||
<outlet property="separatorView" destination="qyU-mN-CPZ" id="Wam-cL-7Cl"/>
|
||||
<outlet property="subtitle" destination="SiU-4U-nQ2" id="exu-e7-sTw"/>
|
||||
<outlet property="textButton" destination="dHI-g8-o5W" id="2mD-PI-DBt"/>
|
||||
<outlet property="titleLabel" destination="rP7-kq-NRc" id="iTd-Ph-pt4"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="78"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kEq-BX-n4L" customClass="DesignView" customModule="ContainerController" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="78"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zoq-mq-Oj6" customClass="DesignView" customModule="ContainerController" customModuleProvider="target">
|
||||
<rect key="frame" x="142" y="5" width="36" height="5"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="5" id="7sy-vP-zdU"/>
|
||||
<constraint firstAttribute="width" constant="36" id="HOA-Ga-fAN"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="-1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" white="0.5" alpha="0.40128082482993199" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Marked Location" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rP7-kq-NRc">
|
||||
<rect key="frame" x="16" y="19" width="242" height="21"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="From:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SiU-4U-nQ2">
|
||||
<rect key="frame" x="16" y="42" width="39.5" height="18"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="15"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dHI-g8-o5W">
|
||||
<rect key="frame" x="59" y="42" width="84" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="18" id="PDW-6h-vmb"/>
|
||||
</constraints>
|
||||
<state key="normal" title="My Location"/>
|
||||
</button>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gOR-GM-J5G" customClass="DesignView" customModule="ContainerController" customModuleProvider="target">
|
||||
<rect key="frame" x="274" y="17" width="29" height="29"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Kpw-f1-JZ2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="29" height="29"/>
|
||||
<color key="tintColor" white="0.5" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<inset key="imageEdgeInsets" minX="6.5" minY="7.7999999999999998" maxX="6.5" maxY="7"/>
|
||||
<state key="normal" image="xmark" catalog="system">
|
||||
<preferredSymbolConfiguration key="preferredSymbolConfiguration" weight="bold"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="buttonCloseAction:" destination="-1" eventType="touchUpInside" id="3gE-jv-dQQ"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="Kpw-f1-JZ2" firstAttribute="top" secondItem="gOR-GM-J5G" secondAttribute="top" id="CZU-IP-iDH"/>
|
||||
<constraint firstItem="Kpw-f1-JZ2" firstAttribute="leading" secondItem="gOR-GM-J5G" secondAttribute="leading" id="Fsl-xH-GkP"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Kpw-f1-JZ2" secondAttribute="trailing" id="epa-DN-J1E"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Kpw-f1-JZ2" secondAttribute="bottom" id="oYd-ha-YHv"/>
|
||||
<constraint firstAttribute="height" constant="29" id="vJP-aZ-3Qx"/>
|
||||
<constraint firstAttribute="width" constant="29" id="wob-gr-Ydu"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="-1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" white="0.5" alpha="0.1499521683682313" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qyU-mN-CPZ">
|
||||
<rect key="frame" x="0.0" y="77" width="320" height="1"/>
|
||||
<color key="backgroundColor" white="0.5" alpha="0.59568983843537415" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="1" id="XeQ-S6-epL"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="gOR-GM-J5G" firstAttribute="top" secondItem="kEq-BX-n4L" secondAttribute="top" constant="17" id="14P-Fj-rxR"/>
|
||||
<constraint firstItem="SiU-4U-nQ2" firstAttribute="leading" secondItem="kEq-BX-n4L" secondAttribute="leading" constant="16" id="8cJ-0f-cbC"/>
|
||||
<constraint firstItem="SiU-4U-nQ2" firstAttribute="top" secondItem="rP7-kq-NRc" secondAttribute="bottom" constant="2" id="Emo-so-jls"/>
|
||||
<constraint firstItem="rP7-kq-NRc" firstAttribute="leading" secondItem="kEq-BX-n4L" secondAttribute="leading" constant="16" id="Jnk-S2-Se2"/>
|
||||
<constraint firstItem="rP7-kq-NRc" firstAttribute="top" secondItem="zoq-mq-Oj6" secondAttribute="bottom" constant="9" id="NDs-J9-lSh"/>
|
||||
<constraint firstItem="dHI-g8-o5W" firstAttribute="leading" secondItem="SiU-4U-nQ2" secondAttribute="trailing" constant="3.5" id="P3q-VJ-PDD"/>
|
||||
<constraint firstAttribute="trailing" secondItem="gOR-GM-J5G" secondAttribute="trailing" constant="17" id="QAS-FG-6MV"/>
|
||||
<constraint firstItem="zoq-mq-Oj6" firstAttribute="top" secondItem="kEq-BX-n4L" secondAttribute="top" constant="5" id="Uas-Sw-k9y"/>
|
||||
<constraint firstItem="qyU-mN-CPZ" firstAttribute="leading" secondItem="kEq-BX-n4L" secondAttribute="leading" id="Vxe-jp-YrR"/>
|
||||
<constraint firstItem="dHI-g8-o5W" firstAttribute="top" secondItem="rP7-kq-NRc" secondAttribute="bottom" constant="2" id="aQT-TH-Iys"/>
|
||||
<constraint firstAttribute="bottom" secondItem="qyU-mN-CPZ" secondAttribute="bottom" id="bQN-Ao-eW6"/>
|
||||
<constraint firstItem="zoq-mq-Oj6" firstAttribute="centerX" secondItem="kEq-BX-n4L" secondAttribute="centerX" id="eD6-zL-DXb"/>
|
||||
<constraint firstAttribute="trailing" secondItem="qyU-mN-CPZ" secondAttribute="trailing" id="unH-0j-hec"/>
|
||||
<constraint firstAttribute="bottom" secondItem="qyU-mN-CPZ" secondAttribute="bottom" id="v0d-7f-Y45"/>
|
||||
<constraint firstItem="gOR-GM-J5G" firstAttribute="leading" secondItem="rP7-kq-NRc" secondAttribute="trailing" constant="16" id="ywP-y8-dc2"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="EZc-a0-fDU"/>
|
||||
<constraint firstAttribute="bottom" secondItem="kEq-BX-n4L" secondAttribute="bottom" id="Th6-e2-7Te"/>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="trailing" secondItem="iN0-l3-epB" secondAttribute="trailing" id="VFf-Rn-CcY"/>
|
||||
<constraint firstAttribute="bottom" secondItem="kEq-BX-n4L" secondAttribute="bottom" id="mBj-MU-nkQ"/>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="z0r-kv-leF"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="257.60000000000002" y="181.70914542728636"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="xmark" catalog="system" width="64" height="56"/>
|
||||
</resources>
|
||||
</document>
|
||||
-76
@@ -1,76 +0,0 @@
|
||||
//
|
||||
// HeaderSearchBarView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class HeaderSearchBarView: XibView {
|
||||
|
||||
var searchBarBeginEditingCallback: (() -> Void)?
|
||||
var searchBarCancelButtonClickedCallback: (() -> Void)?
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet weak var searchBar: UISearchBar!
|
||||
|
||||
@IBOutlet public weak var separatorView: UIView?
|
||||
@IBOutlet weak var separatorHeight: NSLayoutConstraint?
|
||||
|
||||
override func loadedFromNib() {
|
||||
separatorHeight?.constant = 0.5
|
||||
separatorView?.alpha = 0.0
|
||||
|
||||
searchBar.placeholder = _L("LNG_MAPS_SEARCH_PLACE_ADDRESS")
|
||||
|
||||
let textFieldInsideSearchBar = searchBar.value(forKey: "searchField") as? UITextField
|
||||
let imageV = textFieldInsideSearchBar?.leftView as! UIImageView
|
||||
imageV.image = imageV.image?.withRenderingMode(UIImage.RenderingMode.alwaysTemplate)
|
||||
// imageV.image = imageV.image?.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
|
||||
imageV.tintColor = Colors.rgb(128, 128, 128)
|
||||
}
|
||||
|
||||
func set(darkStyle: Bool) {
|
||||
|
||||
searchBar.keyboardAppearance = darkStyle ? .dark : .light
|
||||
|
||||
let textFieldInsideSearchBar = searchBar.value(forKey:"searchField") as? UITextField
|
||||
textFieldInsideSearchBar?.textColor = darkStyle ? .white : .black
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
extension HeaderSearchBarView: UISearchBarDelegate {
|
||||
|
||||
func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
|
||||
searchBar.setShowsCancelButton(true, animated: true)
|
||||
searchBarBeginEditingCallback?()
|
||||
}
|
||||
|
||||
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
|
||||
// searchBar.setShowsCancelButton(false, animated: true)
|
||||
}
|
||||
|
||||
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
|
||||
searchBar.setShowsCancelButton(false, animated: true)
|
||||
|
||||
searchBar.text = ""
|
||||
|
||||
searchBarCancelButtonClickedCallback?()
|
||||
}
|
||||
|
||||
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
|
||||
|
||||
// guard let text = searchBar.text, !text.isEmpty else {
|
||||
// searchBar.setShowsCancelButton(false, animated: true)
|
||||
// return
|
||||
// }
|
||||
// searchBar.setShowsCancelButton(true, animated: true)
|
||||
}
|
||||
|
||||
}
|
||||
-69
@@ -1,69 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HeaderSearchBarView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="searchBar" destination="Vy4-2o-z81" id="GK5-0g-HBL"/>
|
||||
<outlet property="separatorHeight" destination="0TO-pN-EmM" id="CEV-uN-Ce9"/>
|
||||
<outlet property="separatorView" destination="Uen-Cc-5EB" id="aen-jw-8Vm"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2ea-2D-g1K" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="142" y="5" width="36" height="5"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="5" id="4R5-pO-IGk"/>
|
||||
<constraint firstAttribute="width" constant="36" id="K4R-tH-ira"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="-1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="0.50980392156862742" green="0.50991177558898926" blue="0.50991177558898926" alpha="0.39849064624489788" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Uen-Cc-5EB">
|
||||
<rect key="frame" x="0.0" y="70" width="320" height="0.0"/>
|
||||
<color key="backgroundColor" white="0.49604060374149661" alpha="0.60400722789115646" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" id="0TO-pN-EmM"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<searchBar contentMode="redraw" searchBarStyle="minimal" placeholder="Search for a place or address" translatesAutoresizingMaskIntoConstraints="NO" id="Vy4-2o-z81">
|
||||
<rect key="frame" x="6" y="12" width="308" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="fKl-UJ-88y"/>
|
||||
</constraints>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-1" id="TRj-qy-mFo"/>
|
||||
</connections>
|
||||
</searchBar>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="Vy4-2o-z81" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="12" id="E76-OZ-ugY"/>
|
||||
<constraint firstItem="Uen-Cc-5EB" firstAttribute="bottom" secondItem="iN0-l3-epB" secondAttribute="bottom" id="I9t-qK-dY0"/>
|
||||
<constraint firstItem="2ea-2D-g1K" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="N4d-vR-36l"/>
|
||||
<constraint firstItem="Vy4-2o-z81" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="6" id="POF-Kk-Lus"/>
|
||||
<constraint firstItem="2ea-2D-g1K" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="5" id="VHF-z8-u6m"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Uen-Cc-5EB" secondAttribute="trailing" id="bia-iD-Dzg"/>
|
||||
<constraint firstItem="Uen-Cc-5EB" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="ga8-o1-mfN"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Vy4-2o-z81" secondAttribute="trailing" constant="6" id="pb3-fH-UOK"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="258" y="182"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
-49
@@ -1,49 +0,0 @@
|
||||
//
|
||||
// MapsMenuHeader.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MapsMenuHeader: XibView {
|
||||
|
||||
var buttonCloseClickCallback: (() -> Void)?
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
var darkStyle: Bool = false
|
||||
|
||||
@IBOutlet public weak var separatorView: UIView?
|
||||
@IBOutlet weak var separatorHeight: NSLayoutConstraint?
|
||||
|
||||
@IBOutlet weak var titleLabel: UILabel!
|
||||
|
||||
func set(darkStyle: Bool) {
|
||||
self.darkStyle = darkStyle
|
||||
titleLabel.textColor = darkStyle ? .white : .black
|
||||
}
|
||||
|
||||
// required public init?(coder aDecoder: NSCoder) {
|
||||
// super.init(coder: aDecoder)
|
||||
// }
|
||||
|
||||
func add(darkStyle: Bool) {
|
||||
titleLabel.textColor = darkStyle ? .white : .black
|
||||
}
|
||||
|
||||
override func loadedFromNib() {
|
||||
titleLabel.text = _L("LNG_MAPS_MENU_MAPS_SETTINGS")
|
||||
|
||||
separatorHeight?.constant = 0.5
|
||||
separatorView?.alpha = 0.0
|
||||
|
||||
}
|
||||
@IBAction func buttonCloseAction(_ sender: Any) {
|
||||
buttonCloseClickCallback?()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MapsMenuHeader" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="titleLabel" destination="bEx-I2-4Q0" id="auu-R4-1Wa"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="54"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fzr-Or-LLU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="54"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Settings Maps" lineBreakMode="tailTruncation" numberOfLines="100" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bEx-I2-4Q0">
|
||||
<rect key="frame" x="15" y="21" width="117.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view alpha="0.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZTl-6R-GSV" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="234" y="4" width="73" height="47"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="-1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="j5o-G4-Zvk" customClass="DesignView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="274" y="17" width="29" height="29"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6oa-Bk-kr5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="29" height="29"/>
|
||||
<color key="tintColor" white="0.5" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<inset key="imageEdgeInsets" minX="7" minY="7" maxX="6" maxY="8"/>
|
||||
<state key="normal" image="xmark" catalog="system">
|
||||
<preferredSymbolConfiguration key="preferredSymbolConfiguration" weight="semibold"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="buttonCloseAction:" destination="-1" eventType="touchUpInside" id="R8A-2d-wkb"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="6oa-Bk-kr5" firstAttribute="top" secondItem="j5o-G4-Zvk" secondAttribute="top" id="8B3-FW-2ww"/>
|
||||
<constraint firstAttribute="width" constant="29" id="AXS-cU-GFD"/>
|
||||
<constraint firstAttribute="height" constant="29" id="IYa-fQ-Wfu"/>
|
||||
<constraint firstAttribute="trailing" secondItem="6oa-Bk-kr5" secondAttribute="trailing" id="RZj-Fw-ueP"/>
|
||||
<constraint firstItem="6oa-Bk-kr5" firstAttribute="leading" secondItem="j5o-G4-Zvk" secondAttribute="leading" id="cxy-Y5-k48"/>
|
||||
<constraint firstAttribute="bottom" secondItem="6oa-Bk-kr5" secondAttribute="bottom" id="dew-iE-FJL"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="-1"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" white="0.5" alpha="0.14999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="j5o-G4-Zvk" firstAttribute="top" secondItem="fzr-Or-LLU" secondAttribute="top" constant="17" id="K7k-Do-omN"/>
|
||||
<constraint firstItem="bEx-I2-4Q0" firstAttribute="top" secondItem="fzr-Or-LLU" secondAttribute="top" constant="21" id="aci-oC-eGk"/>
|
||||
<constraint firstAttribute="trailing" secondItem="j5o-G4-Zvk" secondAttribute="trailing" constant="17" id="l4g-v7-1dh"/>
|
||||
<constraint firstItem="bEx-I2-4Q0" firstAttribute="leading" secondItem="fzr-Or-LLU" secondAttribute="leading" constant="15" id="lpt-hv-7Wj"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="fzr-Or-LLU" secondAttribute="bottom" id="MR3-Id-ZGh"/>
|
||||
<constraint firstItem="fzr-Or-LLU" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="nLW-Fj-0Im"/>
|
||||
<constraint firstItem="fzr-Or-LLU" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ucV-Af-zM1"/>
|
||||
<constraint firstAttribute="trailing" secondItem="fzr-Or-LLU" secondAttribute="trailing" id="xbs-6X-yw6"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="257.60000000000002" y="181.70914542728636"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="xmark" catalog="system" width="64" height="56"/>
|
||||
</resources>
|
||||
</document>
|
||||
-54
@@ -1,54 +0,0 @@
|
||||
//
|
||||
// HeaderLocationDetailsView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
|
||||
class HeaderTabBarView: XibView {
|
||||
|
||||
var buttonCloseClickCallback: (() -> Void)?
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet weak var blurView: UIVisualEffectView?
|
||||
@IBOutlet weak var tabbar: UITabBar!
|
||||
@IBOutlet weak var separatorView: UIView!
|
||||
@IBOutlet weak var separatorViewHeight: NSLayoutConstraint?
|
||||
@IBOutlet weak var separatorViewY: NSLayoutConstraint?
|
||||
|
||||
@IBOutlet weak var tabBarItem1: UITabBarItem!
|
||||
@IBOutlet weak var tabBarItem2: UITabBarItem!
|
||||
@IBOutlet weak var tabBarItem3: UITabBarItem!
|
||||
@IBOutlet weak var tabBarItem4: UITabBarItem!
|
||||
|
||||
func addBlur(darkStyle: Bool) {
|
||||
let style: UIBlurEffect.Style = darkStyle ? .systemThinMaterialDark : .systemChromeMaterialLight
|
||||
blurView?.effect = UIBlurEffect(style: style)
|
||||
}
|
||||
|
||||
override func loadedFromNib() {
|
||||
separatorViewY?.constant = 0.0
|
||||
separatorViewHeight?.constant = 0.5
|
||||
|
||||
tabBarItem1.title = _L("LNG_MAPS_DRIVE")
|
||||
tabBarItem2.title = _L("LNG_MAPS_WALK")
|
||||
tabBarItem3.title = _L("LNG_MAPS_TRANSIT")
|
||||
tabBarItem4.title = _L("LNG_MAPS_RIDE")
|
||||
|
||||
tabbar.selectedItem = tabbar.items![0]
|
||||
tabbar.barTintColor = UIColor.clear
|
||||
tabbar.backgroundImage = UIImage()
|
||||
tabbar.shadowImage = UIImage()
|
||||
}
|
||||
|
||||
@IBAction func buttonCloseAction(_ sender: Any) {
|
||||
buttonCloseClickCallback?()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-92
@@ -1,92 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HeaderLocationDetailsView" customModule="ContainerController" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="separatorView" destination="uAr-wR-sBL" id="bpN-Ki-lfX"/>
|
||||
<outlet property="separatorViewHeight" destination="Lls-hA-4eN" id="Ncf-PM-6oa"/>
|
||||
<outlet property="separatorViewY" destination="pdN-8A-m6b" id="uh7-Ve-ZlD"/>
|
||||
<outlet property="tabBarItem1" destination="X0Q-gH-aUD" id="hCL-pR-p94"/>
|
||||
<outlet property="tabBarItem2" destination="TUB-Lf-F8Y" id="5UX-R2-pzw"/>
|
||||
<outlet property="tabBarItem3" destination="gYH-mJ-xnj" id="u5l-C0-9Hs"/>
|
||||
<outlet property="tabBarItem4" destination="5l2-Zw-bNx" id="4Af-PD-j8k"/>
|
||||
<outlet property="tabbar" destination="nB5-qq-WPd" id="j1O-ah-NFl"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="312" height="49"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kEq-BX-n4L" customClass="DesignView" customModule="ContainerController" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="312" height="49"/>
|
||||
<subviews>
|
||||
<tabBar clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nB5-qq-WPd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="312" height="49"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<items>
|
||||
<tabBarItem title="1" image="car.fill" catalog="system" id="X0Q-gH-aUD">
|
||||
<color key="badgeColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tabBarItem>
|
||||
<tabBarItem title="2" image="arrowshape.turn.up.left.2.fill" catalog="system" id="TUB-Lf-F8Y"/>
|
||||
<tabBarItem title="3" image="heart.fill" catalog="system" id="gYH-mJ-xnj"/>
|
||||
<tabBarItem title="4" image="person.fill" catalog="system" id="5l2-Zw-bNx">
|
||||
<color key="badgeColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tabBarItem>
|
||||
</items>
|
||||
<color key="barTintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="selectedImageTintColor" systemColor="systemBlueColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="view.background">
|
||||
<color key="value" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</tabBar>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="nB5-qq-WPd" secondAttribute="bottom" id="Hpv-Kh-DZr"/>
|
||||
<constraint firstItem="nB5-qq-WPd" firstAttribute="leading" secondItem="kEq-BX-n4L" secondAttribute="leading" id="aWT-bO-70c"/>
|
||||
<constraint firstAttribute="trailing" secondItem="nB5-qq-WPd" secondAttribute="trailing" id="kNH-lt-rzZ"/>
|
||||
<constraint firstItem="nB5-qq-WPd" firstAttribute="top" secondItem="kEq-BX-n4L" secondAttribute="top" id="uHC-46-opj"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uAr-wR-sBL">
|
||||
<rect key="frame" x="0.0" y="1" width="312" height="1"/>
|
||||
<color key="backgroundColor" white="0.5" alpha="0.5956898384" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="1" id="Lls-hA-4eN"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="EZc-a0-fDU"/>
|
||||
<constraint firstAttribute="bottom" secondItem="kEq-BX-n4L" secondAttribute="bottom" id="Th6-e2-7Te"/>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="trailing" secondItem="iN0-l3-epB" secondAttribute="trailing" id="VFf-Rn-CcY"/>
|
||||
<constraint firstAttribute="trailing" secondItem="uAr-wR-sBL" secondAttribute="trailing" id="WXe-qc-7r4"/>
|
||||
<constraint firstAttribute="bottom" secondItem="kEq-BX-n4L" secondAttribute="bottom" id="mBj-MU-nkQ"/>
|
||||
<constraint firstItem="uAr-wR-sBL" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="1" id="pdN-8A-m6b"/>
|
||||
<constraint firstItem="kEq-BX-n4L" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="z0r-kv-leF"/>
|
||||
<constraint firstItem="uAr-wR-sBL" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="zEf-ku-mJu"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="251.19999999999999" y="181.25937031484258"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="arrowshape.turn.up.left.2.fill" catalog="system" width="64" height="42"/>
|
||||
<image name="car.fill" catalog="system" width="64" height="46"/>
|
||||
<image name="heart.fill" catalog="system" width="64" height="54"/>
|
||||
<image name="person.fill" catalog="system" width="64" height="60"/>
|
||||
</resources>
|
||||
</document>
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
//
|
||||
// TripsDayEmptyView.swift
|
||||
// GTDriver
|
||||
//
|
||||
// Created by mrustaa on 16/01/2020.
|
||||
// Copyright © 2020 mrustaa. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class TableHeaderSpinerView: XibView {
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
@IBOutlet weak var spiner: UIActivityIndicatorView!
|
||||
@IBOutlet weak var textLabel: UILabel!
|
||||
|
||||
override func loadedFromNib() {
|
||||
textLabel.text = _L("LNG_MAPS_LOADING")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
-54
@@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="TableHeaderSpinerView" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="spiner" destination="sle-Eb-gIB" id="Qa7-Ne-cxF"/>
|
||||
<outlet property="textLabel" destination="gn7-gH-rpm" id="Goy-e6-qp1"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ltI-Wt-r3w">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="102"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ReV-i4-P2V">
|
||||
<rect key="frame" x="112.5" y="22.5" width="95" height="57"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Loading..." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gn7-gH-rpm">
|
||||
<rect key="frame" x="0.0" y="31" width="95" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="0.5" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<activityIndicatorView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" animating="YES" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="sle-Eb-gIB">
|
||||
<rect key="frame" x="37.5" y="4" width="20" height="20"/>
|
||||
<color key="color" white="0.59909119897959184" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</activityIndicatorView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="sle-Eb-gIB" firstAttribute="centerX" secondItem="ReV-i4-P2V" secondAttribute="centerX" id="LYN-92-8ff"/>
|
||||
<constraint firstAttribute="trailing" secondItem="gn7-gH-rpm" secondAttribute="trailing" id="OP2-sR-ew4"/>
|
||||
<constraint firstItem="gn7-gH-rpm" firstAttribute="leading" secondItem="ReV-i4-P2V" secondAttribute="leading" id="dGU-7Q-3b3"/>
|
||||
<constraint firstItem="sle-Eb-gIB" firstAttribute="top" secondItem="ReV-i4-P2V" secondAttribute="top" constant="4" id="jLg-Tf-iyU"/>
|
||||
<constraint firstAttribute="width" constant="95" id="upF-01-NsP"/>
|
||||
<constraint firstAttribute="height" constant="57" id="vDu-vQ-gys"/>
|
||||
<constraint firstAttribute="bottom" secondItem="gn7-gH-rpm" secondAttribute="bottom" constant="5.5" id="wAJ-KI-nMn"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="ReV-i4-P2V" firstAttribute="centerX" secondItem="ltI-Wt-r3w" secondAttribute="centerX" id="WVb-YQ-DTq"/>
|
||||
<constraint firstItem="ReV-i4-P2V" firstAttribute="centerY" secondItem="ltI-Wt-r3w" secondAttribute="centerY" id="ZDD-Pc-qlC"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="124.8" y="189.80509745127438"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
Reference in new issue
Block a user