address all the swiftlint errors (#1129)
This commit is contained in:
Родитель
cb650db09d
Коммит
020e6de76b
|
@ -1,4 +1,4 @@
|
|||
whitelist_rules:
|
||||
only_rules:
|
||||
# Delegate protocols should be class-only so they can be weakly referenced.
|
||||
- class_delegate_protocol
|
||||
|
||||
|
|
|
@ -334,7 +334,7 @@ class AvatarDemoController: DemoTableViewController {
|
|||
presence = presenceIterator.next()
|
||||
}
|
||||
|
||||
if presence! == .none {
|
||||
if presence! == .none {
|
||||
presence = presenceIterator.next()
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class BadgeLabelButton: UIButton {
|
|||
|
||||
private var badgeFrameOriginX: CGFloat {
|
||||
let xOrigin: CGFloat = isLeftToRightUserInterfaceLayoutDirection ?
|
||||
frame.size.width - contentEdgeInsets.left :
|
||||
frame.size.width - contentEdgeInsets.left :
|
||||
contentEdgeInsets.left
|
||||
|
||||
return (xOrigin - badgeWidth / 2)
|
||||
|
|
|
@ -137,7 +137,7 @@ open class Link: NSButton {
|
|||
private let cornerRadius: CGFloat = 2
|
||||
|
||||
private func updateTitle() {
|
||||
let titleAttributes = (isEnabled && showsUnderlineWhileMouseInside && mouseInside) ? underlinedLinkAttributes: linkAttributes
|
||||
let titleAttributes = (isEnabled && showsUnderlineWhileMouseInside && mouseInside) ? underlinedLinkAttributes : linkAttributes
|
||||
attributedTitle = NSAttributedString(string: title, attributes: titleAttributes)
|
||||
setAccessibilityTitle(title)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче