Answer the question
In order to leave comments, you need to log in
How to add an extension to a file before saving?
Greetings
I would be grateful for your ideas
There is such a wonderful Data extension that downloads the file
extension Data {
func append(fileURL: URL) throws {
if let fileHandle = FileHandle(forWritingAtPath: fileURL.path) {
defer {
fileHandle.closeFile()
}
fileHandle.seekToEndOfFile()
fileHandle.write(self)
}
else {
try write(to: fileURL, options: .atomic)
}
}
}
Answer the question
In order to leave comments, you need to log in
There is no such style. It's just a hodgepodge of purple gradient and background images. Pretty mediocre, by the way.
Well, on top is content, the style of which, apparently, is inspired by cinematic ideas about the interfaces of the future. In any science fiction film, such goodness in bulk.
If you want to find something similar:
1. Upload the image to Google Image and look for similar ones
2. Go to pinterest and type in dark web ui or something like that - then you can play with the suggested queries
Watch and create something similar. How to understand the question: "how to create"?
In the line
try write(to: fileURL, options: .atomic)
Try to change the URL , add a puff with the name and extension of the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question