ContactColorOption.swift 679 B

12345678910111213141516171819202122232425262728
  1. //
  2. // ContactColorOption.swift
  3. // LoopFollow
  4. //
  5. // Created by Jonas Björkert on 2025-02-22.
  6. // Copyright © 2025 Jon Fawcett. All rights reserved.
  7. //
  8. import UIKit
  9. enum ContactColorOption: String, CaseIterable {
  10. case red, blue, cyan, green, yellow, orange, purple, white, black
  11. var uiColor: UIColor {
  12. switch self {
  13. case .red: return .red
  14. case .blue: return .blue
  15. case .cyan: return .cyan
  16. case .green: return .green
  17. case .yellow: return .yellow
  18. case .orange: return .orange
  19. case .purple: return .purple
  20. case .white: return .white
  21. case .black: return .black
  22. }
  23. }
  24. }