Fix ordering, add pragmas, fix visibility on a few functions, remove default param on state.

This commit is contained in:
David Langley
2021-09-08 11:43:57 +01:00
parent c890c831c5
commit a35feeba26
6 changed files with 52 additions and 31 deletions
@@ -19,6 +19,10 @@ import SwiftUI
@available(iOS 14.0, *)
struct TemplateUserProfileHeader: View {
// MARK: - Properties
// MARK: Public
@Environment(\.theme) var theme: ThemeSwiftUI
let avatar: AvatarInputType?
let displayName: String?
@@ -43,6 +47,8 @@ struct TemplateUserProfileHeader: View {
}
}
// MARK: - Previews
@available(iOS 14.0, *)
struct TemplateUserProfileHeader_Previews: PreviewProvider {
static var previews: some View {