BlueWallet/ios/Widgets/Widgets.swift

37 lines
692 B
Swift
Raw Normal View History

2021-06-06 03:58:39 -04:00
//
// Widgets.swift
// Widgets
//
// Created by Marcos Rodriguez on 6/6/21.
// Copyright © 2021 BlueWallet. All rights reserved.
//
import WidgetKit
import SwiftUI
@main
struct Widgets: WidgetBundle {
@WidgetBundleBuilder
var body: some Widget {
PriceWidget()
2021-06-06 11:58:57 -04:00
WalletInformationWidget()
2021-06-06 03:58:39 -04:00
MarketWidget()
WalletInformationAndMarketWidget()
}
}
extension WidgetConfiguration
{
func contentMarginsDisabledIfAvailable() -> some WidgetConfiguration
{
if #available(iOSApplicationExtension 17.0, *)
{
return self.contentMarginsDisabled()
}
else
{
return self
}
}
}