Skip to content

Commit 5584eff

Browse files
committed
Specify identation by spaces for the project. Change tabs to spaces for the new code
1 parent cab058e commit 5584eff

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

SwiftyCollectionViewFlowLayout/Sources/SwiftyCollectionViewFlowLayout.swift

+11-11
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public final class SwiftyCollectionViewFlowLayout: UICollectionViewLayout {
4646
invalidateLayout()
4747
}
4848
}
49-
50-
private let shouldFlipForRTL: Bool //If your subclass’s implementation overrides this property to return true, a UICollectionView showing this layout will ensure its bounds.origin is always found at the leading edge, flipping its coordinate system horizontally if necessary.
51-
public override var flipsHorizontallyInOppositeLayoutDirection: Bool {
52-
shouldFlipForRTL
53-
}
49+
50+
private let shouldFlipForRTL: Bool //If your subclass’s implementation overrides this property to return true, a UICollectionView showing this layout will ensure its bounds.origin is always found at the leading edge, flipping its coordinate system horizontally if necessary.
51+
public override var flipsHorizontallyInOppositeLayoutDirection: Bool {
52+
shouldFlipForRTL
53+
}
5454

5555
private var prepareActions: PrepareActions = []
5656

@@ -60,18 +60,18 @@ public final class SwiftyCollectionViewFlowLayout: UICollectionViewLayout {
6060
}()
6161

6262
public override init() {
63-
shouldFlipForRTL = false
63+
shouldFlipForRTL = false
6464
super.init()
6565
}
6666

6767
required public init?(coder: NSCoder) {
6868
fatalError("init(coder:) has not been implemented")
6969
}
70-
71-
public init(flipForRTL: Bool) {
72-
shouldFlipForRTL = flipForRTL
73-
super.init()
74-
}
70+
71+
public init(flipForRTL: Bool) {
72+
shouldFlipForRTL = flipForRTL
73+
super.init()
74+
}
7575
}
7676

7777
extension SwiftyCollectionViewFlowLayout {

SwiftyCollectionViewFlowLayout/SwiftyCollectionViewFlowLayout.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
8565A820298BF50B00FFE2FD /* Products */,
103103
);
104104
sourceTree = "<group>";
105+
usesTabs = 0;
105106
};
106107
8565A820298BF50B00FFE2FD /* Products */ = {
107108
isa = PBXGroup;

iOS Example/iOS Example.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
D22885B3094F01A3F4CF85E0 /* Frameworks */,
152152
);
153153
sourceTree = "<group>";
154+
usesTabs = 0;
154155
};
155156
8565A835298BF57300FFE2FD /* Products */ = {
156157
isa = PBXGroup;

iOS Example/iOS Example/Demo/IrregularTagList/IrregularTagListViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class IrregularTagListViewController: UIViewController {
3434
}
3535

3636
private lazy var layout: SwiftyCollectionViewFlowLayout = {
37-
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
37+
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
3838
layout.scrollDirection = scrollDirection
3939
return layout
4040
}()

iOS Example/iOS Example/Demo/Row/RowViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public final class RowViewController: UIViewController {
1414
private var dataSource: [RowSectionModel] = []
1515

1616
private lazy var layout: SwiftyCollectionViewFlowLayout = {
17-
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
17+
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
1818
layout.scrollDirection = .vertical
1919
return layout
2020
}()

iOS Example/iOS Example/Demo/WaterFlowList/WaterFlowListViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class WaterFlowListViewController: UIViewController {
3434
}
3535

3636
private lazy var layout: SwiftyCollectionViewFlowLayout = {
37-
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
37+
let layout = SwiftyCollectionViewFlowLayout(flipForRTL: true)
3838
layout.scrollDirection = scrollDirection
3939
return layout
4040
}()

0 commit comments

Comments
 (0)