Update podspec only Source
This commit is contained in:
-94
@@ -1,94 +0,0 @@
|
||||
|
||||
|
||||
|
||||
|
||||
import UIKit
|
||||
import ContainerControllerSwift
|
||||
|
||||
|
||||
// MARK: - Item
|
||||
|
||||
class MapsMenuTextCellItem: TableAdapterItem {
|
||||
|
||||
init(title: String? = nil, switchShow: Bool = false, darkStyle: Bool = false, separator: Bool = true) {
|
||||
|
||||
let cellData = MapsMenuTextCellData(title, switchShow, darkStyle, separator)
|
||||
|
||||
super.init(cellClass: MapsMenuTextCell.self, cellData: cellData)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Data
|
||||
|
||||
class MapsMenuTextCellData: TableAdapterCellData {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
var title: String?
|
||||
var switchShow: Bool
|
||||
var separator: Bool
|
||||
var darkStyle: Bool
|
||||
|
||||
// MARK: Inits
|
||||
|
||||
init(_ title: String? = nil, _ switchShow: Bool, _ darkStyle: Bool, _ separator: Bool) {
|
||||
|
||||
self.title = title
|
||||
self.switchShow = switchShow
|
||||
self.separator = separator
|
||||
self.darkStyle = darkStyle
|
||||
|
||||
super.init()
|
||||
}
|
||||
|
||||
override public func cellHeight() -> CGFloat {
|
||||
return 48
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Cell
|
||||
|
||||
class MapsMenuTextCell: TableAdapterCell {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
public var data: MapsMenuTextCellData?
|
||||
|
||||
// MARK: Outlets
|
||||
|
||||
@IBOutlet override var selectedView: UIView? {
|
||||
didSet { }
|
||||
}
|
||||
|
||||
@IBOutlet private weak var titleLabel: UILabel?
|
||||
@IBOutlet private weak var hiddenSwitch: UISwitch!
|
||||
|
||||
// MARK: Initialize
|
||||
|
||||
override func fill(data: TableAdapterCellData?) {
|
||||
guard let data = data as? MapsMenuTextCellData else { return }
|
||||
self.data = data
|
||||
|
||||
titleLabel?.text = data.title ?? ""
|
||||
|
||||
if data.switchShow {
|
||||
selectionStyle = .none
|
||||
hiddenSwitch.alpha = 1.0
|
||||
titleLabel?.textColor = data.darkStyle ? .white : .black
|
||||
} else {
|
||||
selectionStyle = .default
|
||||
hiddenSwitch.alpha = 0.0
|
||||
titleLabel?.textColor = .systemBlue
|
||||
}
|
||||
|
||||
if data.separator {
|
||||
separatorInset = UIEdgeInsets(top: 0.0, left: 16.0, bottom: 0.0, right: 16.0)
|
||||
} else {
|
||||
separatorInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: 0.0, right: CGFloat(Double.greatestFiniteMagnitude))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
-65
@@ -1,65 +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"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="ADc-Wu-299" customClass="MapsMenuTextCell" customModule="PatternsSwift" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="319" height="48"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ADc-Wu-299" id="Qrk-n6-aPT">
|
||||
<rect key="frame" x="0.0" y="0.0" width="319" height="48"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CNB-oc-kaO">
|
||||
<rect key="frame" x="0.0" y="0.0" width="319" height="48"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="text text text" lineBreakMode="tailTruncation" numberOfLines="100" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WiD-pa-sbk">
|
||||
<rect key="frame" x="16" y="14" width="287" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="0.0" green="0.4784313738" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<switch opaque="NO" alpha="0.0" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="iTv-d4-ayC">
|
||||
<rect key="frame" x="253" y="8" width="51" height="31"/>
|
||||
</switch>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="iTv-d4-ayC" secondAttribute="trailing" constant="17" id="GaA-Jp-WQh"/>
|
||||
<constraint firstItem="iTv-d4-ayC" firstAttribute="top" secondItem="CNB-oc-kaO" secondAttribute="top" constant="8" id="HIQ-t0-U0z"/>
|
||||
<constraint firstItem="WiD-pa-sbk" firstAttribute="leading" secondItem="CNB-oc-kaO" secondAttribute="leading" constant="16" id="HaM-Sd-kdC"/>
|
||||
<constraint firstItem="WiD-pa-sbk" firstAttribute="top" secondItem="CNB-oc-kaO" secondAttribute="top" constant="14" id="jqj-Av-mKc"/>
|
||||
<constraint firstAttribute="trailing" secondItem="WiD-pa-sbk" secondAttribute="trailing" constant="16" id="tZs-9c-MbL"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view alpha="0.0" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lhV-Mj-Sw9">
|
||||
<rect key="frame" x="0.0" y="0.0" width="319" height="48"/>
|
||||
<color key="backgroundColor" white="0.50510204081632648" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="lhV-Mj-Sw9" firstAttribute="top" secondItem="Qrk-n6-aPT" secondAttribute="top" id="0eY-Lc-5V5"/>
|
||||
<constraint firstAttribute="bottom" secondItem="CNB-oc-kaO" secondAttribute="bottom" id="BgC-GA-kbQ"/>
|
||||
<constraint firstAttribute="trailing" secondItem="lhV-Mj-Sw9" secondAttribute="trailing" id="MuO-rT-Ae0"/>
|
||||
<constraint firstAttribute="bottom" secondItem="lhV-Mj-Sw9" secondAttribute="bottom" id="OMj-0f-YDG"/>
|
||||
<constraint firstItem="CNB-oc-kaO" firstAttribute="top" secondItem="Qrk-n6-aPT" secondAttribute="top" id="OPc-SQ-Ez8"/>
|
||||
<constraint firstItem="lhV-Mj-Sw9" firstAttribute="leading" secondItem="Qrk-n6-aPT" secondAttribute="leading" id="TPe-O6-dMN"/>
|
||||
<constraint firstItem="CNB-oc-kaO" firstAttribute="leading" secondItem="Qrk-n6-aPT" secondAttribute="leading" id="nhU-hV-Qt8"/>
|
||||
<constraint firstAttribute="trailing" secondItem="CNB-oc-kaO" secondAttribute="trailing" id="rb0-vP-lzN"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="hiddenSwitch" destination="iTv-d4-ayC" id="RUB-mq-6va"/>
|
||||
<outlet property="selectedView" destination="lhV-Mj-Sw9" id="T42-ff-HUj"/>
|
||||
<outlet property="titleLabel" destination="WiD-pa-sbk" id="ooM-bp-mO6"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="82.400000000000006" y="111.54422788605699"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
Reference in New Issue
Block a user