eggswift / ESTabBarController

:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie!
MIT License
5.17k stars 578 forks source link

Error: Value of type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'union' in "internal extension ESTabBar" #192

Closed testest1 closed 2 years ago

testest1 commented 5 years ago

Greetings!

Yesterday I did update my cocoapods and my project is no longer compile because of an error in ESTabBarController pod.

The issue is pretty trivial and is related to container.accessibilityTraits access Could you please update the pod as we can't afford to do that because of CI flow integrated to our development cycle.

Here are instructions of where the exact issue is:

File: ESTabBar.swift Line 247: internal extension ESTabBar / Actions / { Line 415: container.accessibilityTraits = container.accessibilityTraits.union(.selected) Error message: Value of type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'union'

Thank you in advance and hope for the quick fix as its really blocks us. Best Regards, Yegor

TLShaunAng commented 5 years ago

Hi we are having the same issue please fix.

nibaotiao commented 5 years ago

同样的问题

eggswift commented 5 years ago

@testest1 @TLShaunAng using swift5?

testest1 commented 5 years ago

Hey guys, There was an issue related with the swift version for the pods It should be swift 5, same as the swift version in project To be efficient, please set up the swift version for pods right in podfile

xcxshbsz commented 5 years ago

@eggswift @testest1 It seems not to solve the problem in my project. I tried swift 4 and 5. I'm a novice:)

cavanlee commented 5 years ago

I have the same issue.

JaveedIshaq commented 5 years ago

Hi provide any solution for this issue, i am facing the same problem

Jijingcheng commented 5 years ago

the same

ymjycn commented 5 years ago

container.accessibilityTraits = container.accessibilityTraits.union(.selected) ->container.accessibilityTraits = UIAccessibilityTraitSelected is work to me

VoiCoi97 commented 5 years ago

container.accessibilityTraits = container.accessibilityTraits.union(.selected) ->container.accessibilityTraits = UIAccessibilityTraitSelected is work to me

Thank you! I tried and succeeded

jcooperation0137 commented 4 years ago

@ymjycn's solution works for me. I hope the support team release the fixed version.

tomblah commented 4 years ago

I changed the build settings for the ESTabBarController-swift pod from Swift 4 to Swift 4.2 which got it to compile.

i.e. Pods -> Targets -> ESTabBarController-swift -> Build Settings -> Swift Compiler - Language -> Swift Language Version -> change to Swift 4.2.

(NB: I haven't tried Swift 5)