From 8ba7a5fa6ef7274339c3c709a2babb790e11e32b Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 10 May 2024 16:52:28 -0700 Subject: Further work on threaded news UI: better icons, tweaked indentation, post count, keyboard navigation. --- Hotline/Models/NewsInfo.swift | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Hotline/Models/NewsInfo.swift') diff --git a/Hotline/Models/NewsInfo.swift b/Hotline/Models/NewsInfo.swift index b635138..eecd550 100644 --- a/Hotline/Models/NewsInfo.swift +++ b/Hotline/Models/NewsInfo.swift @@ -26,6 +26,10 @@ enum NewsInfoType { var articleDate: Date? var read: Bool = false + var expandable: Bool { + self.type == .bundle || self.type == .category || self.children.count > 0 + } + init(hotlineNewsCategory: HotlineNewsCategory) { self.categoryID = hotlineNewsCategory.id self.articleID = nil -- cgit