Skip to content

Commit

Permalink
Merge pull request Carthage#2095 from Carthage/fix-range-at-shim
Browse files Browse the repository at this point in the history
`NSTextCheckingResult.range(at:)` is only available in Swift 4 (not in Swift 3.2)
  • Loading branch information
ikesyo committed Aug 3, 2017
2 parents e9a678c + a1f632e commit d530ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CarthageKit/FrameworkExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ extension Reactive where Base: URLSession {
}
}

#if !swift(>=3.2)
#if !swift(>=4)
extension NSTextCheckingResult {
internal func range(at idx: Int) -> NSRange {
return rangeAt(idx)
Expand Down

0 comments on commit d530ecd

Please sign in to comment.