We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8873de6 commit 434377bCopy full SHA for 434377b
WordPress/Classes/ViewRelated/Reader/Subscriptions/ReaderSubscriptionCell.swift
@@ -11,6 +11,13 @@ struct ReaderSubscriptionCell: View {
11
12
var onDelete: (ReaderSiteTopic) -> Void
13
14
+ private var displayTitle: String {
15
+ if !site.title.isEmpty {
16
+ return site.title
17
+ }
18
+ return URL(string: site.siteURL)?.host ?? site.title
19
20
+
21
private var details: String {
22
let components = [
23
horizontalSizeClass == .compact ? nil : URL(string: site.siteURL)?.host,
@@ -27,7 +34,7 @@ struct ReaderSubscriptionCell: View {
27
34
28
35
VStack(alignment: .leading, spacing: 3) {
29
36
HStack(alignment: .firstTextBaseline, spacing: 8) {
30
- Text(site.title)
37
+ Text(displayTitle)
31
38
.font(.body.weight(.medium))
32
39
}
33
40
Text(details)
0 commit comments