Generate tag overview, add file action
This commit is contained in:
@ -4,6 +4,10 @@ class Item: ObservableObject, Identifiable {
|
||||
|
||||
unowned let content: Content
|
||||
|
||||
/// A dummy property to force views to update when properties change
|
||||
@Published
|
||||
private var changeToggle = false
|
||||
|
||||
@Published
|
||||
var id: String
|
||||
|
||||
@ -12,6 +16,10 @@ class Item: ObservableObject, Identifiable {
|
||||
self.id = id
|
||||
}
|
||||
|
||||
func didChange() {
|
||||
changeToggle.toggle()
|
||||
}
|
||||
|
||||
func makeCleanAbsolutePath(_ path: String) -> String {
|
||||
"/" + makeCleanRelativePath(path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user