Skip to content

Commit

Permalink
Add previewDevice(_ value: Device) overload
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
finestructure committed Feb 11, 2020
1 parent bf3b869 commit 728ceef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Gala/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,10 @@ extension Array where Element == Device {
public static var watches: [Element] { Device.watches }
public static var tvs: [Element] { Device.tvs }
}


extension View {
public func previewDevice(_ value: Device) -> some View {
return self.previewDevice(value.previewDevice)
}
}

0 comments on commit 728ceef

Please sign in to comment.