parent
5c07386863
commit
ae05f8aa4b
@ -1,26 +0,0 @@ |
||||
// |
||||
// FileManager+Extensions.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Laurent Morvillier on 22/04/2024. |
||||
// |
||||
|
||||
import Foundation |
||||
import LeStorage |
||||
|
||||
extension FileManager { |
||||
|
||||
func createDirectoryInDocuments(directoryName: String) { |
||||
let documentsDirectory = self.urls(for: .documentDirectory, in: .userDomainMask).first! |
||||
let directoryURL = documentsDirectory.appendingPathComponent(directoryName) |
||||
|
||||
if !self.fileExists(atPath: directoryURL.path) { |
||||
do { |
||||
try self.createDirectory(at: directoryURL, withIntermediateDirectories: true, attributes: nil) |
||||
} catch { |
||||
Logger.error(error) |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,18 @@ |
||||
// |
||||
// OffersHeaderView.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Laurent Morvillier on 23/04/2024. |
||||
// |
||||
|
||||
import SwiftUI |
||||
|
||||
struct OffersHeaderView: View { |
||||
var body: some View { |
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) |
||||
} |
||||
} |
||||
|
||||
#Preview { |
||||
OffersHeaderView() |
||||
} |
||||
Loading…
Reference in new issue