add: delete markdown renderer function to remove it when it’s false

This commit is contained in:
Seyed Mojtaba Hosseini Zeidabadi 2022-11-22 13:16:01 +03:30
parent f9db8c5449
commit cafbf2dac3

View File

@ -46,6 +46,11 @@ public class FileWriter {
try writePlist([:], path: path.string)
}
public func deleteMarkdownRendererPlist() throws {
let path = project.defaultProjectPath + ".xcodesamplecode.plist"
try path.delete()
}
private func writePlist(_ plist: [String: Any], path: String) throws {
let path = project.basePath + path
if path.exists, let data: Data = try? path.read(),