Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
advanc3dUA committed Dec 9, 2023
1 parent 0387319 commit 598e6a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p align="center">
<img src="https://img.shields.io/badge/iOS-16.0%2B-blueviolet" alt="iOS Version">
<img src="https://img.shields.io/badge/Version-1.21-blue" alt="Game Version">
<img src="https://img.shields.io/badge/Version-1.22-blue" alt="Game Version">
<img src="https://img.shields.io/badge/License-CC_BY--NC_4.0-darkgreen.svg" alt="License">
</p>
<p align="center">
Expand Down
10 changes: 6 additions & 4 deletions WohnungSuchen/Views/OptionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ final class OptionsView: UIView {
Int(extractFrom: textValue, defaultValue: optionsSubject.value.updateTime)
}
.scan(nil) { previous, current in
if current < 30 {
self.timerUpdateTextField.text = "30"
if previous == nil || previous == 30 {
let valueString = "11110"
guard let valueInt = Int(valueString, radix: 2) else { return nil }
if current < valueInt {
self.timerUpdateTextField.text = String(valueInt)
if previous == nil || previous == valueInt {
return nil
} else {
return 30
return valueInt
}
} else {
return current
Expand Down

0 comments on commit 598e6a5

Please sign in to comment.