forked from LoopKit/LoopKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseHUDView.swift
More file actions
35 lines (28 loc) · 774 Bytes
/
BaseHUDView.swift
File metadata and controls
35 lines (28 loc) · 774 Bytes
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
//
// HUDView.swift
// Naterade
//
// Created by Nathan Racklyeft on 5/1/16.
// Copyright © 2016 Nathan Racklyeft. All rights reserved.
//
import UIKit
public typealias HUDViewOrderPriority = Int
@objc open class BaseHUDView: UIView {
@IBOutlet weak public var caption: UILabel! {
didSet {
caption?.text = "–"
// TODO: Setting this color in code because the nib isn't being applied correctly. Review at a later date.
caption?.textColor = .label
}
}
public var stateColors: StateColorPalette? {
didSet {
stateColorsDidUpdate()
}
}
open func stateColorsDidUpdate() {
}
open var orderPriority: HUDViewOrderPriority {
return 10
}
}