Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions SwiftDraw/Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,18 @@ public extension SVG {
public var bottom: CGFloat
public var right: CGFloat

public init(
top: CGFloat = 0,
left: CGFloat = 0,
bottom: CGFloat = 0,
right: CGFloat = 0
) {
self.top = top
self.left = left
self.bottom = bottom
self.right = right
}

public static let zero = Insets(top: 0, left: 0, bottom: 0, right: 0)
}
}