diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..577e7fa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# references: +# * https://www.objc.io/issues/6-build-tools/travis-ci/ +# * https://github.com/supermarin/xcpretty#usage + +osx_image: xcode7.3 +language: objective-c +# cache: cocoapods +# podfile: Example/Podfile +# before_install: +# - gem install cocoapods # Since Travis is not always on latest version +# - pod install --project-directory=Example +script: +- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SSCustomTabbar.xcworkspace -scheme SSCustomTabbar-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty +- pod lib lint diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..aea8dfc --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,11 @@ +use_frameworks! + +target 'SSCustomTabbar_Example' do + pod 'SSCustomTabbar', :path => '../' + + target 'SSCustomTabbar_Tests' do + inherit! :search_paths + + + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..cd91704 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - SSCustomTabbar (1.0) + +DEPENDENCIES: + - SSCustomTabbar (from `../`) + +EXTERNAL SOURCES: + SSCustomTabbar: + :path: "../" + +SPEC CHECKSUMS: + SSCustomTabbar: c0e61b895a6346359fa44e7bd4c97357ca5f00ec + +PODFILE CHECKSUM: 36fa833f41a5b150393a5d97c0811623ae271004 + +COCOAPODS: 1.6.1 diff --git a/Example/SSCustomTabbar.xcodeproj/project.pbxproj b/Example/SSCustomTabbar.xcodeproj/project.pbxproj new file mode 100644 index 0000000..21a436b --- /dev/null +++ b/Example/SSCustomTabbar.xcodeproj/project.pbxproj @@ -0,0 +1,576 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0C7FCB90224E781C00C3843A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0C7FCB8F224E781C00C3843A /* Main.storyboard */; }; + 5C1D54F9B12E0E41801E474C /* Pods_SSCustomTabbar_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03BB23E451DE7377F35E5035 /* Pods_SSCustomTabbar_Tests.framework */; }; + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; + AD1C9B1102F2E2FEB3E5C231 /* Pods_SSCustomTabbar_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F3F55EFEC14FF9722223CA7 /* Pods_SSCustomTabbar_Example.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 607FACC81AFB9204008FA782 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 607FACCF1AFB9204008FA782; + remoteInfo = SSCustomTabbar; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 03BB23E451DE7377F35E5035 /* Pods_SSCustomTabbar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSCustomTabbar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 0C7FCB8F224E781C00C3843A /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 0EC9C98801FA701033E68CA8 /* Pods-SSCustomTabbar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSCustomTabbar_Example.release.xcconfig"; path = "Target Support Files/Pods-SSCustomTabbar_Example/Pods-SSCustomTabbar_Example.release.xcconfig"; sourceTree = ""; }; + 1D0189F656393508E5F3C13D /* Pods-SSCustomTabbar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSCustomTabbar_Example.debug.xcconfig"; path = "Target Support Files/Pods-SSCustomTabbar_Example/Pods-SSCustomTabbar_Example.debug.xcconfig"; sourceTree = ""; }; + 1F3F55EFEC14FF9722223CA7 /* Pods_SSCustomTabbar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSCustomTabbar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 527F926BF0231ADA6A930AE1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 607FACD01AFB9204008FA782 /* SSCustomTabbar_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSCustomTabbar_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 607FACE51AFB9204008FA782 /* SSCustomTabbar_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SSCustomTabbar_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; + 61ACB4CCF67299FE1B56AEE5 /* Pods-SSCustomTabbar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSCustomTabbar_Tests.debug.xcconfig"; path = "Target Support Files/Pods-SSCustomTabbar_Tests/Pods-SSCustomTabbar_Tests.debug.xcconfig"; sourceTree = ""; }; + 80721E5B593C880EED0D1D74 /* Pods-SSCustomTabbar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSCustomTabbar_Tests.release.xcconfig"; path = "Target Support Files/Pods-SSCustomTabbar_Tests/Pods-SSCustomTabbar_Tests.release.xcconfig"; sourceTree = ""; }; + A8D8EC142E0AFE3676A30E8B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + FC0DEFBF40CA53EDF2F046CC /* SSCustomTabbar.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SSCustomTabbar.podspec; path = ../SSCustomTabbar.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 607FACCD1AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + AD1C9B1102F2E2FEB3E5C231 /* Pods_SSCustomTabbar_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE21AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5C1D54F9B12E0E41801E474C /* Pods_SSCustomTabbar_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 607FACC71AFB9204008FA782 = { + isa = PBXGroup; + children = ( + 607FACF51AFB993E008FA782 /* Podspec Metadata */, + 607FACD21AFB9204008FA782 /* Example for SSCustomTabbar */, + 607FACE81AFB9204008FA782 /* Tests */, + 607FACD11AFB9204008FA782 /* Products */, + B984A5305A7F6079AE817D82 /* Pods */, + FA39B872D83A25A502FE6469 /* Frameworks */, + ); + sourceTree = ""; + }; + 607FACD11AFB9204008FA782 /* Products */ = { + isa = PBXGroup; + children = ( + 607FACD01AFB9204008FA782 /* SSCustomTabbar_Example.app */, + 607FACE51AFB9204008FA782 /* SSCustomTabbar_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 607FACD21AFB9204008FA782 /* Example for SSCustomTabbar */ = { + isa = PBXGroup; + children = ( + 607FACD51AFB9204008FA782 /* AppDelegate.swift */, + 607FACD71AFB9204008FA782 /* ViewController.swift */, + 0C7FCB8F224E781C00C3843A /* Main.storyboard */, + 607FACDC1AFB9204008FA782 /* Images.xcassets */, + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, + 607FACD31AFB9204008FA782 /* Supporting Files */, + ); + name = "Example for SSCustomTabbar"; + path = SSCustomTabbar; + sourceTree = ""; + }; + 607FACD31AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACD41AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACE81AFB9204008FA782 /* Tests */ = { + isa = PBXGroup; + children = ( + 607FACEB1AFB9204008FA782 /* Tests.swift */, + 607FACE91AFB9204008FA782 /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 607FACE91AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACEA1AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + FC0DEFBF40CA53EDF2F046CC /* SSCustomTabbar.podspec */, + A8D8EC142E0AFE3676A30E8B /* README.md */, + 527F926BF0231ADA6A930AE1 /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + B984A5305A7F6079AE817D82 /* Pods */ = { + isa = PBXGroup; + children = ( + 1D0189F656393508E5F3C13D /* Pods-SSCustomTabbar_Example.debug.xcconfig */, + 0EC9C98801FA701033E68CA8 /* Pods-SSCustomTabbar_Example.release.xcconfig */, + 61ACB4CCF67299FE1B56AEE5 /* Pods-SSCustomTabbar_Tests.debug.xcconfig */, + 80721E5B593C880EED0D1D74 /* Pods-SSCustomTabbar_Tests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + FA39B872D83A25A502FE6469 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1F3F55EFEC14FF9722223CA7 /* Pods_SSCustomTabbar_Example.framework */, + 03BB23E451DE7377F35E5035 /* Pods_SSCustomTabbar_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 607FACCF1AFB9204008FA782 /* SSCustomTabbar_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SSCustomTabbar_Example" */; + buildPhases = ( + 999D84845CBFA1512F6F3CB0 /* [CP] Check Pods Manifest.lock */, + 607FACCC1AFB9204008FA782 /* Sources */, + 607FACCD1AFB9204008FA782 /* Frameworks */, + 607FACCE1AFB9204008FA782 /* Resources */, + EA653AC5874D2A1F313AA034 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SSCustomTabbar_Example; + productName = SSCustomTabbar; + productReference = 607FACD01AFB9204008FA782 /* SSCustomTabbar_Example.app */; + productType = "com.apple.product-type.application"; + }; + 607FACE41AFB9204008FA782 /* SSCustomTabbar_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SSCustomTabbar_Tests" */; + buildPhases = ( + B972827F8F09E4E1629759FE /* [CP] Check Pods Manifest.lock */, + 607FACE11AFB9204008FA782 /* Sources */, + 607FACE21AFB9204008FA782 /* Frameworks */, + 607FACE31AFB9204008FA782 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 607FACE71AFB9204008FA782 /* PBXTargetDependency */, + ); + name = SSCustomTabbar_Tests; + productName = Tests; + productReference = 607FACE51AFB9204008FA782 /* SSCustomTabbar_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 607FACC81AFB9204008FA782 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 1010; + ORGANIZATIONNAME = CocoaPods; + TargetAttributes = { + 607FACCF1AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 1010; + }; + 607FACE41AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 1010; + TestTargetID = 607FACCF1AFB9204008FA782; + }; + }; + }; + buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SSCustomTabbar" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 607FACC71AFB9204008FA782; + productRefGroup = 607FACD11AFB9204008FA782 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 607FACCF1AFB9204008FA782 /* SSCustomTabbar_Example */, + 607FACE41AFB9204008FA782 /* SSCustomTabbar_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 607FACCE1AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0C7FCB90224E781C00C3843A /* Main.storyboard in Resources */, + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE31AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 999D84845CBFA1512F6F3CB0 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-SSCustomTabbar_Example-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + B972827F8F09E4E1629759FE /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-SSCustomTabbar_Tests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + EA653AC5874D2A1F313AA034 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-SSCustomTabbar_Example/Pods-SSCustomTabbar_Example-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/SSCustomTabbar/SSCustomTabbar.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + ); + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SSCustomTabbar.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SSCustomTabbar_Example/Pods-SSCustomTabbar_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 607FACCC1AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE11AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 607FACCF1AFB9204008FA782 /* SSCustomTabbar_Example */; + targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 607FACDF1AFB9204008FA782 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 607FACED1AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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_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_SYMBOLS_PRIVATE_EXTERN = NO; + 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 = 11.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 607FACEE1AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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 = 11.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 607FACF01AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1D0189F656393508E5F3C13D /* Pods-SSCustomTabbar_Example.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = SSCustomTabbar/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + }; + name = Debug; + }; + 607FACF11AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 0EC9C98801FA701033E68CA8 /* Pods-SSCustomTabbar_Example.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = SSCustomTabbar/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + }; + name = Release; + }; + 607FACF31AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 61ACB4CCF67299FE1B56AEE5 /* Pods-SSCustomTabbar_Tests.debug.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSCustomTabbar_Example.app/SSCustomTabbar_Example"; + }; + name = Debug; + }; + 607FACF41AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 80721E5B593C880EED0D1D74 /* Pods-SSCustomTabbar_Tests.release.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSCustomTabbar_Example.app/SSCustomTabbar_Example"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SSCustomTabbar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACED1AFB9204008FA782 /* Debug */, + 607FACEE1AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SSCustomTabbar_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF01AFB9204008FA782 /* Debug */, + 607FACF11AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SSCustomTabbar_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF31AFB9204008FA782 /* Debug */, + 607FACF41AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 607FACC81AFB9204008FA782 /* Project object */; +} diff --git a/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/SSCustomTabbar.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 68% rename from SSCustomTabBar/SSCustomTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Example/SSCustomTabbar.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 95b07a2..a09b14d 100644 --- a/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/Example/SSCustomTabbar.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:SSCustomTabbar.xcodeproj"> diff --git a/Example/SSCustomTabbar.xcodeproj/xcshareddata/xcschemes/SSCustomTabbar-Example.xcscheme b/Example/SSCustomTabbar.xcodeproj/xcshareddata/xcschemes/SSCustomTabbar-Example.xcscheme new file mode 100644 index 0000000..04c2959 --- /dev/null +++ b/Example/SSCustomTabbar.xcodeproj/xcshareddata/xcschemes/SSCustomTabbar-Example.xcscheme @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/SSCustomTabbar.xcworkspace/contents.xcworkspacedata b/Example/SSCustomTabbar.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..9ce07d9 --- /dev/null +++ b/Example/SSCustomTabbar.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/SSCustomTabbar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from SSCustomTabBar/SSCustomTabBar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to Example/SSCustomTabbar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/SSCustomTabBar/SSCustomTabBar/AppDelegate.swift b/Example/SSCustomTabbar/AppDelegate.swift similarity index 80% rename from SSCustomTabBar/SSCustomTabBar/AppDelegate.swift rename to Example/SSCustomTabbar/AppDelegate.swift index edaf63e..6ee4dbe 100644 --- a/SSCustomTabBar/SSCustomTabBar/AppDelegate.swift +++ b/Example/SSCustomTabbar/AppDelegate.swift @@ -1,9 +1,9 @@ // // AppDelegate.swift -// SSCustomTabBar +// SSCustomTabbar // -// Created by Sumit Goswami on 27/03/19. -// Copyright © 2019 SimformSolutions. All rights reserved. +// Created by simformsolutions on 03/29/2019. +// Copyright (c) 2019 simformsolutions. All rights reserved. // import UIKit @@ -21,7 +21,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { @@ -30,13 +30,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { - if let tabbar = self.window?.rootViewController as? SSCustomTabBarViewController { - tabbar.viewDidAppear(true) - } // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } diff --git a/Example/SSCustomTabbar/Base.lproj/LaunchScreen.xib b/Example/SSCustomTabbar/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..c46451d --- /dev/null +++ b/Example/SSCustomTabbar/Base.lproj/LaunchScreen.xib @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/Contents.json b/Example/SSCustomTabbar/Images.xcassets/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd.png b/Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd.png rename to Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAdd.imageset/iconAdd@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconAdd.imageset/iconAdd@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected.png b/Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected.png rename to Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconAddSelected.imageset/iconAddSelected@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconAddSelected.imageset/iconAddSelected@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome.png b/Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome.png rename to Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHome.imageset/iconHome@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconHome.imageset/iconHome@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected.png b/Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected.png rename to Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconHomeSelected.imageset/iconHomeSelected@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconHomeSelected.imageset/iconHomeSelected@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstand.imageset/iconKickstand@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstand.imageset/iconKickstand@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconKickstandSelected.imageset/iconKickstandSelected@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile.png b/Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfile.imageset/iconProfile@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfile.imageset/iconProfile@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected.png b/Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconProfileSelected.imageset/iconProfileSelected@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconProfileSelected.imageset/iconProfileSelected@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/Contents.json b/Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/Contents.json similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/Contents.json rename to Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/Contents.json diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings.png b/Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings.png rename to Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings@2x.png b/Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings@2x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings@2x.png rename to Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings@2x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings@3x.png b/Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings@3x.png similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Assets.xcassets/iconSettings.imageset/iconSettings@3x.png rename to Example/SSCustomTabbar/Images.xcassets/iconSettings.imageset/iconSettings@3x.png diff --git a/SSCustomTabBar/SSCustomTabBar/Info.plist b/Example/SSCustomTabbar/Info.plist similarity index 73% rename from SSCustomTabBar/SSCustomTabBar/Info.plist rename to Example/SSCustomTabbar/Info.plist index 16be3b6..eb18faa 100644 --- a/SSCustomTabBar/SSCustomTabBar/Info.plist +++ b/Example/SSCustomTabbar/Info.plist @@ -3,7 +3,7 @@ CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) + en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -16,6 +16,8 @@ APPL CFBundleShortVersionString 1.0 + CFBundleSignature + ???? CFBundleVersion 1 LSRequiresIPhoneOS @@ -32,14 +34,6 @@ UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight diff --git a/SSCustomTabBar/SSCustomTabBar/Base.lproj/Main.storyboard b/Example/SSCustomTabbar/Main.storyboard similarity index 97% rename from SSCustomTabBar/SSCustomTabBar/Base.lproj/Main.storyboard rename to Example/SSCustomTabbar/Main.storyboard index a0bcb73..d7a2bcf 100644 --- a/SSCustomTabBar/SSCustomTabBar/Base.lproj/Main.storyboard +++ b/Example/SSCustomTabbar/Main.storyboard @@ -13,7 +13,7 @@ - + @@ -45,9 +45,9 @@ - + - + diff --git a/Example/SSCustomTabbar/ViewController.swift b/Example/SSCustomTabbar/ViewController.swift new file mode 100644 index 0000000..de0398d --- /dev/null +++ b/Example/SSCustomTabbar/ViewController.swift @@ -0,0 +1,24 @@ +// +// ViewController.swift +// SSCustomTabbar +// +// Created by simformsolutions on 03/29/2019. +// Copyright (c) 2019 simformsolutions. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + +} + diff --git a/Example/Tests/Info.plist b/Example/Tests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/Example/Tests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests.swift b/Example/Tests/Tests.swift new file mode 100644 index 0000000..2126a9a --- /dev/null +++ b/Example/Tests/Tests.swift @@ -0,0 +1,28 @@ +import XCTest +import SSCustomTabbar + +class Tests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/LICENSE b/LICENSE index e2b8767..64d90f7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,4 @@ -MIT License - -Copyright (c) 2019 Simform +Copyright (c) 2019 simformsolutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9,13 +7,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 3e88509..b9b7afa 100644 --- a/README.md +++ b/README.md @@ -1,65 +1,29 @@ # SSCustomTabbar -> Simple Animated tabbar with native control. - +[![CI Status](https://img.shields.io/travis/simformsolutions/SSCustomTabbar.svg?style=flat)](https://travis-ci.org/simformsolutions/SSCustomTabbar) [![Version](https://img.shields.io/cocoapods/v/SSCustomTabbar.svg?style=flat)](https://cocoapods.org/pods/SSCustomTabbar) [![License](https://img.shields.io/cocoapods/l/SSCustomTabbar.svg?style=flat)](https://cocoapods.org/pods/SSCustomTabbar) [![Platform](https://img.shields.io/cocoapods/p/SSCustomTabbar.svg?style=flat)](https://cocoapods.org/pods/SSCustomTabbar) -[![Swift Version][swift-image]][swift-url] -[![PRs Welcome][PR-image]][PR-url] -![Example](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/customTabbar.gif) +## Example -## Requirements +To run the example project, clone the repo, and run `pod install` from the Example directory first. -- iOS 11.0+ -- Xcode 10.0+ +## Requirements ## Installation -SSCustomTabbar doesn't contain any external dependencies. -It is available through [CocoaPods](https://cocoapods.org). To install +SSCustomTabbar is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod 'SSCustomTabbar' ``` -## Usage example - -### Set UITabbarController to SSCustomTabBarViewController -![alt text](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/SSCustomTabBarViewController.png) - -### Set UITabBar to SSCustomTabBar -![alt text](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/SSCustomTabBar.png) - -# Customization +## Author -You can change: - - BarHeight - - UnSelected item tint color - - Wave Height - - Animation point(Position) - - Layer background color - -![alt text](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/barHeightAndUpanimationpoint.png) - -![alt text](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/layerColorWaveHightUnselectedTintColor.png) - -![alt text](https://raw.githubusercontent.com/simformsolutions/SSCustomTabbar/master/SSCustomTabBar/Screenshots/Description.png) - -## Contribute - -We would love you for the contribution to SSCustomTabbar, check the LICENSE file for more info. +simformsolutions, sumit.g@simformsolutions.com ## License -SSCustomTabbar is Distributed under the MIT license. See ``LICENSE`` for more information.. - - -[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square -[PR-url]:http://makeapullrequest.com -[swift-image]:https://img.shields.io/badge/swift-4.2-orange.svg -[swift-url]: https://swift.org/ -[license-image]: https://img.shields.io/badge/License-MIT-blue.svg -[license-url]: LICENSE +SSCustomTabbar is available under the MIT license. See the LICENSE file for more info. diff --git a/SSCustomTabBar/Assets/.gitkeep b/SSCustomTabBar/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SSCustomTabBar/Classes/.gitkeep b/SSCustomTabBar/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBar.swift b/SSCustomTabBar/Classes/SSCustomTabBar.swift similarity index 98% rename from SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBar.swift rename to SSCustomTabBar/Classes/SSCustomTabBar.swift index 87c3f1c..c106d10 100644 --- a/SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBar.swift +++ b/SSCustomTabBar/Classes/SSCustomTabBar.swift @@ -8,7 +8,7 @@ import UIKit -class SSCustomTabBar: UITabBar { +public class SSCustomTabBar: UITabBar { /// Fill color of back wave layer @@ -17,7 +17,7 @@ class SSCustomTabBar: UITabBar { return UIColor(cgColor: kLayerFillColor) } set{ - kLayerFillColor = newValue.cgColor + kLayerFillColor = newValue.cgColor } } @@ -107,21 +107,21 @@ class SSCustomTabBar: UITabBar { } } - + /// Draws the receiver’s image within the passed-in rectangle. /// /// - Parameter rect: rect of view - override func draw(_ rect: CGRect) { + override public func draw(_ rect: CGRect) { super.draw(rect) self.setupTabBar() } - + } // MARK: - Setup Tabbar extension SSCustomTabBar { - + func setupTabBar() { self.isTranslucent = true self.backgroundColor = UIColor.clear diff --git a/SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBarViewController.swift b/SSCustomTabBar/Classes/SSCustomTabBarViewController.swift similarity index 94% rename from SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBarViewController.swift rename to SSCustomTabBar/Classes/SSCustomTabBarViewController.swift index beeaaa8..7bddcc8 100644 --- a/SSCustomTabBar/SSCustomTabBar/Tabbar/SSCustomTabBarViewController.swift +++ b/SSCustomTabBar/Classes/SSCustomTabBarViewController.swift @@ -12,7 +12,7 @@ import UIKit /// Default index value for priviousSelectedIndex private let defaultIndexValue = -1 -class SSCustomTabBarViewController: UITabBarController { +public class SSCustomTabBarViewController: UITabBarController { /// Tabbar height @@ -40,10 +40,10 @@ class SSCustomTabBarViewController: UITabBarController { private var kUpAnimationPoint: CGFloat = 20 private var priviousSelectedIndex: Int = defaultIndexValue - - override func viewDidLoad() { + + override public func viewDidLoad() { super.viewDidLoad() - + // Do any additional setup after loading the view. } @@ -51,7 +51,7 @@ class SSCustomTabBarViewController: UITabBarController { /// Notifies the view controller that its view was added to a view hierarchy. /// /// - Parameter animated: variable for namiation - override func viewDidAppear(_ animated: Bool) { + override public func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if self.priviousSelectedIndex == defaultIndexValue { if let item = self.tabBar.selectedItem { @@ -95,13 +95,13 @@ class SSCustomTabBarViewController: UITabBarController { // MARK: - set bar height extension SSCustomTabBarViewController { - override func viewWillLayoutSubviews() { + override public func viewWillLayoutSubviews() { guard var height = kBarHeight else { return } height += self.view.safeAreaInsets.bottom var tabBarFrame = self.tabBar.frame tabBarFrame.size.height = height tabBarFrame.origin.y = UIScreen.main.bounds.height - height - self.tabBar.frame = tabBarFrame + self.tabBar.frame = tabBarFrame self.tabBar.clipsToBounds = false } } @@ -116,7 +116,7 @@ extension SSCustomTabBarViewController { /// - Parameters: /// - tabBar: The tab bar that is being customized. /// - item: The tab bar item that was selected. - override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) { + override public func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) { if let uSelf = self.tabBar as? SSCustomTabBar, let items = uSelf.items, let index = items.firstIndex(of: item), index != self.priviousSelectedIndex { @@ -169,7 +169,7 @@ extension SSCustomTabBarViewController { if let uSelf = self.tabBar as? SSCustomTabBar { UIView.animate(withDuration: 0.9, delay: 0.0, usingSpringWithDamping: 0.57, initialSpringVelocity: 0.0, options: [], animations: { () -> Void in uSelf.setDefaultlayoutControlPoints(waveHeight: uSelf.minimalHeight, locationX: changeValue) - + }, completion: { _ in uSelf.animating = false }) @@ -177,9 +177,6 @@ extension SSCustomTabBarViewController { view.frame = CGRect(x: view.frame.origin.x, y: view.frame.origin.y - self.kUpAnimationPoint, width: view.frame.width, height: view.frame.height) }, completion: nil) } - - - } } diff --git a/SSCustomTabBar/SSCustomTabBar/Tabbar/UIView+Extenstion.swift b/SSCustomTabBar/Classes/UIView+Extenstion.swift similarity index 100% rename from SSCustomTabBar/SSCustomTabBar/Tabbar/UIView+Extenstion.swift rename to SSCustomTabBar/Classes/UIView+Extenstion.swift diff --git a/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.pbxproj b/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.pbxproj deleted file mode 100644 index 589b80d..0000000 --- a/SSCustomTabBar/SSCustomTabBar.xcodeproj/project.pbxproj +++ /dev/null @@ -1,357 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 0C5FAB84224B36D4002584D2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C5FAB83224B36D4002584D2 /* AppDelegate.swift */; }; - 0C5FAB89224B36D4002584D2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0C5FAB87224B36D4002584D2 /* Main.storyboard */; }; - 0C5FAB8B224B36D5002584D2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0C5FAB8A224B36D5002584D2 /* Assets.xcassets */; }; - 0C5FAB8E224B36D5002584D2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0C5FAB8C224B36D5002584D2 /* LaunchScreen.storyboard */; }; - 0C5FAB97224B3938002584D2 /* SSCustomTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C5FAB96224B3938002584D2 /* SSCustomTabBarViewController.swift */; }; - 0C5FAB99224B3951002584D2 /* SSCustomTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C5FAB98224B3951002584D2 /* SSCustomTabBar.swift */; }; - 0C5FAB9B224B4EC2002584D2 /* UIView+Extenstion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C5FAB9A224B4EC2002584D2 /* UIView+Extenstion.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 0C5FAB80224B36D4002584D2 /* SSCustomTabBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSCustomTabBar.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 0C5FAB83224B36D4002584D2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 0C5FAB88224B36D4002584D2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 0C5FAB8A224B36D5002584D2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 0C5FAB8D224B36D5002584D2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 0C5FAB8F224B36D5002584D2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 0C5FAB96224B3938002584D2 /* SSCustomTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSCustomTabBarViewController.swift; sourceTree = ""; }; - 0C5FAB98224B3951002584D2 /* SSCustomTabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSCustomTabBar.swift; sourceTree = ""; }; - 0C5FAB9A224B4EC2002584D2 /* UIView+Extenstion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Extenstion.swift"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 0C5FAB7D224B36D4002584D2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 0C5FAB77224B36D4002584D2 = { - isa = PBXGroup; - children = ( - 0C5FAB82224B36D4002584D2 /* SSCustomTabBar */, - 0C5FAB81224B36D4002584D2 /* Products */, - ); - sourceTree = ""; - }; - 0C5FAB81224B36D4002584D2 /* Products */ = { - isa = PBXGroup; - children = ( - 0C5FAB80224B36D4002584D2 /* SSCustomTabBar.app */, - ); - name = Products; - sourceTree = ""; - }; - 0C5FAB82224B36D4002584D2 /* SSCustomTabBar */ = { - isa = PBXGroup; - children = ( - 0C5FAB95224B36ED002584D2 /* Tabbar */, - 0C5FAB83224B36D4002584D2 /* AppDelegate.swift */, - 0C5FAB87224B36D4002584D2 /* Main.storyboard */, - 0C5FAB8A224B36D5002584D2 /* Assets.xcassets */, - 0C5FAB8C224B36D5002584D2 /* LaunchScreen.storyboard */, - 0C5FAB8F224B36D5002584D2 /* Info.plist */, - ); - path = SSCustomTabBar; - sourceTree = ""; - }; - 0C5FAB95224B36ED002584D2 /* Tabbar */ = { - isa = PBXGroup; - children = ( - 0C5FAB96224B3938002584D2 /* SSCustomTabBarViewController.swift */, - 0C5FAB98224B3951002584D2 /* SSCustomTabBar.swift */, - 0C5FAB9A224B4EC2002584D2 /* UIView+Extenstion.swift */, - ); - path = Tabbar; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 0C5FAB7F224B36D4002584D2 /* SSCustomTabBar */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0C5FAB92224B36D5002584D2 /* Build configuration list for PBXNativeTarget "SSCustomTabBar" */; - buildPhases = ( - 0C5FAB7C224B36D4002584D2 /* Sources */, - 0C5FAB7D224B36D4002584D2 /* Frameworks */, - 0C5FAB7E224B36D4002584D2 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SSCustomTabBar; - productName = SSCustomTabBar; - productReference = 0C5FAB80224B36D4002584D2 /* SSCustomTabBar.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 0C5FAB78224B36D4002584D2 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1010; - LastUpgradeCheck = 1010; - ORGANIZATIONNAME = SimformSolutions; - TargetAttributes = { - 0C5FAB7F224B36D4002584D2 = { - CreatedOnToolsVersion = 10.1; - }; - }; - }; - buildConfigurationList = 0C5FAB7B224B36D4002584D2 /* Build configuration list for PBXProject "SSCustomTabBar" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 0C5FAB77224B36D4002584D2; - productRefGroup = 0C5FAB81224B36D4002584D2 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 0C5FAB7F224B36D4002584D2 /* SSCustomTabBar */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 0C5FAB7E224B36D4002584D2 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C5FAB8E224B36D5002584D2 /* LaunchScreen.storyboard in Resources */, - 0C5FAB8B224B36D5002584D2 /* Assets.xcassets in Resources */, - 0C5FAB89224B36D4002584D2 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 0C5FAB7C224B36D4002584D2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C5FAB9B224B4EC2002584D2 /* UIView+Extenstion.swift in Sources */, - 0C5FAB99224B3951002584D2 /* SSCustomTabBar.swift in Sources */, - 0C5FAB84224B36D4002584D2 /* AppDelegate.swift in Sources */, - 0C5FAB97224B3938002584D2 /* SSCustomTabBarViewController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 0C5FAB87224B36D4002584D2 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0C5FAB88224B36D4002584D2 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 0C5FAB8C224B36D5002584D2 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0C5FAB8D224B36D5002584D2 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 0C5FAB90224B36D5002584D2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - 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 = 12.1; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 0C5FAB91224B36D5002584D2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "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 = gnu11; - 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 = 12.1; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 0C5FAB93224B36D5002584D2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Y98X8JAPH6; - INFOPLIST_FILE = SSCustomTabBar/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.SSCustomTabBar; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 0C5FAB94224B36D5002584D2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Y98X8JAPH6; - INFOPLIST_FILE = SSCustomTabBar/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.SSCustomTabBar; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 0C5FAB7B224B36D4002584D2 /* Build configuration list for PBXProject "SSCustomTabBar" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0C5FAB90224B36D5002584D2 /* Debug */, - 0C5FAB91224B36D5002584D2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0C5FAB92224B36D5002584D2 /* Build configuration list for PBXNativeTarget "SSCustomTabBar" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0C5FAB93224B36D5002584D2 /* Debug */, - 0C5FAB94224B36D5002584D2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 0C5FAB78224B36D4002584D2 /* Project object */; -} diff --git a/SSCustomTabBar/SSCustomTabBar/Base.lproj/LaunchScreen.storyboard b/SSCustomTabBar/SSCustomTabBar/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index bfa3612..0000000 --- a/SSCustomTabBar/SSCustomTabBar/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SSCustomTabBar/Screenshots/Description.png b/SSCustomTabBar/Screenshots/Description.png deleted file mode 100644 index 15d87ff..0000000 Binary files a/SSCustomTabBar/Screenshots/Description.png and /dev/null differ diff --git a/SSCustomTabBar/Screenshots/SSCustomTabBar.png b/SSCustomTabBar/Screenshots/SSCustomTabBar.png deleted file mode 100644 index e670385..0000000 Binary files a/SSCustomTabBar/Screenshots/SSCustomTabBar.png and /dev/null differ diff --git a/SSCustomTabBar/Screenshots/SSCustomTabBarViewController.png b/SSCustomTabBar/Screenshots/SSCustomTabBarViewController.png deleted file mode 100644 index dc99678..0000000 Binary files a/SSCustomTabBar/Screenshots/SSCustomTabBarViewController.png and /dev/null differ diff --git a/SSCustomTabBar/Screenshots/barHeightAndUpanimationpoint.png b/SSCustomTabBar/Screenshots/barHeightAndUpanimationpoint.png deleted file mode 100644 index 42b2d61..0000000 Binary files a/SSCustomTabBar/Screenshots/barHeightAndUpanimationpoint.png and /dev/null differ diff --git a/SSCustomTabBar/Screenshots/customTabbar.gif b/SSCustomTabBar/Screenshots/customTabbar.gif deleted file mode 100644 index 8cf4336..0000000 Binary files a/SSCustomTabBar/Screenshots/customTabbar.gif and /dev/null differ diff --git a/SSCustomTabBar/Screenshots/layerColorWaveHightUnselectedTintColor.png b/SSCustomTabBar/Screenshots/layerColorWaveHightUnselectedTintColor.png deleted file mode 100644 index 941d315..0000000 Binary files a/SSCustomTabBar/Screenshots/layerColorWaveHightUnselectedTintColor.png and /dev/null differ diff --git a/SSCustomTabbar.podspec b/SSCustomTabbar.podspec new file mode 100644 index 0000000..3aaf4b8 --- /dev/null +++ b/SSCustomTabbar.podspec @@ -0,0 +1,44 @@ +# +# Be sure to run `pod lib lint SSCustomTabbar.podspec' to ensure this is a +# valid spec before submitting. +# +# Any lines starting with a # are optional, but their use is encouraged +# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = 'SSCustomTabbar' + s.version = '1.0' + s.platform = :ios + s.swift_version = '4.2' + s.summary = 'Simple Animated tabbar with native control.' + +# This description is used to generate tags and improve search results. +# * Think: What does it do? Why did you write it? What is the focus? +# * Try to keep it short, snappy and to the point. +# * Write the description between the DESC delimiters below. +# * Finally, don't worry about the indent, CocoaPods strips it! + + s.description = <<-DESC +TODO: Add long description of the pod here. + DESC + + s.homepage = 'https://github.com/simformsolutions/SSCustomTabbar' + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'simformsolutions' => 'reg@simform.in' } + s.source = { :git => 'https://github.com/simformsolutions/SSCustomTabbar.git', :tag => s.version.to_s } + # s.social_media_url = 'https://twitter.com/' + + s.ios.deployment_target = '11.0' + + s.source_files = 'SSCustomTabbar/Classes/**/*' + + # s.resource_bundles = { + # 'SSCustomTabbar' => ['SSCustomTabbar/Assets/*.png'] + # } + + # s.public_header_files = 'Pod/Classes/**/*.h' + s.frameworks = 'UIKit' + # s.dependency 'AFNetworking', '~> 2.3' +end diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 0000000..3c5a8e7 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +Example/Pods/Pods.xcodeproj \ No newline at end of file