1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-10-26 13:01:25 +03:00

Swift 3.0 conversion

This commit is contained in:
Victor Sukochev 2016-09-27 20:23:39 +06:00
parent bed4386799
commit 70d7c7dea9
4 changed files with 11 additions and 11 deletions

View File

@ -2,12 +2,4 @@ use_frameworks!
target 'Example' do
pod 'Macaw', :path => '../'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
end

View File

@ -17,6 +17,6 @@ SPEC CHECKSUMS:
RxSwift: 0823e8d7969c23bfa9ddfb2afa4881e424a1a710
SWXMLHash: e0f6935971f01b06fb228cf435510d998ecde647
PODFILE CHECKSUM: 151f0be871736eddfeeec5cda1747f8a81e679ef
PODFILE CHECKSUM: 228ebdda766cd7e558e36c929c03097c7aedb2ed
COCOAPODS: 1.1.0.rc.2

View File

@ -29,7 +29,7 @@ open class Animation {
return self
}
open func onComplete(_: (() -> ())) -> Animation {
open func onComplete(_: @escaping (() -> ())) -> Animation {
return self
}
}

View File

@ -80,6 +80,14 @@ extension ObservableArray: Indexable {
public var endIndex: Int {
return elements.endIndex
}
public func formIndex(after i: inout Int) {
elements.formIndex(after: &i)
}
public func index(after i: Int) -> Int {
elements.index(after: i)
}
}
extension ObservableArray: RangeReplaceableCollection {