Update for new Swift rules
This commit is contained in:
@ -159,8 +159,8 @@ public struct GridCard: View {
|
||||
// .onTapGesture { tapHandler() }
|
||||
}
|
||||
|
||||
if let status = item.serverSyncStatus, status != ServerSyncStatus.isNSync.rawValue {
|
||||
SyncStatusIcon(status: ServerSyncStatus(rawValue: Int(status)) ?? ServerSyncStatus.isNSync)
|
||||
if item.serverSyncStatus != ServerSyncStatus.isNSync.rawValue {
|
||||
SyncStatusIcon(status: ServerSyncStatus(rawValue: Int(item.serverSyncStatus)) ?? ServerSyncStatus.isNSync)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 0)
|
||||
|
||||
@ -89,7 +89,8 @@ public struct FeedCard: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
if let recs = Recommendation.notViewers(viewer: viewer, item.recommendations), recs.count > 0 {
|
||||
let recs = Recommendation.notViewers(viewer: viewer, item.recommendations)
|
||||
if recs.count > 0 {
|
||||
let byStr = Recommendation.byline(recs)
|
||||
let inStr = Recommendation.groupsLine(recs)
|
||||
HStack {
|
||||
|
||||
Reference in New Issue
Block a user