From b97ea619edf97b78ceba837c40320c7e18d5b5a6 Mon Sep 17 00:00:00 2001 From: Sjmarf <78750526+Sjmarf@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:14:04 +0000 Subject: [PATCH] Rename "Statistics" tab to "Details" --- Mlem/Views/Shared/Instance/InstanceView.swift | 6 +++--- Mlem/Views/Tabs/Profile/UserView.swift | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Mlem/Views/Shared/Instance/InstanceView.swift b/Mlem/Views/Shared/Instance/InstanceView.swift index 6717c9583..f3e194b27 100644 --- a/Mlem/Views/Shared/Instance/InstanceView.swift +++ b/Mlem/Views/Shared/Instance/InstanceView.swift @@ -10,7 +10,7 @@ import Charts import Dependencies enum InstanceViewTab: String, Identifiable, CaseIterable { - case about, administrators, statistics, uptime, safety + case about, administrators, details, uptime, safety var id: Self { self } @@ -96,7 +96,7 @@ struct InstanceView: View { VStack(spacing: 0) { VStack(spacing: 4) { Divider() - BubblePicker([.about, .administrators, .statistics], selected: $selectedTab) { tab in + BubblePicker([.about, .administrators, .details], selected: $selectedTab) { tab in Text(tab.label) } Divider() @@ -121,7 +121,7 @@ struct InstanceView: View { ProgressView() .padding(.top) } - case .statistics: + case .details: if instance.userCount != nil { InstanceStatsView(instance: instance) .padding(.top, 16) diff --git a/Mlem/Views/Tabs/Profile/UserView.swift b/Mlem/Views/Tabs/Profile/UserView.swift index 3a95bdebf..2eb0792be 100644 --- a/Mlem/Views/Tabs/Profile/UserView.swift +++ b/Mlem/Views/Tabs/Profile/UserView.swift @@ -8,7 +8,6 @@ import Dependencies import SwiftUI -// swiftlint:disable type_body_length struct UserView: View { @Dependency(\.apiClient) var apiClient @Dependency(\.errorHandler) var errorHandler @@ -264,5 +263,3 @@ struct UserView: View { .padding(.horizontal, AppConstants.postAndCommentSpacing) } } - -// swiftlint:enable type_body_length