Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Source/View/TapActionCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ import UIKit
/// A `UITableViewCell` subclass with the title text center aligned.
open class TapActionCell: UITableViewCell {

private static var systemTintColor: UIColor = {
let _button = UIButton()
return _button.tintColor ?? UIColor.blue
}()

// MARK: - Initializer

/**
Expand Down Expand Up @@ -61,12 +56,19 @@ open class TapActionCell: UITableViewCell {
setUpAppearance()
}

// MARK: UIView

open override func tintColorDidChange() {
super.tintColorDidChange()
textLabel?.textColor = tintColor
}

// MARK: Private Methods

private func setUpAppearance() {
textLabel?.numberOfLines = 0
textLabel?.textAlignment = .center
textLabel?.textColor = type(of: self).systemTintColor
textLabel?.textColor = tintColor
}

}