ExSwift icon indicating copy to clipboard operation
ExSwift copied to clipboard

Swift 3

Open ayn opened this issue 9 years ago • 8 comments

I know this is no longer maintained, but just submitting this PR so others can try my swift 3 branch if you need this stuff to continue to work. I’ll push to my branch if I have more fixes.

ayn avatar Sep 15 '16 03:09 ayn

A maintained one: https://github.com/goktugyil/EZSwiftExtensions

Esqarrouth avatar Sep 27 '16 15:09 Esqarrouth

Hi @ayn and thanks for your PR. I've encountered a few issues with it:

  • When I include it in in my project, Array.swift does not compile. There are several errors including a few of this:
/Vendor/ExSwift/ExSwift/Array.swift:228:26: Ambiguous use of 'subscript'
  • When I open you project and try to build it, I get this error:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

Have you migrated with Xcode 8.0?

carole-lavillonniere avatar Sep 29 '16 13:09 carole-lavillonniere

@carole-lavillonniere I just pushed an update, there might still be issues, but that's what I have in my current project so far. I've shelved swift 3 conversion for a bit to work on other stuff.

ayn avatar Sep 29 '16 16:09 ayn

@ayn Thank you! FYI flatten() does not seem to work anymore.

carole-lavillonniere avatar Sep 30 '16 09:09 carole-lavillonniere

@ayn Also, using capitalized results in an infinite loop:

public extension String {
    var capitalized: String { return self.capitalized }
}

carole-lavillonniere avatar Sep 30 '16 10:09 carole-lavillonniere

@carole-lavillonniere feel free to send me a PR and I'll test and merge.

ayn avatar Sep 30 '16 15:09 ayn

@ayn thanks for your ongoing effort to keep ExSwift working! I think it's the best solution out there and really sad it's not maintained anymore by the owner.

MattesGroeger avatar Oct 13 '16 14:10 MattesGroeger

Another alternative https://github.com/ankurp/Cent

ankurp avatar Jun 20 '17 13:06 ankurp