// // Logoutview.swift // Werkout_ios // // Created by Trey Tartt on 6/16/24. // import SwiftUI struct Logoutview: View { @ObservedObject var userStore = UserStore.shared var body: some View { GlassEffectContainer { HStack { Button("Logout", action: { userStore.logout() }) .font(.system(size: 16, weight: .bold)) .foregroundStyle(WerkoutTheme.textPrimary) .frame(maxWidth: .infinity, alignment: .center) .frame(height: 44) .glassEffect(.regular.interactive()) .tint(WerkoutTheme.danger) .clipShape(RoundedRectangle(cornerRadius: WerkoutTheme.buttonRadius, style: .continuous)) .padding() .frame(maxWidth: .infinity) Button(action: { userStore.refreshUserData() }, label: { Image(systemName: "arrow.triangle.2.circlepath") }) .font(.title) .foregroundStyle(WerkoutTheme.textPrimary) .frame(width: 44, height: 44) .glassEffect(.regular.interactive()) .tint(WerkoutTheme.success) .clipShape(RoundedRectangle(cornerRadius: WerkoutTheme.buttonRadius, style: .continuous)) .padding() .frame(maxWidth: .infinity) } } } } #Preview { Logoutview() }