Skip to content

Commit aa23b85

Browse files
author
Egor Lindberg
committed
Integration with Cocoapods and SPM
1 parent 6e3b37e commit aa23b85

File tree

82 files changed

+2931
-4365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2931
-4365
lines changed

Example/ORCarousel.xcodeproj/project.pbxproj

Lines changed: 99 additions & 120 deletions
Large diffs are not rendered by default.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0900"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
18+
BuildableName = "ORCarousel_Example.app"
19+
BlueprintName = "ORCarousel_Example"
20+
ReferencedContainer = "container:ORCarousel.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "607FACE41AFB9204008FA782"
32+
BuildableName = "ORCarousel_Tests.xctest"
33+
BlueprintName = "ORCarousel_Tests"
34+
ReferencedContainer = "container:ORCarousel.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
language = ""
44+
shouldUseLaunchSchemeArgsEnv = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "607FACE41AFB9204008FA782"
51+
BuildableName = "ORCarousel_Tests.xctest"
52+
BlueprintName = "ORCarousel_Tests"
53+
ReferencedContainer = "container:ORCarousel.xcodeproj">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
<MacroExpansion>
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61+
BuildableName = "ORCarousel_Example.app"
62+
BlueprintName = "ORCarousel_Example"
63+
ReferencedContainer = "container:ORCarousel.xcodeproj">
64+
</BuildableReference>
65+
</MacroExpansion>
66+
<AdditionalOptions>
67+
</AdditionalOptions>
68+
</TestAction>
69+
<LaunchAction
70+
buildConfiguration = "Debug"
71+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
72+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73+
language = ""
74+
launchStyle = "0"
75+
useCustomWorkingDirectory = "NO"
76+
ignoresPersistentStateOnLaunch = "NO"
77+
debugDocumentVersioning = "YES"
78+
debugServiceExtension = "internal"
79+
allowLocationSimulation = "YES">
80+
<BuildableProductRunnable
81+
runnableDebuggingMode = "0">
82+
<BuildableReference
83+
BuildableIdentifier = "primary"
84+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
85+
BuildableName = "ORCarousel_Example.app"
86+
BlueprintName = "ORCarousel_Example"
87+
ReferencedContainer = "container:ORCarousel.xcodeproj">
88+
</BuildableReference>
89+
</BuildableProductRunnable>
90+
<AdditionalOptions>
91+
</AdditionalOptions>
92+
</LaunchAction>
93+
<ProfileAction
94+
buildConfiguration = "Release"
95+
shouldUseLaunchSchemeArgsEnv = "YES"
96+
savedToolIdentifier = ""
97+
useCustomWorkingDirectory = "NO"
98+
debugDocumentVersioning = "YES">
99+
<BuildableProductRunnable
100+
runnableDebuggingMode = "0">
101+
<BuildableReference
102+
BuildableIdentifier = "primary"
103+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
104+
BuildableName = "ORCarousel_Example.app"
105+
BlueprintName = "ORCarousel_Example"
106+
ReferencedContainer = "container:ORCarousel.xcodeproj">
107+
</BuildableReference>
108+
</BuildableProductRunnable>
109+
</ProfileAction>
110+
<AnalyzeAction
111+
buildConfiguration = "Debug">
112+
</AnalyzeAction>
113+
<ArchiveAction
114+
buildConfiguration = "Release"
115+
revealArchiveInOrganizer = "YES">
116+
</ArchiveAction>
117+
</Scheme>

Example/ORCarousel/AppDelegate.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// AppDelegate.swift
33
// ORCarousel
44
//
5-
// Created by Teleks on 05/19/2017.
6-
// Copyright (c) 2017 Teleks. All rights reserved.
5+
// Created by Egor Lindberg on 12/28/2020.
6+
// Copyright (c) 2020 Egor Lindberg. All rights reserved.
77
//
88

99
import UIKit
@@ -41,5 +41,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4141
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
4242
}
4343

44+
4445
}
4546

Example/ORCarousel/Base.lproj/LaunchScreen.xib

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
59
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
611
</dependencies>
712
<objects>
813
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -24,7 +29,7 @@
2429
<nil key="highlightedColor"/>
2530
</label>
2631
</subviews>
27-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
32+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2833
<constraints>
2934
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
3035
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
Lines changed: 4 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.17" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
3-
<device id="retina4_0" orientation="portrait">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
3+
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.14"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
99
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1010
</dependencies>
1111
<scenes>
@@ -18,102 +18,13 @@
1818
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
1919
</layoutGuides>
2020
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
21-
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
21+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
2222
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
23-
<subviews>
24-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mbI-Kh-uaP" customClass="ORCarousel" customModule="ORCarousel">
25-
<rect key="frame" x="0.0" y="20" width="320" height="50"/>
26-
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
27-
<constraints>
28-
<constraint firstAttribute="height" constant="50" id="scw-Bv-XXm"/>
29-
</constraints>
30-
<userDefinedRuntimeAttributes>
31-
<userDefinedRuntimeAttribute type="boolean" keyPath="showScrollIndicator" value="NO"/>
32-
</userDefinedRuntimeAttributes>
33-
</view>
34-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NGX-AU-arZ" customClass="ORCarousel" customModule="ORCarousel">
35-
<rect key="frame" x="0.0" y="74" width="320" height="50"/>
36-
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
37-
<constraints>
38-
<constraint firstAttribute="height" constant="50" id="mYi-cq-IpM"/>
39-
</constraints>
40-
<userDefinedRuntimeAttributes>
41-
<userDefinedRuntimeAttribute type="boolean" keyPath="showScrollIndicator" value="NO"/>
42-
</userDefinedRuntimeAttributes>
43-
</view>
44-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CKM-d1-7dH" customClass="ORCarousel" customModule="ORCarousel">
45-
<rect key="frame" x="0.0" y="182" width="320" height="386"/>
46-
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
47-
<userDefinedRuntimeAttributes>
48-
<userDefinedRuntimeAttribute type="boolean" keyPath="showScrollIndicator" value="NO"/>
49-
</userDefinedRuntimeAttributes>
50-
</view>
51-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YxL-TF-6Nq" customClass="ORCarousel" customModule="ORCarousel">
52-
<rect key="frame" x="0.0" y="128" width="320" height="50"/>
53-
<subviews>
54-
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="uv4-Y8-5Rh">
55-
<rect key="frame" x="20" y="0.0" width="280" height="50"/>
56-
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="fSw-Yc-ljj">
57-
<size key="itemSize" width="50" height="50"/>
58-
<size key="headerReferenceSize" width="0.0" height="0.0"/>
59-
<size key="footerReferenceSize" width="0.0" height="0.0"/>
60-
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
61-
</collectionViewFlowLayout>
62-
<cells>
63-
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="lEc-NA-qRP">
64-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
65-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
66-
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
67-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
68-
<autoresizingMask key="autoresizingMask"/>
69-
</view>
70-
</collectionViewCell>
71-
</cells>
72-
</collectionView>
73-
</subviews>
74-
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
75-
<constraints>
76-
<constraint firstAttribute="bottom" secondItem="uv4-Y8-5Rh" secondAttribute="bottom" id="EO4-I2-Ydp"/>
77-
<constraint firstAttribute="trailing" secondItem="uv4-Y8-5Rh" secondAttribute="trailing" constant="20" id="Kyu-kn-BtV"/>
78-
<constraint firstItem="uv4-Y8-5Rh" firstAttribute="top" secondItem="YxL-TF-6Nq" secondAttribute="top" id="ePv-RL-OHc"/>
79-
<constraint firstAttribute="height" constant="50" id="lMD-vB-ofk"/>
80-
<constraint firstItem="uv4-Y8-5Rh" firstAttribute="leading" secondItem="YxL-TF-6Nq" secondAttribute="leading" constant="20" id="uRn-12-wHA"/>
81-
</constraints>
82-
<userDefinedRuntimeAttributes>
83-
<userDefinedRuntimeAttribute type="boolean" keyPath="showScrollIndicator" value="NO"/>
84-
</userDefinedRuntimeAttributes>
85-
<connections>
86-
<outlet property="collectionView" destination="uv4-Y8-5Rh" id="kqO-Js-QDk"/>
87-
</connections>
88-
</view>
89-
</subviews>
9023
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
91-
<constraints>
92-
<constraint firstItem="CKM-d1-7dH" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="4Tv-rh-URu"/>
93-
<constraint firstAttribute="trailing" secondItem="mbI-Kh-uaP" secondAttribute="trailing" id="DAG-V3-IKq"/>
94-
<constraint firstItem="mbI-Kh-uaP" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="Ena-Zv-QAg"/>
95-
<constraint firstItem="NGX-AU-arZ" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="LZ6-88-QbW"/>
96-
<constraint firstItem="2fi-mo-0CV" firstAttribute="top" secondItem="CKM-d1-7dH" secondAttribute="bottom" id="RgO-CX-pn7"/>
97-
<constraint firstItem="mbI-Kh-uaP" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" id="SFn-C7-N9O"/>
98-
<constraint firstItem="YxL-TF-6Nq" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="ii9-Rx-efD"/>
99-
<constraint firstItem="YxL-TF-6Nq" firstAttribute="top" secondItem="NGX-AU-arZ" secondAttribute="bottom" constant="4" id="jcm-8Y-ha6"/>
100-
<constraint firstAttribute="trailing" secondItem="CKM-d1-7dH" secondAttribute="trailing" id="krD-bO-loS"/>
101-
<constraint firstAttribute="trailing" secondItem="YxL-TF-6Nq" secondAttribute="trailing" id="pvV-aj-7s5"/>
102-
<constraint firstItem="CKM-d1-7dH" firstAttribute="top" secondItem="YxL-TF-6Nq" secondAttribute="bottom" constant="4" id="qBH-0C-qzE"/>
103-
<constraint firstItem="NGX-AU-arZ" firstAttribute="top" secondItem="mbI-Kh-uaP" secondAttribute="bottom" constant="4" id="xSt-Pl-wLo"/>
104-
<constraint firstAttribute="trailing" secondItem="NGX-AU-arZ" secondAttribute="trailing" id="xTS-3k-5YM"/>
105-
</constraints>
10624
</view>
107-
<connections>
108-
<outlet property="bottomCarousel" destination="CKM-d1-7dH" id="3DP-QA-OWf"/>
109-
<outlet property="dayCarousel" destination="mbI-Kh-uaP" id="eAq-X0-nwH"/>
110-
<outlet property="monthCarousel" destination="NGX-AU-arZ" id="Dv5-G0-tnc"/>
111-
<outlet property="yearCarousel" destination="YxL-TF-6Nq" id="seo-CG-OUc"/>
112-
</connections>
11325
</viewController>
11426
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
11527
</objects>
116-
<point key="canvasLocation" x="24.375" y="34.859154929577464"/>
11728
</scene>
11829
</scenes>
11930
</document>

Example/ORCarousel/DateComponentCell.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)