-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
171 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "Presentr" | ||
s.version = "1.0.5" | ||
s.version = "1.1.0" | ||
s.summary = "A simple Swift wrapper for typical custom view controller presentations." | ||
s.description = <<-DESC | ||
A micro framework created in Swift. Simplifies creating custom view controller presentations. Specially the typical ones we use which are a popup, an alert, or a any non-full-screen modal. Abstracts having to deal with custom presentation controllers and transitioning delegates | ||
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s| | |
s.author = { "Daniel Lozano" => "[email protected]" } | ||
s.social_media_url = "http://twitter.com/danlozanov" | ||
s.platform = :ios, "9.0" | ||
s.source = { :git => "https://github.com/icalialabs/Presentr.git", :tag => "1.0.5" } | ||
s.source = { :git => "https://github.com/icalialabs/Presentr.git", :tag => "1.1.0" } | ||
s.source_files = "Presentr/**/*.{swift}" | ||
s.resources = "Presentr/**/*.{xib,ttf}" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// SpringFromBottomAnimation.swift | ||
// PresentrExample | ||
// | ||
// Created by Francesco Perrotti-Garcia on 12/26/16. | ||
// Copyright © 2016 Presentr. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class SpringFromBottomAnimation: PresentrAnimation { | ||
|
||
override var springDamping: CGFloat { | ||
return 0.5 | ||
} | ||
|
||
override var initialSpringVelocity: CGFloat { | ||
return 0 | ||
} | ||
|
||
override func transform(containerFrame: CGRect, finalFrame: CGRect) -> CGRect { | ||
var initialFrame = finalFrame | ||
initialFrame.origin.y = containerFrame.size.height + initialFrame.size.height | ||
return initialFrame | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// CustomAnimation.swift | ||
// PresentrExample | ||
// | ||
// Created by Daniel Lozano Valdés on 12/27/16. | ||
// Copyright © 2016 danielozano. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Presentr | ||
|
||
class CustomAnimation: PresentrAnimation { | ||
|
||
override var springDamping: CGFloat { | ||
return 500 | ||
} | ||
|
||
override var initialSpringVelocity: CGFloat { | ||
return 1 | ||
} | ||
|
||
override var animationDuration: TimeInterval { | ||
return 1 | ||
} | ||
|
||
override func transform(containerFrame: CGRect, finalFrame: CGRect) -> CGRect { | ||
return CGRect(x: 0, y: 0, width: 10, height: 10) | ||
} | ||
|
||
} |
Oops, something went wrong.