mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-31 14:33:30 +02:00
19 lines
393 B
Swift
19 lines
393 B
Swift
//
|
|
// Data++.swift
|
|
// Memola
|
|
//
|
|
// Created by Dscyre Scotti on 6/16/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Data {
|
|
func getBookmarkURL() -> URL? {
|
|
var isStale = false
|
|
guard let bookmarkURL = try? URL(resolvingBookmarkData: self, options: .withoutUI, relativeTo: nil, bookmarkDataIsStale: &isStale) else {
|
|
return nil
|
|
}
|
|
return bookmarkURL
|
|
}
|
|
}
|