18 lines
836 B
Swift
18 lines
836 B
Swift
import ManagedSettings
|
|
import ManagedSettingsUI
|
|
import UIKit
|
|
|
|
final class ShieldConfigurationExtension: ShieldConfigurationDataSource {
|
|
override func configuration(shielding application: Application) -> ShieldConfiguration {
|
|
ShieldConfiguration(
|
|
backgroundBlurStyle: .systemMaterial,
|
|
backgroundColor: .systemBackground,
|
|
icon: UIImage(systemName: "hourglass"),
|
|
title: .init(text: "Time for a break", color: .label),
|
|
subtitle: .init(text: "Your allowance is used, or it is outside your allowed hours. Open Family Quests to check your time or try a maths challenge. Rewards cannot extend bedtime.", color: .secondaryLabel),
|
|
primaryButtonLabel: .init(text: "Close", color: .white),
|
|
primaryButtonBackgroundColor: .systemIndigo
|
|
)
|
|
}
|
|
}
|