From 10fe28855fe480ace719f6b3d4916166e8bedb4b Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 23 May 2017 13:28:23 +0200 Subject: [PATCH] Swift 3.1 and added @escaping to PageLoader --- Sourcery/Sourcery.xcodeproj/project.pbxproj | 4 ++-- Sourcery/Sourcery/Classes/Sourcery/PagedSourcery.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sourcery/Sourcery.xcodeproj/project.pbxproj b/Sourcery/Sourcery.xcodeproj/project.pbxproj index 20d9230..cce6386 100644 --- a/Sourcery/Sourcery.xcodeproj/project.pbxproj +++ b/Sourcery/Sourcery.xcodeproj/project.pbxproj @@ -446,7 +446,7 @@ PRODUCT_NAME = Sourcery; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0.1; + SWIFT_VERSION = 3.0; }; name = Debug; }; @@ -466,7 +466,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.nodes.Sourcery; PRODUCT_NAME = Sourcery; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0.1; + SWIFT_VERSION = 3.0; }; name = Release; }; diff --git a/Sourcery/Sourcery/Classes/Sourcery/PagedSourcery.swift b/Sourcery/Sourcery/Classes/Sourcery/PagedSourcery.swift index 1bc2e1b..c27b3aa 100644 --- a/Sourcery/Sourcery/Classes/Sourcery/PagedSourcery.swift +++ b/Sourcery/Sourcery/Classes/Sourcery/PagedSourcery.swift @@ -11,7 +11,7 @@ import PagedArray open class PagedSourcery: NSObject, TableController { - public typealias PageLoader = ((_ page: Int, _ operationQueue: OperationQueue, _ completion: ((_ totalCount: Int, _ data: [DataType]) -> Void)) -> Void) + public typealias PageLoader = ((_ page: Int, _ operationQueue: OperationQueue, _ completion: @escaping ((_ totalCount: Int, _ data: [DataType]) -> Void)) -> Void) public typealias SelectionHandler = ((_ index: Int, _ object: DataType) -> Void) public typealias CellConfigurator = ((_ cell: CellType, _ index: Int, _ object: DataType) -> Void) public typealias HeaderConfigurator = ((UITableViewHeaderFooterView?) -> Void)