Skip to content
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

Merged
merged 2 commits into from
Sep 28, 2018
Merged

updated to Swift 4.2 and added swift version to podspec #617

merged 2 commits into from
Sep 28, 2018

Conversation

alexanderkhitev
Copy link
Contributor

No description provided.

Dagogatc added a commit to Dagogatc/XLPagerTabStrip that referenced this pull request Sep 21, 2018
@alexanderkhitev
Copy link
Contributor Author

Hello @mtnbarreto ! Could you check this pull request?

@70m3n
Copy link

70m3n commented Sep 26, 2018

I would also like to see this merge come through.

@Climbatize
Copy link
Contributor

I decided to temporarily use Alexander repo directly, you can do it like this if you want :

pod 'XLPagerTabStrip', git: 'https://github.com/alexanderkhitev/XLPagerTabStrip', branch: 'master'

Copy link
Member

@mats-claassen mats-claassen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I think there are some minor issues which I commented.

@@ -33,8 +33,7 @@ open class ButtonBarViewCell: UICollectionViewCell {
super.init(coder: aDecoder)

isAccessibilityElement = true
accessibilityTraits |= UIAccessibilityTraitButton
accessibilityTraits |= UIAccessibilityTraitHeader
accessibilityTraits = [.button, .header]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use the insert or formUnion function here. The previous logic was adding the two traits to whatever was already in accessibilityTraits.

@@ -44,9 +43,9 @@ open class ButtonBarViewCell: UICollectionViewCell {
set {
super.isSelected = newValue
if (newValue) {
accessibilityTraits |= UIAccessibilityTraitSelected
accessibilityTraits = [.selected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again. use accessibilityTraits.insert(.selected)

} else {
accessibilityTraits &= ~UIAccessibilityTraitSelected
accessibilityTraits.formUnion(.selected)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here you should remove selected and not add it: accessibilityTraits.remove(.selected)

@@ -349,8 +349,7 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa
}
cell.isAccessibilityElement = true
cell.accessibilityLabel = cell.label.text
cell.accessibilityTraits |= UIAccessibilityTraitButton
cell.accessibilityTraits |= UIAccessibilityTraitHeader
cell.accessibilityTraits = [.button, .header]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as below

Copy link
Contributor Author

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

@mats-claassen mats-claassen merged commit 56acdd9 into xmartlabs:master Sep 28, 2018
bonokite pushed a commit to bonokite/XLPagerTabStrip that referenced this pull request Oct 9, 2019
estromlund pushed a commit to fathomtel/XLPagerTabStrip that referenced this pull request Jul 20, 2020
mkupetskii pushed a commit to trading-point/XLPagerTabStrip that referenced this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants