evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

Compile error in struct CosmosAccessibility and in struct StarLayer #127

Closed AdnanAfsari closed 5 years ago

AdnanAfsari commented 5 years ago

I Just added the CosmosDistrib.swift file in my project and i am getting the following errors.

inside the "struct CosmosAccessibilit" from the method "update" i am getting this error

'Type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'adjustable'

and inside the "struct StarLayer" from the method "create" i am getting error 'Type 'CALayerContentsGravity' (aka 'NSString') has no member 'resize'

evgenyneu commented 5 years ago

Thanks for reporting the issue, @AdnanAfsari. I've just created a new demo app in Xcode 10.1 and it compiled fine for me. Does the attached project work for you?

DemoCosmos.zip

AdnanAfsari commented 5 years ago

Thanks for solving my problem @evgenyneu .Yes it did and i also solved the issue in my project.I just had to update the language version to 4.2.

evgenyneu commented 5 years ago

I'm glad it worked! 👍