From 1fbf048230bf0da0bfe4217350f85dc6c9b47af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tormod=20Mork=20Mu=CC=88ller?= <tormodmm@stud.ntnu.no> Date: Fri, 20 May 2022 00:15:31 +0200 Subject: [PATCH] Added frame to, and moved sign out button --- .../Views/ProfileView/ProfileView.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/stillasMobileApplication/stillasMobileApplication/Views/ProfileView/ProfileView.swift b/stillasMobileApplication/stillasMobileApplication/Views/ProfileView/ProfileView.swift index ab19564..ec0ad6e 100644 --- a/stillasMobileApplication/stillasMobileApplication/Views/ProfileView/ProfileView.swift +++ b/stillasMobileApplication/stillasMobileApplication/Views/ProfileView/ProfileView.swift @@ -158,6 +158,21 @@ struct ProfileDetails: View { .background(colorScheme == .dark ? Color(UIColor.white) : Color(UIColor.white)).cornerRadius(7) .shadow(color: Color(UIColor.black).opacity(0.1), radius: 5, x: 0, y: 2) .shadow(color: Color(UIColor.black).opacity(0.2), radius: 20, x: 0, y: 10) + + Spacer() + + Button (action: { + viewModel.signOut() + }) { + Text("Logg av") + .frame(width: 150, height: 50, alignment: .center) + } + .foregroundColor(.white) + .background(Color.blue) + .cornerRadius(10) + + Spacer() + .frame(height:50) // limit spacer size by applying a frame } } .task { -- GitLab