Move to extension

This commit is contained in:
Max Goedjen 2020-09-13 23:13:34 -06:00
parent 794de4e132
commit e1fae20e37
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -33,6 +33,10 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
}
}
}
extension ContentView {
var updateNotice: ToolbarItem<Void, AnyView> {
guard let update = updater.update else {
return ToolbarItem { AnyView(Spacer()) }
@ -94,7 +98,7 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
)
}
}
}
//