Skip to content

Commit 329ad1d

Browse files
author
RYUHEI KAMINISHI
committed
πŸŽ‰ First commit
1 parent 9a9a3fd commit 329ad1d

14 files changed

Lines changed: 858 additions & 1 deletion

β€Ž.swiftlint.ymlβ€Ž

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'FloatingSegmentedControl'
3+
s.version = "1.0.0"
4+
s.license = { :type => "MIT", :file => "LICENSE" }
5+
6+
s.summary = "Segmented control like iOS13 photo app"
7+
s.homepage = "https://github.com/catelina777/FloatingSegmentedControl"
8+
s.author = 'catelina777'
9+
s.source = { :git => "https://github.com/catelina777/FloatingSegmentedControl", :tag => s.version }
10+
s.social_media_url = 'https://twitter.com/catelina777'
11+
12+
s.ios.deployment_target = "13.0"
13+
s.source_files = 'Source/**/*'
14+
s.frameworks = 'UIKit'
15+
s.swift_versions = ['5.0']
16+
end
17+
Lines changed: 367 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,367 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
40162AC3235CAA98008D8F62 /* FloatingSegmentedControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 40162AC1235CAA98008D8F62 /* FloatingSegmentedControl.h */; settings = {ATTRIBUTES = (Public, ); }; };
11+
40162ACD235CB07B008D8F62 /* FloatingControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40162ACC235CB07B008D8F62 /* FloatingControl.swift */; };
12+
40162ACF235CB08F008D8F62 /* FloatingSegmentedControl.xib in Resources */ = {isa = PBXBuildFile; fileRef = 40162ACE235CB08F008D8F62 /* FloatingSegmentedControl.xib */; };
13+
40162AD1235CB0F4008D8F62 /* FloatingSegment.xib in Resources */ = {isa = PBXBuildFile; fileRef = 40162AD0235CB0F4008D8F62 /* FloatingSegment.xib */; };
14+
40162AD5235CB10C008D8F62 /* FloatingSegment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40162AD4235CB10C008D8F62 /* FloatingSegment.swift */; };
15+
40162AD7235CB77B008D8F62 /* NibInstantiatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40162AD6235CB77B008D8F62 /* NibInstantiatable.swift */; };
16+
40162B18235CCE7D008D8F62 /* UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40162B17235CCE7D008D8F62 /* UIView.swift */; };
17+
/* End PBXBuildFile section */
18+
19+
/* Begin PBXFileReference section */
20+
40162ABE235CAA98008D8F62 /* FloatingSegmentedControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FloatingSegmentedControl.framework; sourceTree = BUILT_PRODUCTS_DIR; };
21+
40162AC1235CAA98008D8F62 /* FloatingSegmentedControl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FloatingSegmentedControl.h; sourceTree = "<group>"; };
22+
40162AC2235CAA98008D8F62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
23+
40162ACC235CB07B008D8F62 /* FloatingControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FloatingControl.swift; sourceTree = "<group>"; };
24+
40162ACE235CB08F008D8F62 /* FloatingSegmentedControl.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = FloatingSegmentedControl.xib; sourceTree = "<group>"; };
25+
40162AD0235CB0F4008D8F62 /* FloatingSegment.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = FloatingSegment.xib; sourceTree = "<group>"; };
26+
40162AD4235CB10C008D8F62 /* FloatingSegment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FloatingSegment.swift; sourceTree = "<group>"; };
27+
40162AD6235CB77B008D8F62 /* NibInstantiatable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NibInstantiatable.swift; sourceTree = "<group>"; };
28+
40162B17235CCE7D008D8F62 /* UIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIView.swift; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
40162ABB235CAA98008D8F62 /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
40162AB4235CAA98008D8F62 = {
43+
isa = PBXGroup;
44+
children = (
45+
40162AC0235CAA98008D8F62 /* Source */,
46+
40162ABF235CAA98008D8F62 /* Products */,
47+
);
48+
sourceTree = "<group>";
49+
};
50+
40162ABF235CAA98008D8F62 /* Products */ = {
51+
isa = PBXGroup;
52+
children = (
53+
40162ABE235CAA98008D8F62 /* FloatingSegmentedControl.framework */,
54+
);
55+
name = Products;
56+
sourceTree = "<group>";
57+
};
58+
40162AC0235CAA98008D8F62 /* Source */ = {
59+
isa = PBXGroup;
60+
children = (
61+
40162ACC235CB07B008D8F62 /* FloatingControl.swift */,
62+
40162ACE235CB08F008D8F62 /* FloatingSegmentedControl.xib */,
63+
40162AD4235CB10C008D8F62 /* FloatingSegment.swift */,
64+
40162AD0235CB0F4008D8F62 /* FloatingSegment.xib */,
65+
40162AD6235CB77B008D8F62 /* NibInstantiatable.swift */,
66+
40162B17235CCE7D008D8F62 /* UIView.swift */,
67+
40162ACA235CAC4B008D8F62 /* Supporting Files */,
68+
);
69+
path = Source;
70+
sourceTree = "<group>";
71+
};
72+
40162ACA235CAC4B008D8F62 /* Supporting Files */ = {
73+
isa = PBXGroup;
74+
children = (
75+
40162AC2235CAA98008D8F62 /* Info.plist */,
76+
40162AC1235CAA98008D8F62 /* FloatingSegmentedControl.h */,
77+
);
78+
path = "Supporting Files";
79+
sourceTree = "<group>";
80+
};
81+
/* End PBXGroup section */
82+
83+
/* Begin PBXHeadersBuildPhase section */
84+
40162AB9235CAA98008D8F62 /* Headers */ = {
85+
isa = PBXHeadersBuildPhase;
86+
buildActionMask = 2147483647;
87+
files = (
88+
40162AC3235CAA98008D8F62 /* FloatingSegmentedControl.h in Headers */,
89+
);
90+
runOnlyForDeploymentPostprocessing = 0;
91+
};
92+
/* End PBXHeadersBuildPhase section */
93+
94+
/* Begin PBXNativeTarget section */
95+
40162ABD235CAA98008D8F62 /* FloatingSegmentedControl */ = {
96+
isa = PBXNativeTarget;
97+
buildConfigurationList = 40162AC6235CAA98008D8F62 /* Build configuration list for PBXNativeTarget "FloatingSegmentedControl" */;
98+
buildPhases = (
99+
40162AB9235CAA98008D8F62 /* Headers */,
100+
40162ABA235CAA98008D8F62 /* Sources */,
101+
40162ABB235CAA98008D8F62 /* Frameworks */,
102+
40162ABC235CAA98008D8F62 /* Resources */,
103+
);
104+
buildRules = (
105+
);
106+
dependencies = (
107+
);
108+
name = FloatingSegmentedControl;
109+
productName = FloatingSegmentedControl;
110+
productReference = 40162ABE235CAA98008D8F62 /* FloatingSegmentedControl.framework */;
111+
productType = "com.apple.product-type.framework";
112+
};
113+
/* End PBXNativeTarget section */
114+
115+
/* Begin PBXProject section */
116+
40162AB5235CAA98008D8F62 /* Project object */ = {
117+
isa = PBXProject;
118+
attributes = {
119+
LastSwiftUpdateCheck = 1110;
120+
LastUpgradeCheck = 1110;
121+
ORGANIZATIONNAME = catelina777;
122+
TargetAttributes = {
123+
40162ABD235CAA98008D8F62 = {
124+
CreatedOnToolsVersion = 11.1;
125+
LastSwiftMigration = 1110;
126+
};
127+
};
128+
};
129+
buildConfigurationList = 40162AB8235CAA98008D8F62 /* Build configuration list for PBXProject "FloatingSegmentedControl" */;
130+
compatibilityVersion = "Xcode 9.3";
131+
developmentRegion = en;
132+
hasScannedForEncodings = 0;
133+
knownRegions = (
134+
en,
135+
Base,
136+
);
137+
mainGroup = 40162AB4235CAA98008D8F62;
138+
productRefGroup = 40162ABF235CAA98008D8F62 /* Products */;
139+
projectDirPath = "";
140+
projectRoot = "";
141+
targets = (
142+
40162ABD235CAA98008D8F62 /* FloatingSegmentedControl */,
143+
);
144+
};
145+
/* End PBXProject section */
146+
147+
/* Begin PBXResourcesBuildPhase section */
148+
40162ABC235CAA98008D8F62 /* Resources */ = {
149+
isa = PBXResourcesBuildPhase;
150+
buildActionMask = 2147483647;
151+
files = (
152+
40162ACF235CB08F008D8F62 /* FloatingSegmentedControl.xib in Resources */,
153+
40162AD1235CB0F4008D8F62 /* FloatingSegment.xib in Resources */,
154+
);
155+
runOnlyForDeploymentPostprocessing = 0;
156+
};
157+
/* End PBXResourcesBuildPhase section */
158+
159+
/* Begin PBXSourcesBuildPhase section */
160+
40162ABA235CAA98008D8F62 /* Sources */ = {
161+
isa = PBXSourcesBuildPhase;
162+
buildActionMask = 2147483647;
163+
files = (
164+
40162B18235CCE7D008D8F62 /* UIView.swift in Sources */,
165+
40162AD7235CB77B008D8F62 /* NibInstantiatable.swift in Sources */,
166+
40162ACD235CB07B008D8F62 /* FloatingControl.swift in Sources */,
167+
40162AD5235CB10C008D8F62 /* FloatingSegment.swift in Sources */,
168+
);
169+
runOnlyForDeploymentPostprocessing = 0;
170+
};
171+
/* End PBXSourcesBuildPhase section */
172+
173+
/* Begin XCBuildConfiguration section */
174+
40162AC4235CAA98008D8F62 /* Debug */ = {
175+
isa = XCBuildConfiguration;
176+
buildSettings = {
177+
ALWAYS_SEARCH_USER_PATHS = NO;
178+
CLANG_ANALYZER_NONNULL = YES;
179+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
180+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
181+
CLANG_CXX_LIBRARY = "libc++";
182+
CLANG_ENABLE_MODULES = YES;
183+
CLANG_ENABLE_OBJC_ARC = YES;
184+
CLANG_ENABLE_OBJC_WEAK = YES;
185+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
186+
CLANG_WARN_BOOL_CONVERSION = YES;
187+
CLANG_WARN_COMMA = YES;
188+
CLANG_WARN_CONSTANT_CONVERSION = YES;
189+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
190+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
191+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
192+
CLANG_WARN_EMPTY_BODY = YES;
193+
CLANG_WARN_ENUM_CONVERSION = YES;
194+
CLANG_WARN_INFINITE_RECURSION = YES;
195+
CLANG_WARN_INT_CONVERSION = YES;
196+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
197+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
198+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
199+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
200+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
201+
CLANG_WARN_STRICT_PROTOTYPES = YES;
202+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
203+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
204+
CLANG_WARN_UNREACHABLE_CODE = YES;
205+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
206+
COPY_PHASE_STRIP = NO;
207+
CURRENT_PROJECT_VERSION = 1;
208+
DEBUG_INFORMATION_FORMAT = dwarf;
209+
ENABLE_STRICT_OBJC_MSGSEND = YES;
210+
ENABLE_TESTABILITY = YES;
211+
GCC_C_LANGUAGE_STANDARD = gnu11;
212+
GCC_DYNAMIC_NO_PIC = NO;
213+
GCC_NO_COMMON_BLOCKS = YES;
214+
GCC_OPTIMIZATION_LEVEL = 0;
215+
GCC_PREPROCESSOR_DEFINITIONS = (
216+
"DEBUG=1",
217+
"$(inherited)",
218+
);
219+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
220+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
221+
GCC_WARN_UNDECLARED_SELECTOR = YES;
222+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
223+
GCC_WARN_UNUSED_FUNCTION = YES;
224+
GCC_WARN_UNUSED_VARIABLE = YES;
225+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
226+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
227+
MTL_FAST_MATH = YES;
228+
ONLY_ACTIVE_ARCH = YES;
229+
SDKROOT = iphoneos;
230+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
231+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
232+
VERSIONING_SYSTEM = "apple-generic";
233+
VERSION_INFO_PREFIX = "";
234+
};
235+
name = Debug;
236+
};
237+
40162AC5235CAA98008D8F62 /* Release */ = {
238+
isa = XCBuildConfiguration;
239+
buildSettings = {
240+
ALWAYS_SEARCH_USER_PATHS = NO;
241+
CLANG_ANALYZER_NONNULL = YES;
242+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
243+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
244+
CLANG_CXX_LIBRARY = "libc++";
245+
CLANG_ENABLE_MODULES = YES;
246+
CLANG_ENABLE_OBJC_ARC = YES;
247+
CLANG_ENABLE_OBJC_WEAK = YES;
248+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
249+
CLANG_WARN_BOOL_CONVERSION = YES;
250+
CLANG_WARN_COMMA = YES;
251+
CLANG_WARN_CONSTANT_CONVERSION = YES;
252+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
253+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
254+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
255+
CLANG_WARN_EMPTY_BODY = YES;
256+
CLANG_WARN_ENUM_CONVERSION = YES;
257+
CLANG_WARN_INFINITE_RECURSION = YES;
258+
CLANG_WARN_INT_CONVERSION = YES;
259+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
260+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
261+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
262+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
263+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
264+
CLANG_WARN_STRICT_PROTOTYPES = YES;
265+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
266+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
267+
CLANG_WARN_UNREACHABLE_CODE = YES;
268+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
269+
COPY_PHASE_STRIP = NO;
270+
CURRENT_PROJECT_VERSION = 1;
271+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
272+
ENABLE_NS_ASSERTIONS = NO;
273+
ENABLE_STRICT_OBJC_MSGSEND = YES;
274+
GCC_C_LANGUAGE_STANDARD = gnu11;
275+
GCC_NO_COMMON_BLOCKS = YES;
276+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
277+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
278+
GCC_WARN_UNDECLARED_SELECTOR = YES;
279+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
280+
GCC_WARN_UNUSED_FUNCTION = YES;
281+
GCC_WARN_UNUSED_VARIABLE = YES;
282+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
283+
MTL_ENABLE_DEBUG_INFO = NO;
284+
MTL_FAST_MATH = YES;
285+
SDKROOT = iphoneos;
286+
SWIFT_COMPILATION_MODE = wholemodule;
287+
SWIFT_OPTIMIZATION_LEVEL = "-O";
288+
VALIDATE_PRODUCT = YES;
289+
VERSIONING_SYSTEM = "apple-generic";
290+
VERSION_INFO_PREFIX = "";
291+
};
292+
name = Release;
293+
};
294+
40162AC7235CAA98008D8F62 /* Debug */ = {
295+
isa = XCBuildConfiguration;
296+
buildSettings = {
297+
CLANG_ENABLE_MODULES = YES;
298+
CODE_SIGN_STYLE = Automatic;
299+
DEFINES_MODULE = YES;
300+
DYLIB_COMPATIBILITY_VERSION = 1;
301+
DYLIB_CURRENT_VERSION = 1;
302+
DYLIB_INSTALL_NAME_BASE = "@rpath";
303+
INFOPLIST_FILE = "Source/Supporting Files/Info.plist";
304+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
305+
LD_RUNPATH_SEARCH_PATHS = (
306+
"$(inherited)",
307+
"@executable_path/Frameworks",
308+
"@loader_path/Frameworks",
309+
);
310+
PRODUCT_BUNDLE_IDENTIFIER = com.catelina777.FloatingSegmentedControl;
311+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
312+
SKIP_INSTALL = YES;
313+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
314+
SWIFT_VERSION = 5.0;
315+
TARGETED_DEVICE_FAMILY = "1,2";
316+
};
317+
name = Debug;
318+
};
319+
40162AC8235CAA98008D8F62 /* Release */ = {
320+
isa = XCBuildConfiguration;
321+
buildSettings = {
322+
CLANG_ENABLE_MODULES = YES;
323+
CODE_SIGN_STYLE = Automatic;
324+
DEFINES_MODULE = YES;
325+
DYLIB_COMPATIBILITY_VERSION = 1;
326+
DYLIB_CURRENT_VERSION = 1;
327+
DYLIB_INSTALL_NAME_BASE = "@rpath";
328+
INFOPLIST_FILE = "Source/Supporting Files/Info.plist";
329+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
330+
LD_RUNPATH_SEARCH_PATHS = (
331+
"$(inherited)",
332+
"@executable_path/Frameworks",
333+
"@loader_path/Frameworks",
334+
);
335+
PRODUCT_BUNDLE_IDENTIFIER = com.catelina777.FloatingSegmentedControl;
336+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
337+
SKIP_INSTALL = YES;
338+
SWIFT_VERSION = 5.0;
339+
TARGETED_DEVICE_FAMILY = "1,2";
340+
};
341+
name = Release;
342+
};
343+
/* End XCBuildConfiguration section */
344+
345+
/* Begin XCConfigurationList section */
346+
40162AB8235CAA98008D8F62 /* Build configuration list for PBXProject "FloatingSegmentedControl" */ = {
347+
isa = XCConfigurationList;
348+
buildConfigurations = (
349+
40162AC4235CAA98008D8F62 /* Debug */,
350+
40162AC5235CAA98008D8F62 /* Release */,
351+
);
352+
defaultConfigurationIsVisible = 0;
353+
defaultConfigurationName = Release;
354+
};
355+
40162AC6235CAA98008D8F62 /* Build configuration list for PBXNativeTarget "FloatingSegmentedControl" */ = {
356+
isa = XCConfigurationList;
357+
buildConfigurations = (
358+
40162AC7235CAA98008D8F62 /* Debug */,
359+
40162AC8235CAA98008D8F62 /* Release */,
360+
);
361+
defaultConfigurationIsVisible = 0;
362+
defaultConfigurationName = Release;
363+
};
364+
/* End XCConfigurationList section */
365+
};
366+
rootObject = 40162AB5235CAA98008D8F62 /* Project object */;
367+
}

β€ŽFloatingSegmentedControl.xcodeproj/project.xcworkspace/contents.xcworkspacedataβ€Ž

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
Β (0)