diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-10 16:52:28 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-10 16:52:28 -0700 |
| commit | 8ba7a5fa6ef7274339c3c709a2babb790e11e32b (patch) | |
| tree | b396647b37fe85cd23aba92346621c3ec3869945 /Hotline/Models/NewsInfo.swift | |
| parent | 4a4fab030b69ec799fae42f9a444392e7be7a43a (diff) | |
Further work on threaded news UI: better icons, tweaked indentation, post count, keyboard navigation.
Diffstat (limited to 'Hotline/Models/NewsInfo.swift')
| -rw-r--r-- | Hotline/Models/NewsInfo.swift | 4 |
1 files changed, 4 insertions, 0 deletions
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 |