Initializerswhitty.swiftdraw 0.18.1SwiftDraw
init(fileURL:options:)
Image.swift:137convenience init?(fileURL url: URL, options: SVG.Options = .default)
convenience init?(fileURL url: URL, options: SVG.Options = .default)
s9SwiftDraw3SVGC7fileURL7optionsACSg20FoundationEssentials0E0V_AC7OptionsVtcfc
What are these?2ECMY
import SwiftDraw
final class SVG
struct URL
A URL is a type that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data.
struct Options
convenience init?(data: Data, options: SVG.Options = .default)
convenience init?(named name: String, in bundle: Bundle = Bundle.main, options: SVG.Options = .default)
static func pdfData(fileURL url: URL, size: CGSize? = nil) throws -> Data
let size: CGSize
func jpegData(size: CGSize? = nil, scale: CGFloat = 1, compressionQuality quality: CGFloat = 1) -> Data?
func pdfData(size: CGSize? = nil) -> Data?
func pngData(size: CGSize? = nil, scale: CGFloat = 1) -> Data?
struct Insets