Skip to content

Commit

Permalink
Changing release version
Browse files Browse the repository at this point in the history
  • Loading branch information
janselv committed Sep 24, 2018
1 parent cbd2e9b commit b29e7e9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion FaveButton.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "FaveButton"
s.version = "2.0.3"
s.version = "3.0.0"
s.summary = "Twitter's heart like animated button written in Swift"
s.license = 'MIT'
s.homepage = 'https://github.com/xhamr/fave-button'
Expand Down
4 changes: 2 additions & 2 deletions FaveButtonDemo/FaveButtonDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 9T9Q2EVV88;
INFOPLIST_FILE = FaveButtonDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.xhamr.DemoFaveButton;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -481,7 +481,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 9T9Q2EVV88;
INFOPLIST_FILE = FaveButtonDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.xhamr.DemoFaveButton;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
8 changes: 2 additions & 6 deletions FaveButtonDemo/FaveButtonDemo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class ViewController: UIViewController, FaveButtonDelegate{
override func viewDidLoad() {
super.viewDidLoad()

// optional, set default selected fave-buttons with initial
// startup animation disabled.
self.heartButton?.setSelected(selected: true, animated: false)

self.loveButton?.setSelected(selected: true, animated: false)
Expand All @@ -41,12 +43,6 @@ class ViewController: UIViewController, FaveButtonDelegate{
DotColors(first: color(0xF68FA7), second: color(0xF6A2B8))
]

override func viewDidLoad() {
super.viewDidLoad()

heartButton?.isSelected = true
}

func faveButton(_ faveButton: FaveButton, didSelected selected: Bool) {
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Favorite Animated Button written in Swift

## Requirements

- iOS 9.0+
- iOS 8.0+
- Xcode 9

## Installation
Expand Down
3 changes: 1 addition & 2 deletions Source/FaveButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ open class FaveButton: UIButton {
didSet{
guard self.animationsEnabled else {
return
}

}
animateSelect(self.isSelected, duration: Const.duration)
}
}
Expand Down

0 comments on commit b29e7e9

Please sign in to comment.