form
This commit is contained in:
1 parent
f2487af52b
commit
04836cc58a
1 file changed
+2
-8
@@ -2,15 +2,9 @@ private func hcmColumnCount(
|
||||
width: Float,
|
||||
height: Float
|
||||
) -> Int {
|
||||
#if os(iOS)
|
||||
if height > width {
|
||||
return 3
|
||||
}
|
||||
#endif
|
||||
let reflowRatio: Float = 1.75
|
||||
if width >= height * reflowRatio {
|
||||
if width >= height * 1.75 {
|
||||
return 8
|
||||
} else if height >= width * reflowRatio {
|
||||
} else if height >= width * 2.25 {
|
||||
return 2
|
||||
} else if height >= width * 1.5 {
|
||||
return 3
|
||||
|
||||
Reference in new issue
Block a user