From 3f6f0bdc24c37d9b37430ae9f120e810af43e6e7 Mon Sep 17 00:00:00 2001 From: Pavan Kataria Date: Thu, 29 Aug 2019 02:51:55 +0100 Subject: [PATCH] bump podspec --- SwiftDataTables.podspec | 2 +- SwiftDataTables/Classes/SwiftDataTableLayout.swift | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SwiftDataTables.podspec b/SwiftDataTables.podspec index 511dfdc..7899fa4 100755 --- a/SwiftDataTables.podspec +++ b/SwiftDataTables.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'SwiftDataTables' - s.version = '0.8.0' + s.version = '0.8.1' s.summary = 'A Swift Data Table package that allows ordering, searching, and paging with extensible options.' s.swift_version = '5.0' diff --git a/SwiftDataTables/Classes/SwiftDataTableLayout.swift b/SwiftDataTables/Classes/SwiftDataTableLayout.swift index cf40921..176daad 100755 --- a/SwiftDataTables/Classes/SwiftDataTableLayout.swift +++ b/SwiftDataTables/Classes/SwiftDataTableLayout.swift @@ -28,10 +28,6 @@ class SwiftDataTableLayout: UICollectionViewFlowLayout { // self.collectionView?.isPrefetchingEnabled = false; } - override var flipsHorizontallyInOppositeLayoutDirection: Bool { - return dataTable.shouldSupportRightToLeftInterfaceDirection() ? UIApplication.shared.userInterfaceLayoutDirection == .rightToLeft : false - } - required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } @@ -178,6 +174,10 @@ class SwiftDataTableLayout: UICollectionViewFlowLayout { override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { return true } + + override var flipsHorizontallyInOppositeLayoutDirection: Bool { + return dataTable.shouldSupportRightToLeftInterfaceDirection() ? UIApplication.shared.userInterfaceLayoutDirection == .rightToLeft : false + } } //MARK: - Layout Attributes For Elements And Supplmentary Views