pNre / ExSwift

A set of Swift extensions for standard types and classes.
Other
3.38k stars 318 forks source link

Swift 3 #153

Open ayn opened 8 years ago

ayn commented 8 years ago

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.

Esqarrouth commented 8 years ago

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

carole-lavillonniere commented 8 years ago

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

/Vendor/ExSwift/ExSwift/Array.swift:228:26: Ambiguous use of 'subscript'
“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?

ayn commented 8 years ago

@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.

carole-lavillonniere commented 8 years ago

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

carole-lavillonniere commented 8 years ago

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

public extension String {
    var capitalized: String { return self.capitalized }
}
ayn commented 8 years ago

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

MattesGroeger commented 8 years ago

@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.

ankurp commented 7 years ago

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