mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-04 20:01:15 +08:00
* 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
35 lines
798 B
Swift
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
|
|
}
|
|
}
|