Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork changes #45

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
967d242
PRTweenTimingFunctionQuintIn and PRTweenTimingFunctionQuintOut were i…
gillesguillemin Oct 16, 2012
da9b0c8
Added a couple of additional shorthand methods to include delay with …
gillesguillemin Oct 16, 2012
e8e6686
Fix for the hack to remove observers
gillesguillemin Oct 16, 2012
34b171c
Included some additional methods to include delay more systematically.
gillesguillemin Oct 17, 2012
682f78b
Added yet another method including a delay property.
gillesguillemin Oct 17, 2012
7f5665b
Another method with delay
gillesguillemin Oct 17, 2012
a08f194
Fix for removing all running ops
jawngee Jan 11, 2013
6b91e45
FIX: NSRunLoop issue where animations would not fire until after NSEv…
Mar 6, 2013
77de7f9
Merge branch 'master' of github.com:dominikhofmann/PRTween
gillesguillemin Mar 7, 2013
abee8aa
A bit of code cleaning/reformatting after last merge with upstream
gillesguillemin Mar 7, 2013
06c5494
Fix unsequenced modification and access to variables' warnings
Oct 3, 2013
f5f2284
Fix Analyzer warnings: branch evaluates garbage value
Oct 3, 2013
9c0359f
Apply Xcode 5 suggested setting changes to example project
Oct 3, 2013
31f37c9
Merge pull request #1 from jawngee/master
Oct 3, 2013
cded4c3
Merge pull request #2 from jasonmarziani/FIX-NSRUNLOOP
Oct 3, 2013
366211f
Merge pull request #3 from rivera-ernesto/warning_analyzer_fixes
Oct 3, 2013
608f433
Merge branch 'master' of github.com:gillesguillemin/PRTween into gill…
Oct 3, 2013
590e3bc
For now comment-out unimplemented method declaration
Oct 3, 2013
7c4b312
Ignore *.xccheckout files
Oct 30, 2013
6f333ed
Add podspec
Oct 30, 2013
ebfb722
Update podspec
Oct 30, 2013
2e2b1c7
Added finished BOOL parameter to operation completion handler, so we …
Nov 29, 2013
7f65a44
Merge pull request #6 from chris838/master
Dec 2, 2013
78f4953
Add Travis CI configuration
Dec 2, 2013
e6c458d
Updated example app to use new completion block type.
Dec 2, 2013
0e796d9
Merge pull request #7 from chris838/master
Dec 9, 2013
942449d
Added linear damping timing function.
May 6, 2014
3f9d3fd
Update podspec and bump version
Oct 22, 2014
fed357a
Merge pull request #9 from chris838/linear-damping
Oct 22, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.xcuserstate
*.xcuserdatad
.DS_Store
.DS_Store
*.xccheckout
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

language: objective-c

before_install:
- gem install cocoapods

script:
- pod repo update --silent
- pod lib lint
- cd example
- xctool -project PRTween.xcodeproj -scheme 'PRTween' -configuration Release -sdk iphonesimulator -arch i386 build
19 changes: 19 additions & 0 deletions PRTween.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Pod::Spec.new do |s|

s.name = 'PRTween'
s.version = '0.1.0'
s.license = 'BSD'
s.summary = 'PRTween is a lightweight tweening library built for iOS.'
s.homepage = 'https://github.com/dominikhofmann/PRTween'
s.author = { 'Dominik Hofmann' => '' }

s.source = { :git => "https://github.com/PRTween/PRTween.git", :tag => "#{s.version}" }

s.description = 'While Apple has done an incredible job with UIView Animations and Core Animation, there are sometimes cases that are difficult to get around. PRTween is a great alternative if you\'d like to: Animate a property Core Animation won\'t allow you to Ensure that [someView layoutSubviews] is respected during an animation Tween arbitrary numerical values, such as sound volume, scroll position, a counter, or many others Define your timing curve as a function rather than a bezier with control points PRTween aims to be as simple as possible without sacrificing flexibility. In many cases, an animation may be as simple as: [PRTween tween:someView property:@"alpha" from:1 to:0 duration:3]; In order to promote simplicity, PRTween can be used as a drop-in replacement for most animations in your app. This means that in the case displayed above, the end result is identical to writing a UIView animation yourself.'

s.platform = :ios
s.requires_arc = true
s.source_files = 'lib/*.{h,m}'

end
5 changes: 2 additions & 3 deletions example/PRTween.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
B25002B1139558F700670D11 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0440;
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = Jetsetter;
};
buildConfigurationList = B25002B4139558F700670D11 /* Build configuration list for PBXProject "PRTween" */;
Expand Down Expand Up @@ -228,7 +228,6 @@
B25002D9139558F700670D11 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
Expand All @@ -238,6 +237,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 2;
};
Expand All @@ -246,7 +246,6 @@
B25002DA139558F700670D11 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_VERSION = com.apple.compilers.llvmgcc42;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0440"
LastUpgradeVersion = "0500"
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -23,7 +23,7 @@
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
Expand Down
5 changes: 3 additions & 2 deletions example/PRTweenExampleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ - (IBAction)verboseTapped {
- (IBAction)blockTapped {
activeTweenOperation = [[PRTween sharedInstance] addTweenPeriod:[PRTweenPeriod periodWithStartValue:0 endValue:904 duration:1.5] updateBlock:^(PRTweenPeriod *period) {
testView.frame = CGRectMake(0, period.tweenedValue, 100, 100);
} completionBlock:^(void) {
NSLog(@"Completed tween");
} completionBlock:^(BOOL finished) {
if (finished) NSLog(@"Completed tween");
else NSLog(@"Tween preempted before completion.");
}];
}

Expand Down
Loading