Git Product home page Git Product logo

equator's Introduction

Equator

Swift4 Platform License

Equator is useful extension for XCode IDE. This tool has a really simple mechanism, that allows to generate fully implemented Equatable protocol extensions for swift objects just in two clicks.

Installation ๐ŸŽฌ

  1. Download and extract .zip file containing latest release from the releases tab of the repo
  2. Drag Equator.app to your Applications folder and run the app
  3. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension
  4. Restart the Xcode

Usage ๐Ÿ„โ€โ™‚๏ธ

Select all lines of target class/struct/enum body.

struct User {                <- Start of selection
    public var name: String
    public var id: Int
}                            <- End of selection

Go to Editor -> Equator -> Generate Swift Equatable and you'll achieve:

extension User: Equatable {
    static func == (lhs: User, rhs: User) -> Bool {
        return lhs.name == rhs.name &&
               lhs.id == rhs.id
    }
}

Author โœ๏ธ

Dmitry Frishbuter, [email protected]

License ๐Ÿ“ƒ

Equator is available under the MIT license. See the LICENSE file for more info.

equator's People

Stargazers

Sokursoft avatar Anton avatar Nikita Ermolenko avatar  avatar Nikita Zatsepilov avatar  avatar Evgeniy Nagibin avatar

Watchers

Evgeniy Nagibin avatar Dmitry Frishbuter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.