Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 5 additions & 2 deletions CPAccelerationTimer.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
Pod::Spec.new do |s|
s.name = 'CPAccelerationTimer'
s.version = '0.0.2'
s.platform = :ios
s.version = '0.0.3'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Timer with Bézier curve acceleration'
s.homepage = 'https://github.com/yangmeyer/CPAccelerationTimer'
s.author = { 'Yang Meyer' => 'https://github.com/yangmeyer' }
s.description = 'Calls a block a given number of times, spread out over a given duration, with the between-calls delays determined by a given Bézier curve. Think of it as an NSTimer with custom acceleration.'

s.source = { :git => 'https://github.com/yangmeyer/CPAccelerationTimer.git', :tag => s.version.to_s }
s.prefix_header_file = 'Component/CPAccelerationTimer-Prefix.pch'
s.source_files = 'Component/*.{h,c,m}'
s.requires_arc = true

s.ios.deployment_target = '4.3'
s.watchos.deployment_target = '2.0'
end
11 changes: 11 additions & 0 deletions Component/CPAccelerationTimer-Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#if TARGET_OS_WATCH
#define CGFloat float

struct CGPoint {
CGFloat x;
CGFloat y;
};
typedef struct CGPoint CGPoint;

#define CGPointEqualToPoint(p1, p2) (p1.x == p2.x && p1.y == p2.y)
#endif