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