Skip to content

Instantly share code, notes, and snippets.

@tifoaudii
Created June 17, 2023 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tifoaudii/155c7b8f92d2b4a5db3156bd1b55e3da to your computer and use it in GitHub Desktop.
Save tifoaudii/155c7b8f92d2b4a5db3156bd1b55e3da to your computer and use it in GitHub Desktop.
let fileName: String = "TokenExtension.swift"
let destinationUrl = "\(FileManager.default.currentDirectoryPath)/\(fileName)"
do {
try tokenExtension.write(toFile: destinationUrl, atomically: true, encoding: .utf8)
print("Token Extension is successfully generated:\n \(destinationUrl)\n")
} catch {
print(error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment