Add + Update screen : PlayMusic
This commit is contained in:
+11
-11
@@ -41,7 +41,7 @@ class CustomCardViewController: StoryboardController {
|
||||
// let scrollV = createMapsCollectionAdapterView()
|
||||
// scrollV.alpha = 0.75
|
||||
// c1.add(scrollView: scrollV)
|
||||
// c1.backView.y = 39
|
||||
// c1.backView?.y = 39
|
||||
|
||||
containers.append( c1 )
|
||||
}
|
||||
@@ -58,7 +58,7 @@ class CustomCardViewController: StoryboardController {
|
||||
// let scrollV = createTableViewTestItems(number: 33)
|
||||
// scrollV.alpha = 0.5
|
||||
// c1.add(scrollView: scrollV)
|
||||
// c1.backView.y = 39
|
||||
// c1.backView?.y = 39
|
||||
|
||||
containers.append( c1 )
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class CustomCardViewController: StoryboardController {
|
||||
// let scrollV = createCollectionAdapterView(width: ScreenSize.width - (98 + 8) )
|
||||
// scrollV.alpha = 0.35
|
||||
// c1.add(scrollView: scrollV)
|
||||
// c1.backView.y = 63
|
||||
// c1.backView?.y = 63
|
||||
|
||||
containers.append( c1 )
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class CustomCardViewController: StoryboardController {
|
||||
// let scrollV = createMapsCollectionAdapterView()
|
||||
// scrollV.alpha = 0.5
|
||||
// c1.add(scrollView: scrollV)
|
||||
// c1.backView.y = 63i
|
||||
// c1.backView?.y = 63i
|
||||
// main(delay: p * 4) {
|
||||
// c1.move(type: .top)
|
||||
// }
|
||||
@@ -111,7 +111,7 @@ class CustomCardViewController: StoryboardController {
|
||||
|
||||
containerTableView = t1
|
||||
|
||||
c1.backView.subviews.forEach {
|
||||
c1.backView?.subviews.forEach {
|
||||
$0.removeFromSuperview()
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ class CustomCardViewController: StoryboardController {
|
||||
let scrollV = createMapsCollectionAdapterView()
|
||||
scrollV.alpha = 0.0
|
||||
c1.add(scrollView: scrollV)
|
||||
c1.backView.y = 39
|
||||
c1.backView?.y = 39
|
||||
UIView.animate(withDuration: 0.35) {
|
||||
scrollV.alpha = 0.75
|
||||
}
|
||||
@@ -249,7 +249,7 @@ class CustomCardViewController: StoryboardController {
|
||||
let scrollV = createTableViewTestItems(number: 33)
|
||||
scrollV.alpha = 0.0
|
||||
c1.add(scrollView: scrollV)
|
||||
c1.backView.y = 39
|
||||
c1.backView?.y = 39
|
||||
UIView.animate(withDuration: 0.35) {
|
||||
scrollV.alpha = 0.5
|
||||
}
|
||||
@@ -257,7 +257,7 @@ class CustomCardViewController: StoryboardController {
|
||||
let scrollV = createCollectionAdapterView(width: ScreenSize.width - (98 + 8) )
|
||||
scrollV.alpha = 0.0
|
||||
c1.add(scrollView: scrollV)
|
||||
c1.backView.y = 63
|
||||
c1.backView?.y = 63
|
||||
UIView.animate(withDuration: 0.35) {
|
||||
scrollV.alpha = 0.35
|
||||
}
|
||||
@@ -265,7 +265,7 @@ class CustomCardViewController: StoryboardController {
|
||||
let scrollV = createMapsCollectionAdapterView()
|
||||
scrollV.alpha = 0.0
|
||||
c1.add(scrollView: scrollV)
|
||||
c1.backView.y = 63
|
||||
c1.backView?.y = 63
|
||||
UIView.animate(withDuration: 0.35) {
|
||||
scrollV.alpha = 0.5
|
||||
}
|
||||
@@ -351,7 +351,7 @@ class CustomCardViewController: StoryboardController {
|
||||
let ccc = addContainer(position: .init(top: mini ? 241 : 350, bottom: mini ? 223 : 173), radius: mini ? 22 : 37, items: itemsC, addBackShadow: addBackShadow)
|
||||
|
||||
|
||||
let frr = CGRect(x: 0, y: 0, width: ccc.0.backView.width, height: ccc.0.backView.height)
|
||||
let frr = CGRect(x: 0, y: 0, width: ccc.0.backView?.width ?? 0, height: ccc.0.backView?.height ?? 0)
|
||||
let gradientV = CustomCardGradientMainView()
|
||||
gradientV.gr1.isHidden = !gradient
|
||||
gradientV.gr2.isHidden = gradient
|
||||
@@ -359,7 +359,7 @@ class CustomCardViewController: StoryboardController {
|
||||
.flexibleRightMargin, .flexibleTopMargin]
|
||||
gradientV.frame = frr
|
||||
|
||||
ccc.0.backView.addSubview( gradientV )
|
||||
ccc.0.backView?.addSubview( gradientV )
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
import UIKit
|
||||
import ContainerControllerSwift
|
||||
|
||||
// MARK: - State
|
||||
|
||||
extension PlayMusicItItem {
|
||||
struct State {
|
||||
var firstImage: UIImage?
|
||||
var subtitleText: String?
|
||||
var text2: String?
|
||||
var image3: UIImage?
|
||||
var image4: UIImage?
|
||||
var image5: UIImage?
|
||||
var image6: UIImage?
|
||||
var image7: UIImage?
|
||||
var image8: UIImage?
|
||||
var image9: UIImage?
|
||||
var image10: UIImage?
|
||||
var image11: UIImage?
|
||||
var image12: UIImage?
|
||||
var handlers: Handlers = .init()
|
||||
}
|
||||
struct Handlers {
|
||||
var onClickAt: (()->(Void))?
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Item
|
||||
|
||||
class PlayMusicItItem: TableAdapterItem {
|
||||
init(state: PlayMusicItItem.State) {
|
||||
let cellData = PlayMusicItCellData(state: state)
|
||||
super.init(cellClass: PlayMusicItCell.self, cellData: cellData)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Data
|
||||
|
||||
class PlayMusicItCellData: TableAdapterCellData {
|
||||
|
||||
var state: PlayMusicItItem.State
|
||||
|
||||
init(state: PlayMusicItItem.State) {
|
||||
self.state = state
|
||||
super.init()
|
||||
// self.cellClickCallback = state.handlers.onClickAt
|
||||
}
|
||||
|
||||
override public func cellHeight() -> CGFloat {
|
||||
// let calcHeight = calculateLabel(
|
||||
// text: state.titleText,
|
||||
// padding: 16,
|
||||
// titleFont: SFProText.regular.size(.headline)
|
||||
// )
|
||||
return Self.cHeight()
|
||||
}
|
||||
|
||||
public static func cHeight() -> CGFloat {
|
||||
return 706.0
|
||||
}
|
||||
|
||||
override public func canEditing() -> Bool {
|
||||
return editing
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Cell
|
||||
|
||||
class PlayMusicItCell: TableAdapterCell {
|
||||
|
||||
public var data: PlayMusicItCellData?
|
||||
|
||||
@IBOutlet private weak var firstImageView: UIImageView?
|
||||
@IBOutlet private weak var subtitleLabel: UILabel?
|
||||
@IBOutlet private weak var label2: UILabel?
|
||||
@IBOutlet private weak var imageView3: UIImageView?
|
||||
@IBOutlet private weak var imageView4: UIImageView?
|
||||
@IBOutlet private weak var imageView5: UIImageView?
|
||||
@IBOutlet private weak var imageView6: UIImageView?
|
||||
@IBOutlet private weak var imageView7: UIImageView?
|
||||
@IBOutlet private weak var imageView8: UIImageView?
|
||||
@IBOutlet private weak var imageView9: UIImageView?
|
||||
@IBOutlet private weak var imageView10: UIImageView?
|
||||
@IBOutlet private weak var imageView11: UIImageView?
|
||||
@IBOutlet private weak var imageView12: UIImageView?
|
||||
|
||||
@IBOutlet override var selectedView: UIView? { didSet { } }
|
||||
@IBOutlet var cardView: UIView?
|
||||
@IBOutlet var button: UIButton?
|
||||
|
||||
override func awakeFromNib() {
|
||||
separator(hide: true)
|
||||
button?.tapHideAnimation(
|
||||
view: cardView,
|
||||
type: .alpha(0.5),
|
||||
callback: { [weak self] type in
|
||||
if type == .touchUpInside {
|
||||
self?.data?.state.handlers.onClickAt?()
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
override func fill(data: TableAdapterCellData?) {
|
||||
guard let data = data as? PlayMusicItCellData else { return }
|
||||
self.data = data
|
||||
if let v = data.state.firstImage { firstImageView?.image = v }
|
||||
if let v = data.state.subtitleText { subtitleLabel?.text = v }
|
||||
if let v = data.state.text2 { label2?.text = v }
|
||||
if let v = data.state.image3 { imageView3?.image = v }
|
||||
if let v = data.state.image4 { imageView4?.image = v }
|
||||
if let v = data.state.image5 { imageView5?.image = v }
|
||||
if let v = data.state.image6 { imageView6?.image = v }
|
||||
if let v = data.state.image7 { imageView7?.image = v }
|
||||
if let v = data.state.image8 { imageView8?.image = v }
|
||||
if let v = data.state.image9 { imageView9?.image = v }
|
||||
if let v = data.state.image10 { imageView10?.image = v }
|
||||
if let v = data.state.image11 { imageView11?.image = v }
|
||||
if let v = data.state.image12 { imageView12?.image = v }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,58 +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="NO" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" rowHeight="64" id="7kB-NQ-FSp" customClass="PlayMusicItCell" customModule="FigmaConvertXib" customModuleProvider="target">
|
||||
<rect key="frame" x="526.0" y="108.0" width="375.0" height="706.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="7kB-NQ-FSp" id="ChH-TT-3bu">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375.0" height="706.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel=" PlayMusicIt" id="pck-cd-HzR" customClass="DesignFigure" customModule="FigmaConvertXib" customModuleProvider="target"><rect key="frame" x="0.0" y="0.0" width="375.0" height="706.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/><subviews><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="cardFullView" id="tVN-zL-fCZ" customClass="DesignFigure" customModule="FigmaConvertXib" customModuleProvider="target"><rect key="frame" x="0.0" y="0.0" width="375.0" height="706.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><userDefinedRuntimeAttributes><userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="0.11764705926179886" green="0.11764705926179886" blue="0.11764705926179886" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="grColor1">
|
||||
<color key="value" red="0.9411764740943909" green="0.9333333373069763" blue="0.9176470637321472" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="grColor2">
|
||||
<color key="value" red="0.9647058844566345" green="0.9490196108818054" blue="0.9333333373069763" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="grColor3">
|
||||
<color key="value" red="0.9647058844566345" green="0.9333333373069763" blue="0.9215686321258545" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="grColor4">
|
||||
<color key="value" red="0.8745098114013672" green="0.8039215803146362" blue="0.8549019694328308" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="grColor5">
|
||||
<color key="value" red="0.8549019694328308" green="0.8039215803146362" blue="0.843137264251709" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="boolean" keyPath="grRadial" value="NO"/><userDefinedRuntimeAttribute type="point" keyPath="grStartPoint">
|
||||
<point key="value" x="0.5" y="-3.0616171314629196e-17"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="point" keyPath="grEndPoint">
|
||||
<point key="value" x="0.5" y="0.9999999999999999"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes></view><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="imgMusicPicView" id="nvc-Ju-J8w" customClass="DesignFigure" customModule="FigmaConvertXib" customModuleProvider="target"><rect key="frame" x="25.0" y="19.0" width="327.0" height="328.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><subviews><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="imgPlayMusicIdDisclosureYouMe" translatesAutoresizingMaskIntoConstraints="NO" userLabel="imgPlayMusicIdDisclosureYouMe" id="nwg-a4-OQj"><rect key="frame" x="5.0" y="5.0" width="317.0" height="318.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView>
|
||||
</subviews><userDefinedRuntimeAttributes><userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="10.0"/>
|
||||
</userDefinedRuntimeAttribute><userDefinedRuntimeAttribute type="color" keyPath="fillColor">
|
||||
<color key="value" red="0.8666666746139526" green="0.8666666746139526" blue="0.8627451062202454" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes></view><label opaque="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Ut Distinctio Recusandae Vi..." textAlignment="left" lineBreakMode="tailTruncation" numberOfLines="100" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AIJ-a4-N3r" userLabel="Ut Distinctio Recusandae Vi..." customModuleProvider="target"><rect key="frame" x="33.0" y="382.0" width="270.0" height="23.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><fontDescription key="fontDescription" type="boldSystem" pointSize="18.0"/><color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/><userDefinedRuntimeAttributes>
|
||||
</userDefinedRuntimeAttributes></label><label opaque="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Est beatae non rerum et repudia..." textAlignment="left" lineBreakMode="tailTruncation" numberOfLines="100" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XOy-9r-ZHX" userLabel="Est beatae non rerum et repudia..." customModuleProvider="target"><rect key="frame" x="33.0" y="405.0" width="270.0" height="23.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><fontDescription key="fontDescription" type="system" weight="medium" pointSize="18.0"/><color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1.0" colorSpace="custom" customColorSpace="sRGB"/><userDefinedRuntimeAttributes>
|
||||
</userDefinedRuntimeAttributes></label><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="sliderMediaView" id="kNx-Pt-YLP"><rect key="frame" x="25.0" y="448.0" width="325.0" height="38.0"/><color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.10999999940395355" colorSpace="custom" customColorSpace="sRGB"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></view><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="sliderVolumeView" id="8oq-CE-yr9"><rect key="frame" x="25.0" y="612.0" width="325.0" height="38.0"/><color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.03999999910593033" colorSpace="custom" customColorSpace="sRGB"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><subviews><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicVolumeHight" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicVolumeHight" id="Gxt-jN-2A6"><rect key="frame" x="303.0" y="11.0" width="16.0" height="16.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicVolumeOff" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicVolumeOff" id="K8v-Kf-hrW"><rect key="frame" x="8.0" y="11.0" width="16.0" height="16.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView>
|
||||
</subviews></view><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="Frame 89552" id="MJE-Pp-4WO"><rect key="frame" x="25.0" y="534.0" width="325.0" height="38.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><subviews><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="Frame 89551" id="Qbe-vI-oIf"><rect key="frame" x="144.0" y="1.0" width="37.0" height="37.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><subviews><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsPause" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsPause" id="rom-FU-Cws"><rect key="frame" x="0.0" y="0.0" width="37.0" height="37.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsPlay" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsPlay" id="2Rw-Wx-IvX"><rect key="frame" x="0.0" y="0.0" width="37.0" height="37.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView>
|
||||
</subviews></view><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsFastForwardRight" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsFastForwardRight" id="CY2-D2-to6"><rect key="frame" x="252.0" y="0.0" width="37.0" height="37.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsFastForwardLeft" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsFastForwardLeft" id="AU2-ze-PXp"><rect key="frame" x="35.99999676535663" y="0.0" width="37.00000323464337" height="37.00000323464337"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView>
|
||||
</subviews></view><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel="Frame 89553" id="cny-2h-Bsr"><rect key="frame" x="25.0" y="668.0" width="325.0" height="21.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><subviews><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsRepeat" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsRepeat" id="V5Q-Ge-JJm"><rect key="frame" x="258.0" y="0.0" width="21.0" height="21.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsShuffle" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsShuffle" id="Zob-Hc-hsj"><rect key="frame" x="46.0" y="0.0" width="21.0" height="21.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicControlsAirdrop" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicControlsAirdrop" id="93A-Xs-IWx"><rect key="frame" x="152.0" y="0.0" width="21.0" height="21.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView>
|
||||
</subviews></view><imageView clipsSubviews="NO" userInteractionEnabled="NO" alpha="1.0" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iconPlayMusicMore" translatesAutoresizingMaskIntoConstraints="NO" userLabel="iconPlayMusicMore" id="hv0-25-cXI"><rect key="frame" x="315.0" y="391.0" width="28.0" height="28.0"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/></imageView><button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4cU-L1-zcN">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375.0" height="706.0"/></button>
|
||||
</subviews><userDefinedRuntimeAttributes>
|
||||
</userDefinedRuntimeAttributes> </view>
|
||||
</subviews>
|
||||
|
||||
<constraints>
|
||||
|
||||
</constraints>
|
||||
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/><connections>
|
||||
<outlet property="firstImageView" destination="nwg-a4-OQj" id="XCp-Mc-Ruy"/><outlet property="subtitleLabel" destination="AIJ-a4-N3r" id="Ias-LY-lmI"/><outlet property="label2" destination="XOy-9r-ZHX" id="h1U-OD-iWR"/><outlet property="imageView3" destination="Gxt-jN-2A6" id="FCv-fF-gY3"/><outlet property="imageView4" destination="K8v-Kf-hrW" id="vFM-nf-SQC"/><outlet property="imageView5" destination="rom-FU-Cws" id="v8H-IR-wTs"/><outlet property="imageView6" destination="2Rw-Wx-IvX" id="wUZ-V1-5hO"/><outlet property="imageView7" destination="CY2-D2-to6" id="Qx5-Ce-tZ7"/><outlet property="imageView8" destination="AU2-ze-PXp" id="vq3-IY-NcH"/><outlet property="imageView9" destination="V5Q-Ge-JJm" id="5Ej-q1-36J"/><outlet property="imageView10" destination="Zob-Hc-hsj" id="tgO-3O-JmD"/><outlet property="imageView11" destination="93A-Xs-IWx" id="wCk-au-lki"/><outlet property="imageView12" destination="hv0-25-cXI" id="rue-u5-17B"/><outlet property="button" destination="4cU-L1-zcN" id="N62-Mb-uE6"/>
|
||||
</connections></tableViewCell></objects></document>
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
import UIKit
|
||||
import ContainerControllerSwift
|
||||
|
||||
// typealias PlayMusicItGribButtonActionCallback = () -> Void
|
||||
|
||||
class PlayMusicItGribView: XibView {
|
||||
|
||||
// MARK: - IBOutlets
|
||||
|
||||
|
||||
// @IBOutlet weak var button: DesignButton!
|
||||
|
||||
override func loadedFromNib() {
|
||||
|
||||
}
|
||||
|
||||
// @IBAction func buttonClickAction(_ sender: DesignButton) {
|
||||
// }
|
||||
}
|
||||
-11
@@ -1,11 +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="PlayMusicItGribView" customModule="FigmaConvertXib" customModuleProvider="target">
|
||||
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/><view clipsSubviews="NO" alpha="1.0" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" userLabel=" PlayMusicItGrib" id="vYi-qe-j5R"><rect key="frame" x="526.0" y="0.0" width="375.0" height="30.0"/><color key="backgroundColor" red="1.0" green="1.0" blue="1.0" alpha="0.10999999940395355" colorSpace="custom" customColorSpace="sRGB"/><autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/><freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/></view></objects></document>
|
||||
-40
@@ -1,40 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" 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="16087"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--PlayMusicViewController-->
|
||||
<scene sceneID="iwE-Yf-ugv">
|
||||
<objects>
|
||||
<viewController storyboardIdentifier="PlayMusicViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="5fM-9x-XQe" customClass="PlayMusicViewController" customModule="FigmaConvertXib" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="UBf-41-FeJ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="qyv-r8-IHm" customClass="TableAdapterView" customModule="FigmaConvertXib" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<color key="backgroundColor" red="0.93725490196078431" green="0.94901960784313721" blue="0.96078431372549022" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="qyv-r8-IHm" secondAttribute="trailing" id="zh9-Hu-8hl"/>
|
||||
<constraint firstItem="qyv-r8-IHm" firstAttribute="leading" secondItem="UBf-41-FeJ" secondAttribute="leading" id="tcc-c9-7hp"/>
|
||||
<constraint firstAttribute="bottom" secondItem="qyv-r8-IHm" secondAttribute="bottom" id="A9r-du-1R4"/>
|
||||
<constraint firstItem="qyv-r8-IHm" firstAttribute="top" secondItem="UBf-41-FeJ" secondAttribute="top" id="pmT-7W-vFz"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="6qi-GV-N23"/>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="tableView" destination="qyv-r8-IHm" id="5RW-sq-YuK"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="0Mu-2s-QOT" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
import UIKit
|
||||
import ContainerControllerSwift
|
||||
|
||||
class PlayMusicViewController: StoryboardController {
|
||||
|
||||
@IBOutlet weak var tableView: TableAdapterView!
|
||||
var containers: [ContainerController] = []
|
||||
|
||||
var containerTableView: TableAdapterView?
|
||||
var container: ContainerController?
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
|
||||
self.navBarHide = true
|
||||
view.backgroundColor = .white
|
||||
let color1 = #colorLiteral(red: 0.1019607843, green: 0.168627451, blue: 0.4588235294, alpha: 1)
|
||||
let img1 = #imageLiteral(resourceName: "imgPlaylistMain")
|
||||
|
||||
var items: [TableAdapterItem] = []
|
||||
// items.append( PlaylistTitleItem(state: .init() ) )
|
||||
tableView.set(items: items, animated: true)
|
||||
|
||||
let fr = CGRect(x: 0, y: 0, width: ScreenSize.width, height: 26)
|
||||
let header = TaxiContainerHeaderView(frame: fr)
|
||||
|
||||
var itemsC: [TableAdapterItem] = []
|
||||
// itemsC.append( TaxiAddressABItem(state: .init() ) )
|
||||
// itemsC.append( TaxiAddressABItem(state: .init() ) )
|
||||
// itemsC.append( TaxiCollectionCarsItem(state: .init() ) )
|
||||
// itemsC.append( TaxiVisaCardItem(state: .init() ) )
|
||||
// itemsC.append( TaxiButtonBottomItem(state: .init() ) )
|
||||
|
||||
let ccc = addContainer(position: .init(top: 266, bottom: 380), radius: 20, items: itemsC, header: header)
|
||||
container = ccc.0
|
||||
containerTableView = ccc.1
|
||||
|
||||
containers.append( ccc.0 )
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user