Swift definitions for structures, enumerations and functions defined in MS-WMF
Add the following line to your project's SwiftPM dependencies:
.package(url: "https://github.com/hughbe/WmfReader", from: "1.0.0"),
import WmfReader
let data = Data(contentsOfFile: "<path-to-file>.wmf")!
let file = try WmfFile(data: data)
try file.enumerateRecords { record in
print("Record: \(record)")
return .continue
}