Refactoring

This commit is contained in:
Isaac
2024-06-12 23:04:04 +04:00
parent 1b1846dc63
commit 9a075fa39e
360 changed files with 1830 additions and 1713 deletions

View File

@@ -257,7 +257,7 @@ final class StatusView: UIView {
self.activeDurationTimer?.invalidate()
}
func update(strings: PresentationStrings, state: State, transition: Transition) -> CGSize {
func update(strings: PresentationStrings, state: State, transition: ComponentTransition) -> CGSize {
if let layoutState = self.layoutState, layoutState.strings === strings, layoutState.state == state {
return layoutState.size
}
@@ -302,7 +302,7 @@ final class StatusView: UIView {
}
}
private func updateInternal(strings: PresentationStrings, state: State, transition: Transition) -> CGSize {
private func updateInternal(strings: PresentationStrings, state: State, transition: ComponentTransition) -> CGSize {
let textString: String
var needsDots = false
var monospacedDigits = false