-
Notifications
You must be signed in to change notification settings - Fork 895
/
Copy pathAuth_Loading.swift
44 lines (35 loc) · 1.02 KB
/
Auth_Loading.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Auth_Loading.swift
// Telegram
//
// Created by Mike Renoir on 14.02.2022.
// Copyright © 2022 Telegram. All rights reserved.
//
import Foundation
import TGUIKit
final class Auth_LoadingView: View {
private let progressView = ProgressIndicator(frame: NSMakeRect(0, 0, 40, 40))
required init(frame frameRect: NSRect) {
super.init(frame: frameRect)
addSubview(progressView)
}
override func updateLocalizationAndTheme(theme: PresentationTheme) {
super.updateLocalizationAndTheme(theme: theme)
progressView.progressColor = theme.colors.text
}
override func layout() {
super.layout()
progressView.center()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
final class Auth_Loading : GenericViewController<Auth_LoadingView> {
override init(frame frameRect: NSRect) {
super.init(frame: frameRect)
}
override func viewDidLoad() {
super.viewDidLoad()
}
}