Esqarrouth / EZSwiftExtensions

:smirk: How Swift standard types and classes were supposed to work.
MIT License
3k stars 381 forks source link

Add Swift 4.2 Support #495

Closed sunilprajapatisa closed 5 years ago

sunilprajapatisa commented 5 years ago

Checklist

EZSwiftExtensionsBot commented 5 years ago
6 Errors
:no_entry_sign: Making non-trivial change requires changelog entry! Please, set trivial change or add entry to changelog.
:no_entry_sign: Please, modify only one extension per pull request.
:no_entry_sign: Sources/EZSwiftFunctions.swift#L81: unexpected platform condition (expected ‘os’, ‘arch’, or ‘swift’)
#if targetEnvironment(simulator)
:no_entry_sign: Sources/EZSwiftFunctions.swift#L90: unexpected platform condition (expected ‘os’, ‘arch’, or ‘swift’)
#if targetEnvironment(simulator)
:no_entry_sign: Sources/ArrayExtensions.swift#L26: cannot convert value of type ‘CountableRange<Array.Index>’ (aka ‘CountableRange<Int>’) to expected argument type ‘Range<Int>’
let halfOpenClampedRange = Range(range).clamped(to: indices)
:no_entry_sign: Sources/ArrayExtensions.swift#L117: value of type ‘EnumeratedSequence<[Element]>’ has no member ‘compactMap’
return enumerated().compactMap { ($0.element == element) ? $0.offset : nil }

Generated by :no_entry_sign: Danger

Khalian commented 5 years ago

More minimalist version here : https://github.com/goktugyil/EZSwiftExtensions/pull/496.

Khalian commented 5 years ago

I am pulling this into swift4.2 for expediting my work.