~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1
main
16 lines · 514 B Raw History
import SwiftUI

struct ContentPreferencesRefreshNotice: View {
    @Environment(AppModel.self) private var model

    var body: some View {
        if let error = model.contentPreferencesRefreshError, model.contentPreferences != nil {
            VStack(alignment: .leading, spacing: 8) {
                Text(error)
                    .foregroundStyle(.secondary)
                Button("Retry") { Task { await model.reloadContentPreferences() } }
            }
            .appFont(.footnote)
        }
    }
}