Swift Spaceship Operator for macOS


Contains a Swift file to add the spaceship operator ( <=> ) to a project

6.0 <=> 17.0 // Outputs -1

9001.0 <=> 9000.0 // Outputs 1

4.0 <=> 4.0 // Outputs 0

Works on iOS and OS X but the Xcode project is set up as an OS X command line tool.

License: MIT

Language: Swift

Platform: macOS

Sponsored with ❤️ by Instabug
Instabug: Understand how your app is doing with real-time contextual insights from your users

Get all the logs you need and fix bugs, crashes, and other issues in minutes instead of days. With Instabug you will automatically receive device data, network logs, and reproduction steps with every bug and crash report. It only takes a line of code to integrate and is perfect for teams that are now working remotely. See more detailed features comparison and try Instabug for free here.