mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltWidget] Fixes incorrect home screen widget margins on iOS 17
This commit is contained in:
@@ -178,7 +178,7 @@ struct HomeScreenWidget: Widget
|
|||||||
private let kind: String = "AppDetail"
|
private let kind: String = "AppDetail"
|
||||||
|
|
||||||
public var body: some WidgetConfiguration {
|
public var body: some WidgetConfiguration {
|
||||||
return IntentConfiguration(kind: kind,
|
let configuration = IntentConfiguration(kind: kind,
|
||||||
intent: ViewAppIntent.self,
|
intent: ViewAppIntent.self,
|
||||||
provider: Provider()) { (entry) in
|
provider: Provider()) { (entry) in
|
||||||
WidgetView(entry: entry)
|
WidgetView(entry: entry)
|
||||||
@@ -186,6 +186,16 @@ struct HomeScreenWidget: Widget
|
|||||||
.supportedFamilies([.systemSmall])
|
.supportedFamilies([.systemSmall])
|
||||||
.configurationDisplayName("AltWidget")
|
.configurationDisplayName("AltWidget")
|
||||||
.description("View remaining days until your sideloaded apps expire.")
|
.description("View remaining days until your sideloaded apps expire.")
|
||||||
|
|
||||||
|
if #available(iOS 17, *)
|
||||||
|
{
|
||||||
|
return configuration
|
||||||
|
.contentMarginsDisabled()
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return configuration
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user