mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 14:20:32 +05:30
11 lines
266 B
Swift
11 lines
266 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct CheckForUpdatesView: View {
|
||
|
@EnvironmentObject<UpdaterModel> private var updater
|
||
|
|
||
|
var body: some View {
|
||
|
Button("Check For Updates…", action: updater.checkForUpdates)
|
||
|
.disabled(!updater.canCheckForUpdates)
|
||
|
}
|
||
|
}
|