22 Commits

Author SHA1 Message Date
Juri Vasylenko 436078ef95 Update README.md 2016-02-01 10:16:50 +03:00
Juri Vasylenko 9657b66723 Update README.md 2016-02-01 10:05:17 +03:00
Juri Vasylenko e503a61104 Rename adaptive-tab-bar.svg to header.svg 2016-02-01 09:58:31 +03:00
Juri Vasylenko 5ca72e7dd6 change url for header 2016-02-01 09:56:56 +03:00
Juri Vasylenko fb22bbadc7 add header and link to Licence to docs 2016-02-01 09:54:02 +03:00
Juri Vasylenko adacae3759 add contributing guide, add badges and update docs 2016-01-31 20:34:25 +03:00
Alex 5444bf7d54 Update README.md 2016-01-18 16:56:03 +03:00
Juri Vasylenko 698641d00a Update README.md 2015-12-07 18:13:51 +03:00
Juri Vasylenko f3a656b853 Update README.md 2015-12-07 18:13:34 +03:00
Denis Pakhaliuk 14c9eeb019 Update README.md 2014-12-02 16:12:08 +03:00
Denis Pakhaliuk 7d42d0e6b8 Update README.md 2014-12-01 14:21:04 +03:00
Denis Pakhaliuk 09e2daf80f Update README.md 2014-11-28 18:07:16 +03:00
Artem Kislitsyn d69eb37cfd move cocooapods to another branch 2014-10-21 16:32:17 +04:00
Artem Kislitsyn f7748068f7 update pods 2014-10-21 15:17:41 +04:00
Artem Kislitsyn f157900e61 podspec 2014-10-21 13:30:06 +04:00
Artem Kislitsyn e0ade0426e version 2014-10-21 12:18:48 +04:00
Artem Kislitsyn b685dbfeb5 version pod 2014-10-21 11:42:20 +04:00
Artem Kislitsyn 6d7158b1fd minor 2014-10-21 11:37:14 +04:00
Artem Kislitsyn a8e4925c3d minor 2014-10-21 11:03:46 +04:00
Artem Kislitsyn b266d12347 Merge branch 'master' of https://github.com/Ramotion/adaptive-tab-bar 2014-10-21 00:14:52 +04:00
Artem Kislitsyn 048da7d846 minor 2014-10-21 00:14:44 +04:00
Artem Kislitsyn 782ddc59c8 [Update] AdaptiveController (0.0.2) 2014-10-20 20:31:27 +04:00
198 changed files with 824 additions and 3613 deletions
@@ -1,22 +0,0 @@
Pod::Spec.new do |s|
s.name = 'AdaptiveController'
s.version = '0.0.1'
s.summary = 'AdaptiveController is a Progressive Reduction Swift module for adding custom states to Native or Custom UI elements.'
s.license = {"type"=>"MIT"}
s.authors = {"Artem Kislitsyn, Yuri Vasilenko"=>"juri.v@ramotion.com"}
s.homepage = 'https://github.com/Ramotion/adaptive-tab-bar'
s.frameworks = ["UIKit"]
s.requires_arc = true
s.source = {}
s.osx.platform = :osx, ''
s.osx.preserve_paths = 'osx/AdaptiveController.framework'
s.osx.public_header_files = 'osx/AdaptiveController.framework/Versions/A/Headers/*.h'
s.osx.resource = 'osx/AdaptiveController.framework/Versions/A/Resources/**/*'
s.osx.vendored_frameworks = 'osx/AdaptiveController.framework'
s.ios.platform = :ios, "7.0"
s.ios.preserve_paths = 'ios/AdaptiveController.framework'
s.ios.public_header_files = 'ios/AdaptiveController.framework/Versions/A/Headers/*.h'
s.ios.resource = 'ios/AdaptiveController.framework/Versions/A/Resources/**/*'
s.ios.vendored_frameworks = 'ios/AdaptiveController.framework'
end
@@ -1 +0,0 @@
Versions/Current/AdaptiveController
@@ -1 +0,0 @@
Versions/Current/Headers
@@ -1 +0,0 @@
Versions/Current/AdaptiveController
@@ -1 +0,0 @@
Versions/Current/Headers
@@ -1,19 +0,0 @@
//
// AdaptiveController.h
// AdaptiveController
//
// Created by Arcilite on 24.09.14.
// Copyright (c) 2014 Ramotion. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for AdaptiveController.
FOUNDATION_EXPORT double AdaptiveControllerVersionNumber;
//! Project version string for AdaptiveController.
FOUNDATION_EXPORT const unsigned char AdaptiveControllerVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <AdaptiveController/PublicHeader.h>
+1 -2
View File
@@ -6,8 +6,7 @@ Pod::Spec.new do |s|
s.authors = { 'Artem Kislitsyn, Yuri Vasilenko' => 'yuri.v@ramotion.com' }
s.summary = 'AdaptiveController is a Progressive Reduction Swift module for adding custom states to Native or Custom UI elements.'
s.source = { :git => 'https://github.com/Ramotion/adaptive-tab-bar.git', :tag => "#{s.version}" }
s.ios.platform = :ios, '7.0'
s.source_files = 'AdaptiveController/AdaptiveController/*.{h,swift}'
s.frameworks = 'Swift','UIKit'
s.frameworks = 'Swift'
s.requires_arc = true
end
@@ -1,19 +0,0 @@
//
// AdaptiveController.h
// AdaptiveController
//
// Created by Arcilite on 24.09.14.
// Copyright (c) 2014 Ramotion. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for AdaptiveController.
FOUNDATION_EXPORT double AdaptiveControllerVersionNumber;
//! Project version string for AdaptiveController.
FOUNDATION_EXPORT const unsigned char AdaptiveControllerVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <AdaptiveController/PublicHeader.h>
View File
+33
View File
@@ -0,0 +1,33 @@
# Contributing to a Project
Now that youve found the material for understanding the project, here is how you can take action.
### Create an Issue
If you find a bug in a project youre using (and you dont know how to fix it), have trouble following the documentation or have a question about the project create an issue! Theres nothing to it and whatever issue youre having, youre likely not the only one, so others will find your issue helpful, too. For more information on how issues work, check out our Issues guide.
#### Issues Pro Tips
Check existing issues for your issue. Duplicating an issue is slower for both parties so search through open and closed issues to see if what youre running into has been addressed already.
Be clear about what your problem is: what was the expected outcome, what happened instead? Detail how someone else can recreate the problem.
Link to demos recreating the problem on things like JSFiddle or CodePen.
Include system details like what the browser, library or operating system youre using and its version.
Paste error output or logs in your issue or in a Gist. If pasting them in the issue, wrap it in three backticks: ``` so that it renders nicely.
### Pull Request
If youre able to patch the bug or add the feature yourself fantastic, make a pull request with the code! Be sure youve read any documents on contributing, understand the license and have signed a CLA if required. Once youve submitted a pull request the maintainer(s) can compare your branch to the existing one and decide whether or not to incorporate (pull in) your changes.
#### Pull Request Pro Tips
Fork the repository and clone it locally. Connect your local to the original upstream repository by adding it as a remote. Pull in changes from upstream often so that you stay up to date so that when you submit your pull request, merge conflicts will be less likely. See more detailed instructions here.
Create a branch for your edits.
Be clear about what problem is occurring and how someone can recreate that problem or why your feature will help. Then be equally as clear about the steps you took to make your changes.
Its best to test. Run your changes against any existing tests if they exist and create new ones when needed. Whether tests exist or not, make sure your changes dont break the existing project.
Include screenshots of the before and after if your changes include differences in HTML/CSS. Drag and drop the images into the body of your pull request.
Contribute in the style of the project to the best of your abilities. This may mean using indents, semi colons or comments differently than you would in your own repository, but makes it easier for the maintainer to merge, others to understand and maintain in the future.
#### Open Pull Requests
Once youve opened a pull request a discussion will start around your proposed changes. Other contributors and users may chime in, but ultimately the decision is made by the maintainer(s). You may be asked to make some changes to your pull request, if so, add more commits to your branch and push them theyll automatically go into the existing pull request.
If your pull request is merged great! If it is not, no sweat, it may not be what the project maintainer had in mind, or they were already working on it. This happens, so our recommendation is to take any feedback youve received and go forth and pull request again or create your own open source project.
-45
View File
@@ -1,45 +0,0 @@
platform :ios, "7.0"
source 'https://github.com/CocoaPods/Specs.git'
workspace 'SamplesAdaptiveController.xcworkspace'
xcodeproj 'Samples/adaptive-dates-tabbar/example-date-adaptive-tab-bar.xcodeproj'
xcodeproj 'Samples/adaptive-launches-tabbar/example-count-launches-adaptive-tabbar.xcodeproj'
link_with ['example-count-launches-adaptive-tabbar', 'example-date-adaptive-tab-bar']
target 'example-date-adaptive-tab-bar' , :exclusive => true do
xcodeproj 'Samples/adaptive-dates-tabbar/example-date-adaptive-tab-bar.xcodeproj'
pod "AdaptiveController", :path => "./AdaptiveController-0.0.1"
end
target 'example-count-launches-adaptive-tabbar' , :exclusive => true do
xcodeproj 'Samples/adaptive-launches-tabbar/example-count-launches-adaptive-tabbar.xcodeproj'
pod "AdaptiveController", :path => "./AdaptiveController-0.0.1"
end
post_install do |installer|
installer.project.targets.each do |target|
puts "#{target.name}"
end
end
#post_install do |installer|
# settings = Xcodeproj::Project.send(:build_settings, Pod::Platform.new(:ios), :debug)
# configs = installer.project.build_configurations
# configs.new('name' => 'Spec', 'buildSettings' => settings.merge('CONFIGURATION_BUILD_DIR' => '$(BUILD_DIR)/Debug$(EFFECTIVE_PLATFORM_NAME)'))
#end
#post_install do |installer_representation|
# workDir = Dir.pwd
# xcconfigFilename = "#{workDir}/Pods/Target Support Files/Pods-AdaptiveController/Pods-AdaptiveController.xcconfig"
# xcconfig = File.read(xcconfigFilename)
# newXcconfig = xcconfig.gsub(/HEADER_SEARCH_PATHS = "/, "HEADER_SEARCH_PATHS = $(inherited) \"")
# File.open(xcconfigFilename, "w") { |file| file << newXcconfig }
#end
-14
View File
@@ -1,14 +0,0 @@
PODS:
- AdaptiveController (0.0.1)
DEPENDENCIES:
- AdaptiveController (from `./AdaptiveController-0.0.1`)
EXTERNAL SOURCES:
AdaptiveController:
:path: ./AdaptiveController-0.0.1
SPEC CHECKSUMS:
AdaptiveController: 0231a4d702b246bb011877308b8c5e644b4daef0
COCOAPODS: 0.34.2
@@ -1 +0,0 @@
../../../../AdaptiveController-0.0.1/ios/AdaptiveController.framework/Versions/A/Headers/AdaptiveController.h
-22
View File
@@ -1,22 +0,0 @@
Pod::Spec.new do |s|
s.name = 'AdaptiveController'
s.version = '0.0.1'
s.summary = 'AdaptiveController is a Progressive Reduction Swift module for adding custom states to Native or Custom UI elements.'
s.license = {"type"=>"MIT"}
s.authors = {"Artem Kislitsyn, Yuri Vasilenko"=>"yuri.v@ramotion.com"}
s.homepage = 'https://github.com/Ramotion/adaptive-tab-bar'
s.frameworks = ["UIKit"]
s.requires_arc = true
s.source = {}
s.osx.platform = :osx, ''
s.osx.preserve_paths = 'osx/AdaptiveController.framework'
s.osx.public_header_files = 'osx/AdaptiveController.framework/Versions/A/Headers/*.h'
s.osx.resource = 'osx/AdaptiveController.framework/Versions/A/Resources/**/*'
s.osx.vendored_frameworks = 'osx/AdaptiveController.framework'
s.ios.platform = :ios, ''
s.ios.preserve_paths = 'ios/AdaptiveController.framework'
s.ios.public_header_files = 'ios/AdaptiveController.framework/Versions/A/Headers/*.h'
s.ios.resource = 'ios/AdaptiveController.framework/Versions/A/Resources/**/*'
s.ios.vendored_frameworks = 'ios/AdaptiveController.framework'
end
-14
View File
@@ -1,14 +0,0 @@
PODS:
- AdaptiveController (0.0.1)
DEPENDENCIES:
- AdaptiveController (from `./AdaptiveController-0.0.1`)
EXTERNAL SOURCES:
AdaptiveController:
:path: ./AdaptiveController-0.0.1
SPEC CHECKSUMS:
AdaptiveController: 0231a4d702b246bb011877308b8c5e644b4daef0
COCOAPODS: 0.34.2
-1527
View File
File diff suppressed because it is too large Load Diff
@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5829954DA02162C41BF1AFAF"
BuildableName = "libPods-example-count-launches-adaptive-tabbar-AdaptiveController.a"
BlueprintName = "Pods-example-count-launches-adaptive-tabbar-AdaptiveController"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEBCEBB3CD32FC1DD4149CB2"
BuildableName = "libPods-example-count-launches-adaptive-tabbar.a"
BlueprintName = "Pods-example-count-launches-adaptive-tabbar"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C0D047F3AD5428B304A0A776"
BuildableName = "libPods-example-date-adaptive-tab-bar-AdaptiveController.a"
BlueprintName = "Pods-example-date-adaptive-tab-bar-AdaptiveController"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "351F3E1BA7AE7E4E7E476DCF"
BuildableName = "libPods-example-date-adaptive-tab-bar.a"
BlueprintName = "Pods-example-date-adaptive-tab-bar"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -1,52 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Pods-example-count-launches-adaptive-tabbar-AdaptiveController.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
</dict>
<key>Pods-example-count-launches-adaptive-tabbar.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
</dict>
<key>Pods-example-date-adaptive-tab-bar-AdaptiveController.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
</dict>
<key>Pods-example-date-adaptive-tab-bar.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>351F3E1BA7AE7E4E7E476DCF</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>5829954DA02162C41BF1AFAF</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>C0D047F3AD5428B304A0A776</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>EEBCEBB3CD32FC1DD4149CB2</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
@@ -1,6 +0,0 @@
#include "Pods-example-count-launches-adaptive-tabbar-AdaptiveController.xcconfig"
FRAMEWORK_SEARCH_PATHS = ${PODS_EXAMPLE_COUNT_LAUNCHES_ADAPTIVE_TABBAR_ADAPTIVECONTROLLER_FRAMEWORK_SEARCH_PATHS}
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/AdaptiveController" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = ${PODS_EXAMPLE_COUNT_LAUNCHES_ADAPTIVE_TABBAR_ADAPTIVECONTROLLER_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
@@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_example_count_launches_adaptive_tabbar_AdaptiveController : NSObject
@end
@implementation PodsDummy_Pods_example_count_launches_adaptive_tabbar_AdaptiveController
@end
@@ -1,5 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-example-count-launches-adaptive-tabbar-environment.h"
@@ -1,2 +0,0 @@
PODS_EXAMPLE_COUNT_LAUNCHES_ADAPTIVE_TABBAR_ADAPTIVECONTROLLER_FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
PODS_EXAMPLE_COUNT_LAUNCHES_ADAPTIVE_TABBAR_ADAPTIVECONTROLLER_OTHER_LDFLAGS = -framework "AdaptiveController" -framework "UIKit"
@@ -1,3 +0,0 @@
# Acknowledgements
This application makes use of the following third party libraries:
Generated by CocoaPods - http://cocoapods.org
@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>FooterText</key>
<string>This application makes use of the following third party libraries:</string>
<key>Title</key>
<string>Acknowledgements</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Generated by CocoaPods - http://cocoapods.org</string>
<key>Title</key>
<string></string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
</array>
<key>StringsTable</key>
<string>Acknowledgements</string>
<key>Title</key>
<string>Acknowledgements</string>
</dict>
</plist>
@@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_example_count_launches_adaptive_tabbar : NSObject
@end
@implementation PodsDummy_Pods_example_count_launches_adaptive_tabbar
@end
@@ -1,14 +0,0 @@
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AdaptiveController
#define COCOAPODS_POD_AVAILABLE_AdaptiveController
#define COCOAPODS_VERSION_MAJOR_AdaptiveController 0
#define COCOAPODS_VERSION_MINOR_AdaptiveController 0
#define COCOAPODS_VERSION_PATCH_AdaptiveController 1
@@ -1,68 +0,0 @@
#!/bin/sh
set -e
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.xib)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.framework)
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
;;
*.xcdatamodel)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom"
;;
*.xcdatamodeld)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd"
;;
*.xcassets)
;;
/*)
echo "$1"
echo "$1" >> "$RESOURCES_TO_COPY"
;;
*)
echo "${PODS_ROOT}/$1"
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
;;
esac
}
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [[ "${ACTION}" == "install" ]]; then
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ]
then
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device iphone"
;;
2)
TARGET_DEVICE_ARGS="--target-device ipad"
;;
*)
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
@@ -1,6 +0,0 @@
FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = -ObjC -l"Pods-example-count-launches-adaptive-tabbar-AdaptiveController" -framework "AdaptiveController" -framework "UIKit"
PODS_ROOT = ${SRCROOT}/../../Pods
@@ -1,6 +0,0 @@
FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = -ObjC -l"Pods-example-count-launches-adaptive-tabbar-AdaptiveController" -framework "AdaptiveController" -framework "UIKit"
PODS_ROOT = ${SRCROOT}/../../Pods
@@ -1,6 +0,0 @@
#include "Pods-example-date-adaptive-tab-bar-AdaptiveController.xcconfig"
FRAMEWORK_SEARCH_PATHS = ${PODS_EXAMPLE_DATE_ADAPTIVE_TAB_BAR_ADAPTIVECONTROLLER_FRAMEWORK_SEARCH_PATHS}
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/AdaptiveController" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = ${PODS_EXAMPLE_DATE_ADAPTIVE_TAB_BAR_ADAPTIVECONTROLLER_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
@@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_example_date_adaptive_tab_bar_AdaptiveController : NSObject
@end
@implementation PodsDummy_Pods_example_date_adaptive_tab_bar_AdaptiveController
@end
@@ -1,5 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-example-date-adaptive-tab-bar-environment.h"
@@ -1,2 +0,0 @@
PODS_EXAMPLE_DATE_ADAPTIVE_TAB_BAR_ADAPTIVECONTROLLER_FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
PODS_EXAMPLE_DATE_ADAPTIVE_TAB_BAR_ADAPTIVECONTROLLER_OTHER_LDFLAGS = -framework "AdaptiveController" -framework "UIKit"
@@ -1,3 +0,0 @@
# Acknowledgements
This application makes use of the following third party libraries:
Generated by CocoaPods - http://cocoapods.org
@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>FooterText</key>
<string>This application makes use of the following third party libraries:</string>
<key>Title</key>
<string>Acknowledgements</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Generated by CocoaPods - http://cocoapods.org</string>
<key>Title</key>
<string></string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
</array>
<key>StringsTable</key>
<string>Acknowledgements</string>
<key>Title</key>
<string>Acknowledgements</string>
</dict>
</plist>
@@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_example_date_adaptive_tab_bar : NSObject
@end
@implementation PodsDummy_Pods_example_date_adaptive_tab_bar
@end
@@ -1,14 +0,0 @@
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AdaptiveController
#define COCOAPODS_POD_AVAILABLE_AdaptiveController
#define COCOAPODS_VERSION_MAJOR_AdaptiveController 0
#define COCOAPODS_VERSION_MINOR_AdaptiveController 0
#define COCOAPODS_VERSION_PATCH_AdaptiveController 1
@@ -1,68 +0,0 @@
#!/bin/sh
set -e
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.xib)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.framework)
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
;;
*.xcdatamodel)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom"
;;
*.xcdatamodeld)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd"
;;
*.xcassets)
;;
/*)
echo "$1"
echo "$1" >> "$RESOURCES_TO_COPY"
;;
*)
echo "${PODS_ROOT}/$1"
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
;;
esac
}
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [[ "${ACTION}" == "install" ]]; then
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ]
then
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device iphone"
;;
2)
TARGET_DEVICE_ARGS="--target-device ipad"
;;
*)
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
@@ -1,6 +0,0 @@
FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = -ObjC -l"Pods-example-date-adaptive-tab-bar-AdaptiveController" -framework "AdaptiveController" -framework "UIKit"
PODS_ROOT = ${SRCROOT}/../../Pods
@@ -1,6 +0,0 @@
FRAMEWORK_SEARCH_PATHS = "$(PODS_ROOT)/../AdaptiveController-0.0.1/ios"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AdaptiveController"
OTHER_LDFLAGS = -ObjC -l"Pods-example-date-adaptive-tab-bar-AdaptiveController" -framework "AdaptiveController" -framework "UIKit"
PODS_ROOT = ${SRCROOT}/../../Pods
+17 -3
View File
@@ -1,4 +1,10 @@
![Header](https://cdn.rawgit.com/Ramotion/adaptive-tab-bar/header.svg)
# Adaptive Tab Bar
[![CocoaPods](https://img.shields.io/cocoapods/p/AdaptiveController.svg)](https://cocoapods.org/pods/AdaptiveController)
[![CocoaPods](https://img.shields.io/cocoapods/v/RAMPaperSwitch.svg)](http://cocoapods.org/pods/AdaptiveController)
[![Twitter](https://img.shields.io/badge/Twitter-@Ramotion-blue.svg?style=flat)](http://twitter.com/Ramotion)
[![Travis](https://img.shields.io/travis/Ramotion/adaptive-tab-bar.svg)](https://travis-ci.org/Ramotion/adaptive-tab-bar)
AdaptiveController is a 'Progressive Reduction' Swift module for adding custom states to Native or Custom UI elements.
@@ -164,8 +170,16 @@ In AdaptiveDateState, we add custom init methods which decided what states have
You can customize different UI components if they adopt to the AdaptiveApperanceProtocol.
##About us
## Licence
[Ramotion](http://Ramotion.com) is an iPhone app design and development company. We are ready for new interesting iOS App Development projects.
Adaptive tab bar is released under the MIT license.
See [LICENSE](./LICENSE.md) for details.
## About
The project maintained by [app development agency](http://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=paper-switch) [Ramotion Inc.](http://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=adaptive-tab-bar)]
See our other [open-source projects](https://github.com/ramotion) or [hire](http://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=adaptive-tab-bar) us to design, develop, and grow your product.
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/ramotion/adaptive-tab-bar)
[![Twitter Follow](https://img.shields.io/twitter/follow/ramotion.svg?style=social)](https://twitter.com/ramotion)
Follow us on [twitter](http://twitter.com/ramotion).
-11
View File
@@ -1,11 +0,0 @@
source 'https://github.com/CocoaPods/Specs.git'
target 'example-count-launches-adaptive-tabbar', :exclusive => true do
pod "AdaptiveController", :path => "../.."
end
target 'example-count-launches-adaptive-tabbarTests', :exclusive => true do
pod "AdaptiveController", :path => "../.."
end
@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6A5558C919E2BAB100ED3B5C"
BuildableName = "example-count-launches-adaptive-tabbarTests.xctest"
BlueprintName = "example-count-launches-adaptive-tabbarTests"
ReferencedContainer = "container:example-count-launches-adaptive-tabbar.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6A5558C919E2BAB100ED3B5C"
BuildableName = "example-count-launches-adaptive-tabbarTests.xctest"
BlueprintName = "example-count-launches-adaptive-tabbarTests"
ReferencedContainer = "container:example-count-launches-adaptive-tabbar.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6A5558C919E2BAB100ED3B5C"
BuildableName = "example-count-launches-adaptive-tabbarTests.xctest"
BlueprintName = "example-count-launches-adaptive-tabbarTests"
ReferencedContainer = "container:example-count-launches-adaptive-tabbar.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6A5558C919E2BAB100ED3B5C"
BuildableName = "example-count-launches-adaptive-tabbarTests.xctest"
BlueprintName = "example-count-launches-adaptive-tabbarTests"
ReferencedContainer = "container:example-count-launches-adaptive-tabbar.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6A5558C919E2BAB100ED3B5C"
BuildableName = "example-count-launches-adaptive-tabbarTests.xctest"
BlueprintName = "example-count-launches-adaptive-tabbarTests"
ReferencedContainer = "container:example-count-launches-adaptive-tabbar.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -6,8 +6,7 @@ Pod::Spec.new do |s|
s.authors = { 'Artem Kislitsyn, Yuri Vasilenko' => 'yuri.v@ramotion.com' }
s.summary = 'AdaptiveController is a Progressive Reduction Swift module for adding custom states to Native or Custom UI elements.'
s.source = { :git => 'https://github.com/Ramotion/adaptive-tab-bar.git', :tag => "#{s.version}" }
s.ios.platform = :ios, '7.0'
s.source_files = 'AdaptiveController/AdaptiveController/*.{h,swift}'
s.frameworks = 'Swift','UIKit'
s.frameworks = 'Swift'
s.requires_arc = true
end

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Ramotion Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
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 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.
+171
View File
@@ -0,0 +1,171 @@
# Adaptive Tab Bar
AdaptiveController is a 'Progressive Reduction' Swift module for adding custom states to Native or Custom UI elements.
![Mou icon](https://d13yacurqjgara.cloudfront.net/users/25514/screenshots/1320024/viber-ios7-concept-navigation-bar-ramotion.gif)
##Tab Bar After Install
![Mou icon](http://i.imgur.com/7V6M7z6.png?1)
##Tab Bar After Two Weeks
![Mou icon](http://i.imgur.com/KTZIC4Z.png?1)
##Tab Bar After a Month
![Mou icon](http://i.imgur.com/TNQMGTf.png?1)
##Overview
AdaptiveController is module for adding custom states to Native or Custom UI elements. The UI elements evolve over time as the user becomes accustomed to them. An example AdaptiveTabBar is provided.
##How to import the control to your project
1. First, drag and drop the AdaptiveController project file into your project or select "add existing file" and choose the AdaptiveController project
2. Add AdaptiveController to your Target Dependences in the Build Phase of your project.
3. Add the AdaptiveController framework in Link Binary With Libraries in Build Phases
4. Import AdaptiveController where needed.
##Using AdaptiveController
First, you should set the install date, current date, count of days to transition to small text state, and count of days to transition to big image state. The AdaptiveDateState object automatically determines what UI state to show:
```swift
var installDate = NSDate(dateString:"2014-09-18")
var adaptiveState = AdaptiveDateState(installDate: installDate, currentDate:NSDate(), countDaysToSmallTextState:countDaysToSmallTextState, countDaysToImageState:countDaysToImageState)
```
Or count of launches for different state:
```swift
var curentCountLaunches = 6
var adaptiveState = AdaptiveLaunchesState(curentCountLaunches:curentCountLaunches, countLaunchesToSmallTextState:5, countLaunchesToImageState:7)
```
And then you should setup an array of appearances. You should setup button images for each state for each apperance object:
```swift
var buttonsAppearances = buttonsAppearancesGenerate() //func butonsAppearancesGenerate() -> [AdaptiveButtonApperance]
```
And then you should setup an array of items Appearance object. You should set the button's image for each state for each appearance object.
First, you should setup a dictionary for the extension of the image for each UI state:
```swift
var imageExtensionsForStates:Dictionary = [ kSmallTitleAdaptiveState:"_smalltitle", kImageAdaptiveState:"_bigimage", kSmallTitleAdaptiveState+selected :"_smalltitle", kImageAdaptiveState+selected:"_bigimage" ]
```
Then you should set the Appearance for each UITabBarItem title for each state, fonts for each state, a default image if you describe an extension for each state, or if you do not describe an extension, you should setup each image for each state.
First, init the appearance object and setup the text for each state. If the text is the same for each state, you can set text for the default state:
```swift
var watchAppearance = AdaptiveButtonAppearance();
watchAppearance.setButonTitle("watch", state: kDefaultAdaptiveState)
watchAppearance.setButonTitle("watch", state: kSmallTitleAdaptiveState)
watchAppearance.setButonTitle("", state: kImageAdaptiveState)
```
Then you should setup your fonts for each state:
```swift
watchAppearance.setButonTitleFontForState(yourDefaultFont, state: kDefaultAdaptiveState)
watchAppearance.setButonTitleFontForState(yourDefaultSmallTitleModeFont, state: kSmallTitleAdaptiveState)
```
Then you should set the default image and extensions for each state a function which automaticaly sets images for each state:
```swift
watchAppearance.setImageNamesForStatesImageExtesions("watch", imageExtensionsForState:imageExtensionsForStates)
```
Then you should setup the appearance insets for each state:
```swift
watchAppearance.setImageInsets(defaultInsets, state: kDefaultAdaptiveState);
watchAppearance.setImageInsets(defaultSmallTitleModeImageInsets, state: kSmallTitleAdaptiveState)
watchAppearance.setTitleOffset(defaultOffset, state: kDefaultAdaptiveState)
watchAppearance.setImageInsets(defaultImageModeInsets, state: kImageAdaptiveState);
```
Then you should setup сustom UITabBarItems which conform to the AdaptiveButtonsProtocol:
```swift
var arrayButtons = tabBar.items as [AdaptiveTabBarItem]
```
In your custom tab item, you should implement these methods from the protocol:
```swift
@objc protocol AdaptiveApperanceProtocol {
optional func setFontToAdaptiveButton(font: UIFont)
optional func setTitleToAdaptiveButton(text: NSString)
optional func setImageToAdaptiveButton(image: UIImage?)
optional func setHighlightedToAdaptiveButton(image: UIImage?)
optional func setBackgroundImageToAdaptiveButton(image: UIImage?)
optional func setSelectedImageToAdaptiveButton(image: UIImage?)
optional func setImageInsetsToAdaptiveButton(insets: UIEdgeInsets)
optional func setTitleOffsetToAdaptiveButton(offset: UIOffset)
optional func setTitleColorToAdaptiveButton(titleColor: UIColor)
}
```
An example implemetation of a protocol method from our custom tab bar item:
```swift
func setTitleToAdaptiveButton(text: NSString) {
self.title = text
}
```
Finally, you should init Adaptive State Manager with the objects you've setup:
```swift
AdaptiveButtonsStateManager(state: adaptiveState, buttonsAray:arrayButtons, buttonsAppearance:butonsAppearances)
```
##Using Custom States For AdaptiveController
Like UITabBar for different custom applications states
We have a default AdaptiveState and with the help of inheritance, we can add
new custom states to our state class. The new class in our situation is
named AdaptiveDateState
In AdaptiveDateState, we can add new custom states like this:
```swift
let kSmallTitleAdaptiveState = "kImageAdaptiveState"
let kImageAdaptiveState = "kNormalImageAdaptiveState"
```
And add methods which decide how the state relates to input parameters:
```swift
var adaptiveState = AdaptiveDateState(installDate: installDate,currentDate:NSDate(),countDaysToSmallTextState:countDaysToSmallTextState,countDaysToImageState:countDaysToImageState)
```
In AdaptiveDateState, we add custom init methods which decided what states have the Adaptive state object according to the input parameters:
```swift
private func stateRemainDays(remainDays:Int, countDaysToSmallTextState:Int, countDaysToImageState:Int)->String {
var mode:String = kDefaultAdaptiveState
print(" DAYS \(remainDays) ")
if remainDays > countDaysToSmallTextState && remainDays < countDaysToImageState{
mode = kSmallTitleAdaptiveState
} else if remainDays > countDaysToImageState {
mode = kImageAdaptiveState
}
print(mode)
return mode
}
```
You can customize different UI components if they adopt to the AdaptiveApperanceProtocol.
##About us
[Ramotion](http://Ramotion.com) is an iPhone app design and development company. We are ready for new interesting iOS App Development projects.
Follow us on [twitter](http://twitter.com/ramotion).

Some files were not shown because too many files have changed in this diff Show More