kmcgill88 / McPicker-iOS

McPicker is a customizable, closure driven UIPickerView drop-in solution with animations that is rotation ready.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pod Update to version 0.5.1 Error on setTitleTextAttributes[.font

fabriciomasiero opened this issue · comments

Hi, I updated the pod because I had issue #20 . But after updating and building my project, a compilation error occurred, is it normal? thank you

captura de tela 2017-10-11 as 17 14 40

Hmm, when I published it was fine for me. What version of swift are you using? I was using 4.

My project are using Swift 4, but i dont updated the swift syntax in my pods project.

Summing up: My project = swift 4
Pods project = swift 3.1

I did update the pod for swift 4. I think you must tell Xcode McPicker uses swift 4 and you can leave the rest as 3.

Just tested this out and confirm my suspicion. McPicker needs to compile with Swift 4 and you must have it set to compile with Swift 3. Just change the toggle in your project and it should be good to go! A picture is worth 💯 words.

swift4

I will update the README to outline this. Thanks for reporting! 🥇 Please let me know if this does the trick for ya.

WORKS !!!! Thanks you very much @kmcgill88