diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/Example/Segmentio.xcodeproj/project.pbxproj b/Example/Segmentio.xcodeproj/project.pbxproj
index 49c7314..75ff0c1 100644
--- a/Example/Segmentio.xcodeproj/project.pbxproj
+++ b/Example/Segmentio.xcodeproj/project.pbxproj
@@ -438,7 +438,7 @@
baseConfigurationReference = 031FB43EDAB25B02B2FB7406 /* Pods-Segmentio_Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_IDENTITY = "iPhone Developer: Sergiy Fesenko (Y8JZQ7JQ9A)";
+ CODE_SIGN_IDENTITY = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
@@ -449,7 +449,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE = "7a986b88-0eac-45ee-83d0-888b35e57459";
+ PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -459,8 +459,8 @@
baseConfigurationReference = 1667ACAF5594F75E244C8E1B /* Pods-Segmentio_Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_IDENTITY = "iPhone Developer: Sergiy Fesenko (Y8JZQ7JQ9A)";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Sergiy Fesenko (Y8JZQ7JQ9A)";
+ CODE_SIGN_IDENTITY = "";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
@@ -471,7 +471,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE = "7a986b88-0eac-45ee-83d0-888b35e57459";
+ PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
diff --git a/Example/Segmentio/Info.plist b/Example/Segmentio/Info.plist
index bb92a77..c3d01a8 100644
--- a/Example/Segmentio/Info.plist
+++ b/Example/Segmentio/Info.plist
@@ -15,11 +15,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.0
+ 0.1.2
CFBundleSignature
????
CFBundleVersion
- 21
+ 22
LSRequiresIPhoneOS
UILaunchStoryboardName
diff --git a/README.md b/README.md
index 8883fe3..684e13c 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
##Segmentio
-[](https://cocoapods.org/?q=segmentio) [](https://github.com/Yalantis/Segmentio/blob/master/LICENSE) 
+[](https://cocoapods.org/?q=segmentio) [](https://github.com/Yalantis/Segmentio/blob/master/LICENSE)  [](https://github.com/Carthage/Carthage)
Animated top/bottom segmented control written in Swift.
@@ -18,11 +18,16 @@ iOS 8.x, Swift 2.2.x
use_frameworks!
# Swift 2.2
-pod 'Segmentio', '~> 0.1.1'
+pod 'Segmentio', '~> 0.1.2'
```
*(CocoaPods v1.0.1 or later required. See [this blog post](http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/) for details.)*
+####[Carthage](http://github.com/Carthage/Carthage)
+```ruby
+github "Yalantis/Segmentio" ~> 0.1.2
+```
+
##Usage
####Import `Segmentio` module
```swift
diff --git a/Segmentio.podspec b/Segmentio.podspec
index 598d023..2b63040 100644
--- a/Segmentio.podspec
+++ b/Segmentio.podspec
@@ -1,9 +1,10 @@
Pod::Spec.new do |spec|
spec.name = "Segmentio"
-spec.version = "0.1.1"
+spec.version = "0.1.2"
spec.homepage = "https://github.com/Yalantis/Segmentio"
spec.summary = "Animated top/bottom segmented control written in Swift!"
+spec.screenshot = 'https://github.com/Yalantis/Segmentio/blob/master/Assets/animation.gif'
spec.author = "Yalantis"
spec.license = { :type => "MIT", :file => "LICENSE" }
@@ -12,7 +13,7 @@ spec.social_media_url = "https://twitter.com/yalantis"
spec.platform = :ios, '8.0'
spec.ios.deployment_target = '8.0'
-spec.source = { :git => "https://github.com/Yalantis/Segmentio.git", :tag => "0.1.1" }
+spec.source = { :git => "https://github.com/Yalantis/Segmentio.git", :tag => "0.1.2" }
spec.source_files = 'Segmentio/Source/**/*.swift'
spec.module_name = 'Segmentio'
diff --git a/Segmentio.xcodeproj/project.pbxproj b/Segmentio.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..d4819a8
--- /dev/null
+++ b/Segmentio.xcodeproj/project.pbxproj
@@ -0,0 +1,292 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 32984F5E1D33BEB400922089 /* Source in Resources */ = {isa = PBXBuildFile; fileRef = 32984F5D1D33BEB400922089 /* Source */; };
+ 32F75A6D1D33C0EE00E3911B /* Segmentio.h in Headers */ = {isa = PBXBuildFile; fileRef = 32F75A6C1D33C0EE00E3911B /* Segmentio.h */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 32984F551D33BE6A00922089 /* Segmentio.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Segmentio.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 32984F591D33BE6A00922089 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 32984F5D1D33BEB400922089 /* Source */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Source; sourceTree = ""; };
+ 32F75A6C1D33C0EE00E3911B /* Segmentio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Segmentio.h; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 32984F511D33BE6A00922089 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 32984F321D33BD6100922089 = {
+ isa = PBXGroup;
+ children = (
+ 32984F561D33BE6A00922089 /* Segmentio */,
+ 32984F3C1D33BD6100922089 /* Products */,
+ );
+ sourceTree = "";
+ };
+ 32984F3C1D33BD6100922089 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 32984F551D33BE6A00922089 /* Segmentio.framework */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 32984F561D33BE6A00922089 /* Segmentio */ = {
+ isa = PBXGroup;
+ children = (
+ 32F75A6C1D33C0EE00E3911B /* Segmentio.h */,
+ 32984F5D1D33BEB400922089 /* Source */,
+ 32984F591D33BE6A00922089 /* Info.plist */,
+ );
+ path = Segmentio;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+ 32984F521D33BE6A00922089 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 32F75A6D1D33C0EE00E3911B /* Segmentio.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+ 32984F541D33BE6A00922089 /* Segmentio */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 32984F5A1D33BE6A00922089 /* Build configuration list for PBXNativeTarget "Segmentio" */;
+ buildPhases = (
+ 32984F501D33BE6A00922089 /* Sources */,
+ 32984F511D33BE6A00922089 /* Frameworks */,
+ 32984F521D33BE6A00922089 /* Headers */,
+ 32984F531D33BE6A00922089 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Segmentio;
+ productName = Segmentio;
+ productReference = 32984F551D33BE6A00922089 /* Segmentio.framework */;
+ productType = "com.apple.product-type.framework";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 32984F331D33BD6100922089 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0730;
+ LastUpgradeCheck = 0730;
+ ORGANIZATIONNAME = "Dmitriy Demchenko";
+ TargetAttributes = {
+ 32984F541D33BE6A00922089 = {
+ CreatedOnToolsVersion = 7.3.1;
+ };
+ };
+ };
+ buildConfigurationList = 32984F361D33BD6100922089 /* Build configuration list for PBXProject "Segmentio" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 32984F321D33BD6100922089;
+ productRefGroup = 32984F3C1D33BD6100922089 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 32984F541D33BE6A00922089 /* Segmentio */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 32984F531D33BE6A00922089 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 32984F5E1D33BEB400922089 /* Source in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 32984F501D33BE6A00922089 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 32984F4B1D33BD6200922089 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 32984F4C1D33BD6200922089 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 32984F5B1D33BE6A00922089 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CURRENT_PROJECT_VERSION = 1;
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ INFOPLIST_FILE = Segmentio/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.yalantismobile.Segmentio;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ };
+ name = Debug;
+ };
+ 32984F5C1D33BE6A00922089 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CURRENT_PROJECT_VERSION = 1;
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ INFOPLIST_FILE = Segmentio/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.yalantismobile.Segmentio;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 32984F361D33BD6100922089 /* Build configuration list for PBXProject "Segmentio" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 32984F4B1D33BD6200922089 /* Debug */,
+ 32984F4C1D33BD6200922089 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 32984F5A1D33BE6A00922089 /* Build configuration list for PBXNativeTarget "Segmentio" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 32984F5B1D33BE6A00922089 /* Debug */,
+ 32984F5C1D33BE6A00922089 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 32984F331D33BD6100922089 /* Project object */;
+}
diff --git a/Segmentio.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Segmentio.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..70abed6
--- /dev/null
+++ b/Segmentio.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/Segmentio.xcodeproj/xcshareddata/xcschemes/Segmentio.xcscheme b/Segmentio.xcodeproj/xcshareddata/xcschemes/Segmentio.xcscheme
new file mode 100644
index 0000000..1d2a2d1
--- /dev/null
+++ b/Segmentio.xcodeproj/xcshareddata/xcschemes/Segmentio.xcscheme
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Segmentio/Info.plist b/Segmentio/Info.plist
new file mode 100644
index 0000000..d3de8ee
--- /dev/null
+++ b/Segmentio/Info.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ NSPrincipalClass
+
+
+
diff --git a/Segmentio/Segmentio.h b/Segmentio/Segmentio.h
new file mode 100644
index 0000000..04b2c7c
--- /dev/null
+++ b/Segmentio/Segmentio.h
@@ -0,0 +1,19 @@
+//
+// Segmentio.h
+// Segmentio
+//
+// Created by Dmitriy Demchenko on 7/11/16.
+// Copyright © 2016 Yalantis Mobile. All rights reserved.
+//
+
+#import
+
+//! Project version number for Segmentio.
+FOUNDATION_EXPORT double SegmentioVersionNumber;
+
+//! Project version string for Segmentio.
+FOUNDATION_EXPORT const unsigned char SegmentioVersionString[];
+
+// In this header, you should import all the public headers of your framework using statements like #import
+
+