Make progress on iOS SidebarViewController.

This commit is contained in:
Brent Simmons
2025-02-08 22:05:10 -08:00
parent e417f782f9
commit 15f46206ee
8 changed files with 380 additions and 233 deletions

View File

@@ -193,9 +193,11 @@ public final class Feed: SidebarItem, Renamable, Hashable {
if let s = name, !s.isEmpty {
return s
}
return NSLocalizedString("Untitled", comment: "Feed name")
return Self.untitledName
}
public static let untitledName = NSLocalizedString("Untitled", comment: "Feed name")
// MARK: - Renamable
public func rename(to newName: String, completion: @escaping (Result<Void, Error>) -> Void) {

View File

@@ -42,7 +42,7 @@ public final class Folder: SidebarItem, Renamable, Container, Hashable {
}
}
static let untitledName = NSLocalizedString("Untitled ƒ", comment: "Folder name")
public static let untitledName = NSLocalizedString("Untitled ƒ", comment: "Folder name")
public let folderID: Int // not saved: per-run only
public var externalID: String?
static var incrementingID = 0