Remove unnecessary marks, they bring little value

This commit is contained in:
Stefan Ceriu
2022-11-28 10:32:32 +02:00
committed by Stefan Ceriu
parent 198127c5d7
commit 9589c689c3
40 changed files with 0 additions and 274 deletions
@@ -20,17 +20,9 @@ import SwiftUI
typealias AnalyticsPromptViewModelType = StateStoreViewModel<AnalyticsPromptViewState, AnalyticsPromptViewAction>
class AnalyticsPromptViewModel: AnalyticsPromptViewModelType, AnalyticsPromptViewModelProtocol {
// MARK: - Properties
// MARK: Private
private let termsURL: URL
// MARK: Public
var callback: (@MainActor (AnalyticsPromptViewModelAction) -> Void)?
// MARK: - Setup
/// Initialize a view model with the specified prompt type and app display name.
init(termsURL: URL) {
@@ -18,18 +18,10 @@ import SwiftUI
/// A prompt that asks the user whether they would like to enable Analytics or not.
struct AnalyticsPrompt: View {
// MARK: - Properties
// MARK: Private
private let horizontalPadding: CGFloat = 16
// MARK: Public
@ObservedObject var context: AnalyticsPromptViewModel.Context
// MARK: Views
var body: some View {
GeometryReader { geometry in
ScrollView {
@@ -17,14 +17,8 @@
import SwiftUI
struct AnalyticsPromptCheckmarkItem: View {
// MARK: - Properties
// MARK: Private
private let attributedString: AttributedString
// MARK: - Setup
init(attributedString: AttributedString) {
self.attributedString = attributedString
}
@@ -33,8 +27,6 @@ struct AnalyticsPromptCheckmarkItem: View {
attributedString = AttributedString(string)
}
// MARK: - Views
var body: some View {
Label { Text(attributedString) } icon: {
Image(uiImage: Asset.Images.analyticsCheckmark.image)