v5.3.0 Fix for large widget

This commit is contained in:
Zbigniew Cisiński 2024-02-28 23:19:54 +01:00
parent d949170c0c
commit 1ba5e476a2

View File

@ -114,11 +114,12 @@ struct AppIntentProvider: AppIntentTimelineProvider {
let rest = seconds % smallestIncrement
return smallestIncrement - rest
}()
let slotsCount = context.family.servicesCount
let divider: Int = {
if services.count > 3 {
if slotsCount > 3 {
return 27
}
let value = services.count / 2
let value = slotsCount / 2
if value == 0 {
return 1
}