mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
New account selection menu
This commit is contained in:
@@ -35,7 +35,7 @@ struct OpenVideosView: View {
|
||||
|
||||
var closeButton: some View {
|
||||
Button(action: { presentationMode.wrappedValue.dismiss() }) {
|
||||
Label("Close", systemImage: "xmark")
|
||||
Label("Done", systemImage: "xmark")
|
||||
}
|
||||
#if os(macOS)
|
||||
.labelStyle(.titleOnly)
|
||||
|
21
Shared/Views/SettingsButtons.swift
Normal file
21
Shared/Views/SettingsButtons.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsButtons: View {
|
||||
@ObservedObject private var accounts = AccountsModel.shared
|
||||
private var navigation = NavigationModel.shared
|
||||
|
||||
var body: some View {
|
||||
Button(action: { navigation.presentingAccounts = true }) {
|
||||
Label(accounts.current?.description ?? "", image: accounts.app.rawValue.capitalized)
|
||||
}
|
||||
Button(action: { navigation.presentingSettings = true }) {
|
||||
Label("Settings", systemImage: "gearshape.2")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct SettingsButtons_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SettingsButtons()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user