xmartlabs / Bender

Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.
https://xmartlabs.github.io/Bender/
MIT License
1.79k stars 90 forks source link

Migrate to Swift 4.1 #97

Closed mats-claassen closed 6 years ago

mats-claassen commented 6 years ago

Added cleanMap which basically resolves to either flatMap or compactMap depending on Swift version

bryant1410 commented 6 years ago

Shouldn't .swift-version be updated? And is there an automatic way to check this?

mats-claassen commented 6 years ago

That is supposedly only used when cocoapods updates a pod but as this is a minor version change and the project still builds in Swift 4.0 it is preferable to leave it as is. Also Swift4.1 is in beta. Maybe we should wait before we merge this