Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pmusolino committed Mar 28, 2019
1 parent 55aa4a0 commit 70223f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Configs/PMSuperButton.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion PMSuperButton.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PMSuperButton"
s.version = "3.0.0"
s.version = "3.0.1"
s.summary = "PMSuperButton is a powerful UIButton coming from the countryside, but with super powers!"
s.description = <<-DESC
A easy way to create custom and complex buttons with custom attributes, directly added to the iOS Interface Builder, very easy to integrate in every project!
Expand Down
2 changes: 1 addition & 1 deletion PMSuperButtonSample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
6 changes: 3 additions & 3 deletions Sources/PMSuperButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ open class PMSuperButton: UIButton {

//MARK: - Animations
@IBInspectable open var animatedScaleWhenHighlighted: CGFloat = 1.0
@IBInspectable open var animatedScaleDurationWhenHightlighted: Double = 0.2
@IBInspectable open var animatedScaleDurationWhenHighlighted: Double = 0.2

override open var isHighlighted: Bool {
didSet {
Expand All @@ -104,12 +104,12 @@ open class PMSuperButton: UIButton {
}

if isHighlighted{
UIView.animate(withDuration: animatedScaleDurationWhenHightlighted, animations: {
UIView.animate(withDuration: animatedScaleDurationWhenHighlighted, animations: {
self.transform = CGAffineTransform(scaleX: self.animatedScaleWhenHighlighted, y: self.animatedScaleWhenHighlighted)
})
}
else{
UIView.animate(withDuration: animatedScaleDurationWhenHightlighted, animations: {
UIView.animate(withDuration: animatedScaleDurationWhenHighlighted, animations: {
self.transform = CGAffineTransform.identity
})
}
Expand Down

0 comments on commit 70223f7

Please sign in to comment.