evgenyneu / Cosmos

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

Custom font type #124

Open jonathansolorzn opened 5 years ago

jonathansolorzn commented 5 years ago

It would be helpful to allow us using IBDesignable to set a custom font type for the text.

evgenyneu commented 5 years ago

Thanks for the great suggestion. Is it possible to use a UIFont variable as an IBDesignable?

Syed-Sahab commented 5 years ago

It Give 3 issues how i should handle this.

Type 'UIFont' has no member 'TextStyle' Type 'NSAttributedString' has no member 'Key' *Type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'adjustable'

evgenyneu commented 5 years ago

@Syed-Sahab, thanks for reporting. Which Xcode and Cosmos versions are you using?

Syed-Sahab commented 5 years ago

@Syed-Sahab, thanks for reporting. Which Xcode and Cosmos versions are you using?

@evgenyneu Thanks for reply, I am currently using xcode 9.3 & cosmos 'Cosmos', '~> 17.0' versions.

evgenyneu commented 5 years ago

@Syed-Sahab, try using version 16 of Cosmos instead, as described here. The latest version 17 has new Swift 4.2 syntax and is meant to be used in Xcode 10.

Syed-Sahab commented 5 years ago

Thanks alot @Evgenii Neumerzhitckii..

On Thu, Nov 1, 2018 at 1:15 AM Evgenii Neumerzhitckii < notifications@github.com> wrote:

@Syed-Sahab https://github.com/Syed-Sahab, try using version 16 of Cosmos instead, as described here https://github.com/evgenyneu/Cosmos/wiki/Legacy-Swift-versions. The latest version 17 has new Swift 4.2 syntax and is meant to be used in Xcode 10.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/evgenyneu/Cosmos/issues/124#issuecomment-434831454, or mute the thread https://github.com/notifications/unsubscribe-auth/ARP8ozvL2rXnXH76ApuXMiEDxhcZW1icks5uqgTygaJpZM4XHPDf .