mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge pull request #6198 from BlueWallet/iOS-Widgets-have-a-black-border,-introduced-in-todays-update-#6191
FIX: iOS Widgets have a black border, introduced in todays update #6191
This commit is contained in:
commit
20c798dbdb
@ -90,12 +90,14 @@ struct WalletInformationWidget: Widget {
|
||||
}
|
||||
.configurationDisplayName("Balance")
|
||||
.description("View your accumulated balance.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
} else {
|
||||
return StaticConfiguration(kind: kind, provider: WalletInformationWidgetProvider()) { entry in
|
||||
WalletInformationWidgetEntryView(entry: entry)
|
||||
}
|
||||
.configurationDisplayName("Balance")
|
||||
.description("View your accumulated balance.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,12 +87,14 @@ struct MarketWidget: Widget {
|
||||
}
|
||||
.configurationDisplayName("Market")
|
||||
.description("View the current market information.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
} else {
|
||||
return StaticConfiguration(kind: kind, provider: MarketWidgetProvider()) { entry in
|
||||
MarketWidgetEntryView(entry: entry)
|
||||
}
|
||||
.configurationDisplayName("Market")
|
||||
.description("View the current market information.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -99,12 +99,14 @@ struct PriceWidgetProvider: TimelineProvider {
|
||||
}
|
||||
.configurationDisplayName("Price")
|
||||
.description("View the current price of Bitcoin.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
} else {
|
||||
return StaticConfiguration(kind: kind, provider: PriceWidgetProvider()) { entry in
|
||||
PriceWidgetEntryView(entry: entry)
|
||||
}
|
||||
.configurationDisplayName("Price")
|
||||
.description("View the current price of Bitcoin.").supportedFamilies([.systemSmall])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ struct WalletInformationAndMarketWidget: Widget {
|
||||
}
|
||||
.configurationDisplayName("Wallet and Market")
|
||||
.description("View your total wallet balance and network prices.").supportedFamilies([.systemMedium, .systemLarge])
|
||||
.contentMarginsDisabledIfAvailable()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,3 +19,18 @@ struct Widgets: WidgetBundle {
|
||||
WalletInformationAndMarketWidget()
|
||||
}
|
||||
}
|
||||
|
||||
extension WidgetConfiguration
|
||||
{
|
||||
func contentMarginsDisabledIfAvailable() -> some WidgetConfiguration
|
||||
{
|
||||
if #available(iOSApplicationExtension 17.0, *)
|
||||
{
|
||||
return self.contentMarginsDisabled()
|
||||
}
|
||||
else
|
||||
{
|
||||
return self
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user