Showing
5 changed files
with
7 additions
and
3 deletions
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
| 8 | <dict> | 8 | <dict> |
| 9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
| 10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
| 11 | </dict> | 11 | </dict> |
| 12 | </dict> | 12 | </dict> |
| 13 | </dict> | 13 | </dict> | ... | ... |
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
| 8 | <dict> | 8 | <dict> |
| 9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
| 10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
| 11 | </dict> | 11 | </dict> |
| 12 | </dict> | 12 | </dict> |
| 13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
| ... | @@ -122,7 +122,7 @@ import UIKit | ... | @@ -122,7 +122,7 @@ import UIKit |
| 122 | mapButton.setTitle("Καταστήματα κοντά μου", for: .normal) | 122 | mapButton.setTitle("Καταστήματα κοντά μου", for: .normal) |
| 123 | mapButton.setTitleColor(UIColor(rgb: 0xFFFFFF), for: .normal) | 123 | mapButton.setTitleColor(UIColor(rgb: 0xFFFFFF), for: .normal) |
| 124 | mapButton.layer.cornerRadius = 4.0 | 124 | mapButton.layer.cornerRadius = 4.0 |
| 125 | - websiteButton.backgroundColor = UIColor(rgb: 0x000F1E) | 125 | + mapButton.backgroundColor = UIColor(rgb: 0x000F1E) |
| 126 | 126 | ||
| 127 | websiteButton.titleLabel?.font = UIFont(name: "PingLCG-Bold", size: 16) | 127 | websiteButton.titleLabel?.font = UIFont(name: "PingLCG-Bold", size: 16) |
| 128 | websiteButton.setTitle("Δες το website", for: .normal) | 128 | websiteButton.setTitle("Δες το website", for: .normal) |
| ... | @@ -201,6 +201,8 @@ import UIKit | ... | @@ -201,6 +201,8 @@ import UIKit |
| 201 | UIView.animate(withDuration: 0.3) { | 201 | UIView.animate(withDuration: 0.3) { |
| 202 | self.couponCodeArrowImage.image = UIImage(named: self.isCouponCodeExpanded ? "arrow_up" : "arrow_down", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 202 | self.couponCodeArrowImage.image = UIImage(named: self.isCouponCodeExpanded ? "arrow_up" : "arrow_down", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 203 | self.couponCodeContentHeightConstraint.constant = self.isCouponCodeExpanded ? self.couponCodeContentView.intrinsicContentSize.height : 0 | 203 | self.couponCodeContentHeightConstraint.constant = self.isCouponCodeExpanded ? self.couponCodeContentView.intrinsicContentSize.height : 0 |
| 204 | + self.couponCodeContentView.isHidden = !self.isCouponCodeExpanded | ||
| 205 | + self.couponCodeContainerView.frame.size.height = self.couponCodeContainerView.intrinsicContentSize.height | ||
| 204 | self.view.layoutIfNeeded() | 206 | self.view.layoutIfNeeded() |
| 205 | } | 207 | } |
| 206 | } | 208 | } |
| ... | @@ -211,6 +213,8 @@ import UIKit | ... | @@ -211,6 +213,8 @@ import UIKit |
| 211 | UIView.animate(withDuration: 0.3) { | 213 | UIView.animate(withDuration: 0.3) { |
| 212 | self.couponQRArrowImage.image = UIImage(named: self.isCouponQRExpanded ? "arrow_up" : "arrow_down", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 214 | self.couponQRArrowImage.image = UIImage(named: self.isCouponQRExpanded ? "arrow_up" : "arrow_down", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 213 | self.couponQRContentHeightConstraint.constant = self.isCouponQRExpanded ? self.couponQRContentView.intrinsicContentSize.height : 0 | 215 | self.couponQRContentHeightConstraint.constant = self.isCouponQRExpanded ? self.couponQRContentView.intrinsicContentSize.height : 0 |
| 216 | + self.couponQRContentView.isHidden = !self.isCouponQRExpanded | ||
| 217 | + self.couponQRContainerView.frame.size.height = self.couponQRContainerView.intrinsicContentSize.height | ||
| 214 | self.view.layoutIfNeeded() | 218 | self.view.layoutIfNeeded() |
| 215 | } | 219 | } |
| 216 | } | 220 | } | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment