Skip to content

Commit

Permalink
No need for custom bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 20, 2024
1 parent 61006c5 commit 0192f45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions Sources/Defaults/Defaults+Bridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ extension Defaults {
}
}

@available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 9.0, visionOS 1.0, *)
extension Defaults {
public struct ColorResolvedBridge: CodableBridge {
public typealias Value = Color.Resolved
}
}

extension Defaults {
public struct RawRepresentableBridge<Value: RawRepresentable>: Bridge {
public typealias Value = Value
Expand Down
4 changes: 1 addition & 3 deletions Sources/Defaults/Defaults+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ extension Color: Defaults.Serializable {
}

@available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 9.0, visionOS 1.0, *)
extension Color.Resolved: Defaults.Serializable {
public static let bridge = Defaults.ColorResolvedBridge()
}
extension Color.Resolved: Defaults.Serializable {}

extension Range: Defaults.RangeSerializable where Bound: Defaults.Serializable {
public static var bridge: Defaults.RangeBridge<Range> { Defaults.RangeBridge() }
Expand Down

0 comments on commit 0192f45

Please sign in to comment.