diff --git a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings index bd3abf33..da1f4d50 100644 --- a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings @@ -157,6 +157,7 @@ "account.post.pinned" = "Angehefteter Post"; "account.posts" = "Posts"; "account.relation.follows-you" = "Folgt dir"; +"account.joined" = "Beigetreten"; // MARK: Package: Conversations "conversations.action.delete" = "Löschen"; diff --git a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings index 679cbfc0..4f4d3827 100644 --- a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings @@ -157,6 +157,7 @@ "account.post.pinned" = "Pinned post"; "account.posts" = "Posts"; "account.relation.follows-you" = "Follows You"; +"account.joined" = "Joined"; // MARK: Package: Conversations "conversations.action.delete" = "Delete"; diff --git a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings index 3e13879e..9218ca66 100644 --- a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings @@ -157,6 +157,7 @@ "account.post.pinned" = "Vastgezette post"; "account.posts" = "Posts"; "account.relation.follows-you" = "Volgt Jou"; +"account.joined" = "Lid geworden"; // MARK: Package: Conversations "conversations.action.delete" = "Verwijderen"; diff --git a/Packages/Account/Sources/Account/AccountDetailView.swift b/Packages/Account/Sources/Account/AccountDetailView.swift index c918ba28..9e11ded5 100644 --- a/Packages/Account/Sources/Account/AccountDetailView.swift +++ b/Packages/Account/Sources/Account/AccountDetailView.swift @@ -41,6 +41,8 @@ public struct AccountDetailView: View { } content: { LazyVStack(alignment: .leading) { makeHeaderView(proxy: proxy) + joinedAtView + .offset(y: -36) familiarFollowers .offset(y: -36) featuredTagsView @@ -145,6 +147,22 @@ public struct AccountDetailView: View { Text("Error: \(error.localizedDescription)") } } + + @ViewBuilder + private var joinedAtView: some View { + if let joinedAt = viewModel.account?.createdAt.asDate { + HStack(spacing: 4) { + Image(systemName: "calendar") + Text("account.joined") + Text(joinedAt, style: .date) + } + .foregroundColor(.gray) + .font(.footnote) + .padding(.horizontal, .layoutPadding) + .padding(.top, 2) + .padding(.bottom, 5) + } + } @ViewBuilder private var featuredTagsView: some View {