We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9266990 commit 61f1379Copy full SHA for 61f1379
Authenticator/Source/OTPProgressRing.swift
@@ -38,12 +38,19 @@ class OTPProgressRing: UIView {
38
private let backgroundRingLayer = RingLayer()
39
private let foregroundRingLayer = RingLayer()
40
41
+ // MARK: Initialize
42
+
43
+ override init(frame: CGRect) {
44
+ super.init(frame: frame)
45
+ configureSublayers()
46
+ }
47
48
required init?(coder aDecoder: NSCoder) {
49
super.init(coder: aDecoder)
50
51
}
52
- override init(frame: CGRect) {
- super.init(frame: frame)
53
+ private func configureSublayers() {
54
layer.addSublayer(backgroundRingLayer)
55
layer.addSublayer(foregroundRingLayer)
56
updateRingColor(tintColor)
0 commit comments