Files
GitHawk/Classes/Views/StyledTableCell.swift
Ehud Adler af4e0f8fb8 Choose double tap (#2022)
* Addresses #2013

* fixed issue with creating reaction from string

* Switched from MenuController to Separate TableViewController

* Minor wording change

* Minor wording update

* Switched all cells to StyleTextCells

* UX fixes.
Migrated back into GitHawk Section
Removed None and replaced it with a switch

* Switched Set Double Tap Reaction -> Double Tap Reaction
2018-08-11 11:02:29 -04:00

35 lines
798 B
Swift

//
// StyledTableCell.swift
// Freetime
//
// Created by Ryan Nystrom on 8/12/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import UIKit
class StyledTableCell: UITableViewCell {
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configure()
}
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
configure()
}
private func configure() {
textLabel?.font = Styles.Text.body.preferredFont
let background = UIView()
background.backgroundColor = Styles.Colors.Gray.alphaLighter
selectedBackgroundView = background
}
override var canBecomeFirstResponder: Bool {
return true
}
}