-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated to Swift 4.2 and added swift version to podspec #617
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,7 @@ open class ButtonBarViewCell: UICollectionViewCell { | |
super.init(coder: aDecoder) | ||
|
||
isAccessibilityElement = true | ||
accessibilityTraits |= UIAccessibilityTraitButton | ||
accessibilityTraits |= UIAccessibilityTraitHeader | ||
accessibilityTraits = [.button, .header] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you should use the |
||
} | ||
|
||
open override var isSelected: Bool { | ||
|
@@ -44,9 +43,9 @@ open class ButtonBarViewCell: UICollectionViewCell { | |
set { | ||
super.isSelected = newValue | ||
if (newValue) { | ||
accessibilityTraits |= UIAccessibilityTraitSelected | ||
accessibilityTraits = [.selected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again. use |
||
} else { | ||
accessibilityTraits &= ~UIAccessibilityTraitSelected | ||
accessibilityTraits.formUnion(.selected) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here you should remove selected and not add it: |
||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mats-claassen thanks, it done