Helper+Extensions.swift 406 B

1234567891011121314151617
  1. import Foundation
  2. import SwiftUI
  3. extension Binding where Value == Int {
  4. func doubleBinding() -> Binding<Double> {
  5. Binding<Double>(
  6. get: { Double(self.wrappedValue) },
  7. set: { self.wrappedValue = Int($0) }
  8. )
  9. }
  10. }
  11. extension Color {
  12. static let bgDarkBlue = Color("Background_DarkBlue")
  13. static let bgDarkerDarkBlue = Color("Background_DarkerDarkBlue")
  14. }