Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.
Switch branches/tags
Nothing to show
Clone or download
Latest commit e0572a3 Oct 29, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Equatable.xcodeproj Project configuration fixes Oct 23, 2016
Equatable Rename everything from Equitable to Equatable Oct 13, 2016
EquatableExtension bug fixes Oct 23, 2016
Resources Update resource Oct 23, 2016
README.md Update README.md Oct 29, 2016

README.md

#Swift Equatable Generator

Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.

##Features:

  • generates Equatable conformance for struct or class

##Limitations:

  • it's only available for Xcode 8.* and macOS Sierra

##TODO:

  • potential bug fixes
  • add support for enum

##Example: Demo

Installation

  1. Open Equitable.xcodeproj
  2. Enable target signing for both the Application and the Source Code Extension using your own developer ID
  3. Product > Archive
  4. Right click archive > Show in Finder
  5. Right click archive > Show Package Contents
  6. Open Products, Applications
  7. Equitable.app and exit.
  8. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension
  9. The menu-item should now be available from Xcode's Editor menu.