We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0185744 commit 21d4520Copy full SHA for 21d4520
SwiftDraw/Image.swift
@@ -77,9 +77,20 @@ public final class Image: NSObject {
77
public final class Image: NSObject {
78
public let size: CGSize
79
80
- init(svg: DOM.SVG) {
+ init(svg: DOM.SVG, options: Options) {
81
size = CGSize(width: svg.width, height: svg.height)
82
}
83
+
84
+ public struct Options: OptionSet {
85
+ public let rawValue: Int
86
+ public init(rawValue: Int) {
87
+ self.rawValue = rawValue
88
+ }
89
90
+ public static let hideUnsupportedFilters = Options(rawValue: 1 << 0)
91
92
+ public static let `default`: Options = []
93
94
95
96
public extension Image {
0 commit comments