Attempt to fix jumpy pull-to-refresh behaviour, revamped settings page to suit the iOS design better

This commit is contained in:
Deniz Duezgoeren
2019-09-28 12:46:17 +02:00
parent b4f3b2f92f
commit 40250ecc7b
15 changed files with 516 additions and 426 deletions
+6 -17
View File
@@ -133,28 +133,17 @@ class DataFetcher {
private func assignRanking(for group: String, _ isPSA: Bool) -> Int {
if isPSA {
return -31
return -102
}
if group.count > 0 {
let a = String(group[...group.startIndex])
if self.checkStringForArray(s: a, checking: juniors) == true {
return -30
} else if a == "1" || a == "2" {
if group.count > 1 {
let b = Int(String(group[group.index(group.startIndex, offsetBy: 1)...group.index(group.startIndex, offsetBy: 1)]))
if b == nil {
return 0
} else {
return (b! - (b! * 2))
}
} else {
return 0
}
if group.count > 1, let b = Int(String(group[group.index(group.startIndex, offsetBy: 0)...group.index(group.startIndex, offsetBy: 1)])) {
return -b
} else if self.checkStringForArray(s: a, checking: juniors) == true {
return -101
} else {
return -29
return -100
}
}