BaseHUDView.swift 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // HUDView.swift
  3. // Naterade
  4. //
  5. // Created by Nathan Racklyeft on 5/1/16.
  6. // Copyright © 2016 Nathan Racklyeft. All rights reserved.
  7. //
  8. import UIKit
  9. public typealias HUDViewOrderPriority = Int
  10. @objc open class BaseHUDView: UIView {
  11. @IBOutlet weak public var caption: UILabel! {
  12. didSet {
  13. caption?.text = "–"
  14. // TODO: Setting this color in code because the nib isn't being applied correctly. Review at a later date.
  15. caption?.textColor = .label
  16. }
  17. }
  18. public var stateColors: StateColorPalette? {
  19. didSet {
  20. stateColorsDidUpdate()
  21. }
  22. }
  23. open func stateColorsDidUpdate() {
  24. }
  25. open var orderPriority: HUDViewOrderPriority {
  26. return 10
  27. }
  28. }