tkach / PinCodeTextField

MIT License
260 stars 100 forks source link

Swift 4.2 and Xcode 10 #40

Closed shoaibnomani closed 5 years ago

shoaibnomani commented 6 years ago

Can you please update this library for swift 4.2, Xcode 10 and iOS 12?

shoaibnomani commented 6 years ago

Is anyone working on it?

klemenzagar91 commented 6 years ago

Looks like the library is already written in swift 4. For my project, the solution was to click on Pods in the xcode navigation and then select target PinCodeTextField. And open build settings for this target.

There you can search for Swift Language version and I needed to set it to Swift 4.

screen shot 2018-10-09 at 22 14 48

If your project is written in swift, the app should now compile just fine.

For my case I have a project written in objective c and I got another error after solving the first one. And this second solution I found here https://stackoverflow.com/questions/50096025/it-gives-errors-when-using-swift-static-library-with-objective-c-project/50495316#50495316

RomanPodymov commented 5 years ago

Hello @shoaibnomani PinCodeTextField 0.2 supports Swift 5, you can close the issue.

shoaibnomani commented 5 years ago

Hello @shoaibnomani PinCodeTextField 0.2 supports Swift 5, you can close the issue.

Thanks. Closed.