Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IP-314] Provide visual feedback for "subscribe" buttons

  • Loading branch information
mahmoud-adam85 committed Apr 4, 2019
1 parent 2a404df commit 7c9122424537eda765c40305a46d040316e73d81
Showing with 8 additions and 1 deletion.
  1. +8 −1 Cliqz/Upgrade&Payment/View/SubscriptionTableViewCell.swift
@@ -7,6 +7,13 @@
//
import UIKit
class SubscribeButton: UIButton {
override open var isHighlighted: Bool {
didSet {
backgroundColor = isHighlighted ? UIColor(colorString: "2557A5") : UIColor.lumenBrightBlue
}
}
}

class SubscriptionTableViewCell: UITableViewCell {
let nameLabel = UILabel()
@@ -17,7 +24,7 @@ class SubscriptionTableViewCell: UITableViewCell {
let billingLabel = UILabel()
let descriptionLabel = UILabel()
let bestOfferLabel = UILabel()
let subscribeButton = UIButton()
let subscribeButton = SubscribeButton()
let frameView = UIImageView()
var isProCell: Bool = false
var isBasicCell: Bool = false

0 comments on commit 7c91224

Please sign in to comment.