File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public struct ButtonBarPagerTabStripSettings {
56
56
public var buttonBarItemFont = UIFont . systemFont ( ofSize: 18 )
57
57
public var buttonBarItemLeftRightMargin : CGFloat = 8
58
58
public var buttonBarItemTitleColor : UIColor ?
59
- @available ( * , deprecated: 7.0 . 0 ) public var buttonBarItemsShouldFillAvailiableWidth : Bool {
59
+ @available ( * , deprecated) public var buttonBarItemsShouldFillAvailiableWidth : Bool {
60
60
set {
61
61
buttonBarItemsShouldFillAvailableWidth = newValue
62
62
}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ open class PagerTabStripViewController: UIViewController, UIScrollViewDelegate {
172
172
}
173
173
174
174
open func moveTo( viewController: UIViewController , animated: Bool = true ) {
175
- moveToViewController ( at: viewControllers. index ( of: viewController) !, animated: animated)
175
+ moveToViewController ( at: viewControllers. firstIndex ( of: viewController) !, animated: animated)
176
176
}
177
177
178
178
// MARK: - PagerTabStripDataSource
@@ -203,7 +203,7 @@ open class PagerTabStripViewController: UIViewController, UIScrollViewDelegate {
203
203
}
204
204
205
205
open func offsetForChild( viewController: UIViewController ) throws -> CGFloat {
206
- guard let index = viewControllers. index ( of: viewController) else {
206
+ guard let index = viewControllers. firstIndex ( of: viewController) else {
207
207
throw PagerTabStripError . viewControllerOutOfBounds
208
208
}
209
209
return offsetForChild ( at: index)
Original file line number Diff line number Diff line change 231
231
TargetAttributes = {
232
232
28F8287C1C494B2C00330CF4 = {
233
233
CreatedOnToolsVersion = 7.2;
234
- LastSwiftMigration = 0900 ;
234
+ LastSwiftMigration = 1020 ;
235
235
ProvisioningStyle = Manual;
236
236
};
237
237
28F828861C494B2C00330CF4 = {
238
238
CreatedOnToolsVersion = 7.2;
239
- LastSwiftMigration = 0800 ;
239
+ LastSwiftMigration = 1020 ;
240
240
};
241
241
};
242
242
};
469
469
PRODUCT_NAME = "$(TARGET_NAME)";
470
470
PROVISIONING_PROFILE_SPECIFIER = "";
471
471
SKIP_INSTALL = YES;
472
- SWIFT_SWIFT3_OBJC_INFERENCE = Default;
473
- SWIFT_VERSION = 4.2;
472
+ SWIFT_VERSION = 5.0;
474
473
};
475
474
name = Debug;
476
475
};
495
494
PRODUCT_NAME = "$(TARGET_NAME)";
496
495
PROVISIONING_PROFILE_SPECIFIER = "";
497
496
SKIP_INSTALL = YES;
498
- SWIFT_SWIFT3_OBJC_INFERENCE = Default;
499
- SWIFT_VERSION = 4.2;
497
+ SWIFT_VERSION = 5.0;
500
498
};
501
499
name = Release;
502
500
};
509
507
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.XLPagerTabStripTests;
510
508
PRODUCT_NAME = "$(TARGET_NAME)";
511
509
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
512
- SWIFT_VERSION = 4.2 ;
510
+ SWIFT_VERSION = 5.0 ;
513
511
};
514
512
name = Debug;
515
513
};
521
519
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
522
520
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.XLPagerTabStripTests;
523
521
PRODUCT_NAME = "$(TARGET_NAME)";
524
- SWIFT_VERSION = 4.2 ;
522
+ SWIFT_VERSION = 5.0 ;
525
523
};
526
524
name = Release;
527
525
};
You can’t perform that action at this time.
0 commit comments