Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
seungyounyi committed Mar 2, 2017
1 parent bd20bce commit 37d687e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,9 @@ YNDropDownMenu is available through [CocoaPods](http://cocoapods.org). To instal
it, simply add the following line to your Podfile:

`pod 'YNDropDownMenu'`
## [v2.0.1](https://github.com/younatics/YNDropDownMenu/releases/tag/2.0.1)
* Bug fixed [#4](https://github.com/younatics/YNDropDownMenu/issues/4)

## [v2.0.0](https://github.com/younatics/YNDropDownMenu/releases/tag/2.0.0)
* Add `changeView(at index: Int)` function in `YNDropDownMenu`
* Code refactoring
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion YNDropDownMenu.podspec
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'YNDropDownMenu'
s.version = '2.0.0'
s.version = '2.0.1'
s.summary = 'YNDropDownMenu is created to make drop down menu with Swift 3'

s.description = 'The eligible dropdown menu, written in Swift 3, appears dropdown menu to display a view of related items when a user click on the dropdown menu. You can customize dropdown view whatever you like (e.g. UITableView, UICollectionView... etc)'
Expand Down
4 changes: 2 additions & 2 deletions YNDropDownMenu/Classes/YNDropDownMenu.swift
Expand Up @@ -226,7 +226,7 @@ open class YNDropDownMenu: UIView, YNDropDownDelegate {
if self.backgroundBlurEnabled {
self.blurEffectView?.alpha = self.blurEffectViewAlpha
}
self.frame = CGRect(x: 0, y: self.frame.origin.y, width: self.frame.width, height: dropDownView.frame.height + CGFloat(self.menuHeight))
self.frame = CGRect(x: self.frame.origin.x, y: self.frame.origin.y, width: self.frame.width, height: dropDownView.frame.height + CGFloat(self.menuHeight))
if let _buttonImageView = buttonImageView {
_buttonImageView.layer.transform = CATransform3DMakeRotation(CGFloat(M_PI), 1.0, 0.0, 0.0)
_buttonImageView.image = self.buttonImages?.selected
Expand Down Expand Up @@ -259,7 +259,7 @@ open class YNDropDownMenu: UIView, YNDropDownDelegate {
if self.backgroundBlurEnabled {
self.blurEffectView?.alpha = 0
}
self.frame = CGRect(x: 0.0, y: self.frame.origin.y, width: self.frame.width, height: CGFloat(self.menuHeight))
self.frame = CGRect(x: self.frame.origin.x, y: self.frame.origin.y, width: self.frame.width, height: CGFloat(self.menuHeight))
if let _buttonImageView = buttonImageView {
_buttonImageView.layer.transform = CATransform3DMakeRotation(CGFloat(M_PI), 0.0, 0.0, 0.0);
_buttonImageView.image = self.buttonImages?.normal
Expand Down

0 comments on commit 37d687e

Please sign in to comment.