Mercurial > public > geoquiz
diff GeoQuiz/Helpers/ActivityAlert.swift @ 26:425078c01194
refactor code
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 09 Nov 2022 10:30:01 +0100 |
parents | GeoQuiz/Components/ActivityAlert.swift@e281791e0494 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GeoQuiz/Helpers/ActivityAlert.swift Wed Nov 09 10:30:01 2022 +0100 @@ -0,0 +1,26 @@ +// +// ActivityAlert.swift +// GeoQuiz +// +// Created by Dennis Concepción Martín on 12/10/22. +// + +import SwiftUI + +struct ActivityAlert: View { + var body: some View { + VStack(spacing: 10) { + ProgressView() + Text("Loading") + } + .padding() + .background(.regularMaterial) + .cornerRadius(10) + } +} + +struct ActivityAlert_Previews: PreviewProvider { + static var previews: some View { + ActivityAlert() + } +}