mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-26 14:47:11 +08:00
Move Button accessibility to superclass
This commit is contained in:
@@ -21,7 +21,6 @@ final class ButtonCell: SelectableCell {
|
||||
super.init(frame: frame)
|
||||
|
||||
contentView.backgroundColor = .white
|
||||
accessibilityTraits |= UIAccessibilityTraitButton
|
||||
|
||||
topSeparator = contentView.addBorder(.top)
|
||||
bottomSeparator = contentView.addBorder(.bottom)
|
||||
|
||||
@@ -39,6 +39,11 @@ class SelectableCell: UICollectionViewCell {
|
||||
private lazy var overlay: UIView = {
|
||||
return self.contentView.addOverlay()
|
||||
}()
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
accessibilityTraits |= UIAccessibilityTraitButton
|
||||
}
|
||||
|
||||
override func prepareForReuse() {
|
||||
super.prepareForReuse()
|
||||
|
||||
Reference in New Issue
Block a user