Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Privacy Pro settings updates #3189

Merged
merged 25 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b872b70
Images + initial setup
federicocappelli Jul 31, 2024
7c8a71b
typo fixed accesory > accessory
federicocappelli Jul 31, 2024
6135b3b
stage 2 of new subscription settings
federicocappelli Aug 2, 2024
281e91a
Root Settings changes completed
federicocappelli Aug 5, 2024
ce7de9e
DesignResourceKit 3.1.0, all subscription settings completed
federicocappelli Aug 6, 2024
cb97592
nav controller restored
federicocappelli Aug 8, 2024
caf2432
cleanup
federicocappelli Aug 8, 2024
6518efa
original navigation stack restored
federicocappelli Aug 8, 2024
581d638
Merge branch 'main' into fcappelli/privacypro_settings_updates
federicocappelli Aug 8, 2024
d6fc1a6
os_log migrated to Logger in Subscription, stack navigation restored
federicocappelli Aug 9, 2024
5833fe8
enforce_os_log_wrapper removed
federicocappelli Aug 9, 2024
8868155
DRK 3.2.0, code cleanup
federicocappelli Aug 9, 2024
82907dc
unused var removed
federicocappelli Aug 9, 2024
8bd9671
Merge branch 'main' into fcappelli/privacypro_settings_updates
federicocappelli Aug 9, 2024
355af61
swiftlint rules updated for next version
federicocappelli Aug 9, 2024
c5e4e31
lint
federicocappelli Aug 9, 2024
ede9433
VPN status fixed
federicocappelli Aug 12, 2024
87c04cf
code cleanup
federicocappelli Aug 12, 2024
a8c73fc
var name typo fixed
federicocappelli Aug 12, 2024
5d48a32
removed vpn menu under privacy protections
federicocappelli Aug 12, 2024
c48a12a
unused strings removed
federicocappelli Aug 12, 2024
74ad989
Merge branch 'main' into fcappelli/privacypro_settings_updates
federicocappelli Aug 12, 2024
1825462
VPN .snoozing state is treated as deactivated
federicocappelli Aug 12, 2024
a955b26
Merge branch 'main' into fcappelli/privacypro_settings_updates
federicocappelli Aug 13, 2024
28e0a03
Merge branch 'main' into fcappelli/privacypro_settings_updates
federicocappelli Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ opt_in_rules:
- fatal_error_message
- file_header

custom_rules:
federicocappelli marked this conversation as resolved.
Show resolved Hide resolved
enforce_os_log_wrapper:
included: ".*\\.swift"
excluded: ".*Tests.*"
name: "Use `import Common` for os_log instead of `import os.log`"
regex: "^(import (?:os\\.log|os|OSLog))$"
capture_group: 0
message: "os_log wrapper ensures log args are @autoclosures (computed when needed) and to be able to use String Interpolation."
severity: error

analyzer_rules:
- unused_import

Expand Down
24 changes: 19 additions & 5 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
1DEAADEC2BA45B4500E25A97 /* SettingsAccessibilityView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADEB2BA45B4400E25A97 /* SettingsAccessibilityView.swift */; };
1DEAADEE2BA45DFE00E25A97 /* SettingsDataClearingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADED2BA45DFE00E25A97 /* SettingsDataClearingView.swift */; };
1DEAADF02BA46E0700E25A97 /* PrivateSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADEF2BA46E0600E25A97 /* PrivateSearchView.swift */; };
1DEAADF22BA4716C00E25A97 /* SettingsStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADF12BA4716C00E25A97 /* SettingsStatus.swift */; };
1DEAADF22BA4716C00E25A97 /* StatusIndicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADF12BA4716C00E25A97 /* StatusIndicator.swift */; };
1DEAADF42BA47B5300E25A97 /* WebTrackingProtectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADF32BA47B5300E25A97 /* WebTrackingProtectionView.swift */; };
1DEAADF62BA4809400E25A97 /* CookiePopUpProtectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADF52BA4809400E25A97 /* CookiePopUpProtectionView.swift */; };
1DEAADFB2BA71E9A00E25A97 /* SettingsPrivacyProtectionDescriptionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEAADFA2BA71E9A00E25A97 /* SettingsPrivacyProtectionDescriptionView.swift */; };
Expand Down Expand Up @@ -982,6 +982,8 @@
F114C55B1E66EB020018F95F /* NibLoading.swift in Sources */ = {isa = PBXBuildFile; fileRef = F114C55A1E66EB020018F95F /* NibLoading.swift */; };
F115ED9C2B4EFC8E001A0453 /* TestUtils in Frameworks */ = {isa = PBXBuildFile; productRef = F115ED9B2B4EFC8E001A0453 /* TestUtils */; };
F130D73A1E5776C500C45811 /* OmniBarDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F130D7391E5776C500C45811 /* OmniBarDelegate.swift */; };
F132D6A52C62239B00D85426 /* SubscriptionSettingsHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F132D6A42C62239B00D85426 /* SubscriptionSettingsHeaderView.swift */; };
F132D6A82C6524B600D85426 /* Logger+Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = F132D6A72C6524B600D85426 /* Logger+Subscription.swift */; };
F1386BA41E6846C40062FC3C /* TabDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1386BA31E6846C40062FC3C /* TabDelegate.swift */; };
F13B4BC01F180D8A00814661 /* TabsModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F13B4BBF1F180D8A00814661 /* TabsModel.swift */; };
F13B4BD31F1822C700814661 /* Tab.swift in Sources */ = {isa = PBXBuildFile; fileRef = F13B4BD21F1822C700814661 /* Tab.swift */; };
Expand Down Expand Up @@ -1048,6 +1050,7 @@
F1E4A4451EE89460006F2EAE /* Bookmarks.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F1E4A4431EE89460006F2EAE /* Bookmarks.storyboard */; };
F1E90C201E678E7C005E7E21 /* HomeControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1E90C1F1E678E7C005E7E21 /* HomeControllerDelegate.swift */; };
F1ED309D1EDC2EA400651986 /* TabSwitcher.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F1ED309B1EDC2EA400651986 /* TabSwitcher.storyboard */; };
F1EFB0062C5B8B8E009AB44B /* StatusIndicatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1EFB0052C5B8B8E009AB44B /* StatusIndicatorView.swift */; };
F1F5337C1F26A9EF00D80D4F /* UserText.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1F5337B1F26A9EF00D80D4F /* UserText.swift */; };
F1F533841F26ABAC00D80D4F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = F1F533861F26ABAC00D80D4F /* Localizable.strings */; };
F1FDC9302BF4E0B3006B1435 /* SubscriptionEnvironment+Default.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1FDC92F2BF4E0B3006B1435 /* SubscriptionEnvironment+Default.swift */; };
Expand Down Expand Up @@ -1253,7 +1256,7 @@
1DEAADEB2BA45B4400E25A97 /* SettingsAccessibilityView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsAccessibilityView.swift; sourceTree = "<group>"; };
1DEAADED2BA45DFE00E25A97 /* SettingsDataClearingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsDataClearingView.swift; sourceTree = "<group>"; };
1DEAADEF2BA46E0600E25A97 /* PrivateSearchView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrivateSearchView.swift; sourceTree = "<group>"; };
1DEAADF12BA4716C00E25A97 /* SettingsStatus.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsStatus.swift; sourceTree = "<group>"; };
1DEAADF12BA4716C00E25A97 /* StatusIndicator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusIndicator.swift; sourceTree = "<group>"; };
1DEAADF32BA47B5300E25A97 /* WebTrackingProtectionView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebTrackingProtectionView.swift; sourceTree = "<group>"; };
1DEAADF52BA4809400E25A97 /* CookiePopUpProtectionView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CookiePopUpProtectionView.swift; sourceTree = "<group>"; };
1DEAADFA2BA71E9A00E25A97 /* SettingsPrivacyProtectionDescriptionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsPrivacyProtectionDescriptionView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2748,6 +2751,9 @@
F1134ED41F40F15800B73467 /* StatisticsUserDefaultsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatisticsUserDefaultsTests.swift; sourceTree = "<group>"; };
F114C55A1E66EB020018F95F /* NibLoading.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NibLoading.swift; sourceTree = "<group>"; };
F130D7391E5776C500C45811 /* OmniBarDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OmniBarDelegate.swift; sourceTree = "<group>"; };
F132D6A42C62239B00D85426 /* SubscriptionSettingsHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubscriptionSettingsHeaderView.swift; sourceTree = "<group>"; };
F132D6A62C62294000D85426 /* DesignResourcesKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = DesignResourcesKit; path = ../DesignResourcesKit; sourceTree = "<group>"; };
F132D6A72C6524B600D85426 /* Logger+Subscription.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Logger+Subscription.swift"; sourceTree = "<group>"; };
F1386BA31E6846C40062FC3C /* TabDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TabDelegate.swift; sourceTree = "<group>"; };
F13B4BBF1F180D8A00814661 /* TabsModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TabsModel.swift; sourceTree = "<group>"; };
F13B4BD21F1822C700814661 /* Tab.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tab.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2820,6 +2826,7 @@
F1E4A4441EE89460006F2EAE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Bookmarks.storyboard; sourceTree = "<group>"; };
F1E90C1F1E678E7C005E7E21 /* HomeControllerDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HomeControllerDelegate.swift; sourceTree = "<group>"; };
F1ED309C1EDC2EA400651986 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/TabSwitcher.storyboard; sourceTree = "<group>"; };
F1EFB0052C5B8B8E009AB44B /* StatusIndicatorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusIndicatorView.swift; sourceTree = "<group>"; };
F1F5337B1F26A9EF00D80D4F /* UserText.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserText.swift; sourceTree = "<group>"; };
F1FDC92F2BF4E0B3006B1435 /* SubscriptionEnvironment+Default.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SubscriptionEnvironment+Default.swift"; sourceTree = "<group>"; };
F1FDC9342BF51E41006B1435 /* VPNSettings+Environment.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "VPNSettings+Environment.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3927,6 +3934,7 @@
84E341891E2F7EFB00BDBA6F = {
isa = PBXGroup;
children = (
F132D6A62C62294000D85426 /* DesignResourcesKit */,
EE3B98EB2A963515002F63A0 /* WidgetsExtensionAlpha.entitlements */,
6FB030C7234331B400A10DB9 /* Configuration.xcconfig */,
EEB8FDB92A990AEE00EBEDCF /* Configuration-Alpha.xcconfig */,
Expand Down Expand Up @@ -5000,6 +5008,7 @@
isa = PBXGroup;
children = (
F1FDC9342BF51E41006B1435 /* VPNSettings+Environment.swift */,
F132D6A72C6524B600D85426 /* Logger+Subscription.swift */,
D664C7982B289AA000CBFA76 /* WKUserContentController+Handler.swift */,
);
path = Extensions;
Expand All @@ -5018,6 +5027,7 @@
D68A21432B7EC08500BB372E /* SubscriptionExternalLinkView.swift */,
D6BFCB5E2B7524AA0051FF81 /* SubscriptionPIRView.swift */,
D6F93E3D2B50A8A0004C268D /* SubscriptionSettingsView.swift */,
F132D6A42C62239B00D85426 /* SubscriptionSettingsHeaderView.swift */,
D60B1F262B9DDE5A00AE4760 /* SubscriptionGoogleView.swift */,
D670E5BA2BB6A75200941A42 /* SubscriptionNavigationCoordinator.swift */,
D63677F42BBDB1C300605BA5 /* DaxLogoNavbarTitle.swift */,
Expand Down Expand Up @@ -5064,7 +5074,8 @@
D6E83C472B20C812006C8AFB /* SettingsHostingController.swift */,
1DDF401F2BA049FA006850D9 /* SettingsRootView.swift */,
D6E83C302B1EA309006C8AFB /* SettingsCell.swift */,
1DEAADF12BA4716C00E25A97 /* SettingsStatus.swift */,
1DEAADF12BA4716C00E25A97 /* StatusIndicator.swift */,
F1EFB0052C5B8B8E009AB44B /* StatusIndicatorView.swift */,
1DDF40272BA04CF3006850D9 /* Sections */,
85449EF623FDA03100512AAF /* UIkit */,
);
Expand Down Expand Up @@ -6969,6 +6980,7 @@
D6FEB8B32B74990D00C3615F /* HeadlessWebViewNavCoordinator.swift in Sources */,
85BDC310243359040053DB07 /* FindInPageUserScript.swift in Sources */,
F1DE78581E5CAE350058895A /* TabViewGridCell.swift in Sources */,
F132D6A52C62239B00D85426 /* SubscriptionSettingsHeaderView.swift in Sources */,
984D035824ACCC6F0066CFB8 /* TabViewListCell.swift in Sources */,
B6BA95C328891E33004ABA20 /* BrowsingMenuAnimator.swift in Sources */,
D68DF81C2B58302E0023DBEA /* SubscriptionRestoreView.swift in Sources */,
Expand Down Expand Up @@ -7141,7 +7153,7 @@
BD2F39EB2C19F955005B19E7 /* NetworkProtectionDNSSettingsView.swift in Sources */,
CB2A7EEF283D185100885F67 /* RulesCompilationMonitor.swift in Sources */,
D6037E692C32F2E7009AAEC0 /* DuckPlayerSettings.swift in Sources */,
1DEAADF22BA4716C00E25A97 /* SettingsStatus.swift in Sources */,
1DEAADF22BA4716C00E25A97 /* StatusIndicator.swift in Sources */,
C18ED43C2AB8364400BF3805 /* FileTextPreviewDebugViewController.swift in Sources */,
1EEF12502851016B003DDE57 /* PrivacyIconAndTrackersAnimator.swift in Sources */,
31CB4251273AF50700FA0F3F /* SpeechRecognizerProtocol.swift in Sources */,
Expand All @@ -7162,6 +7174,7 @@
D66F683D2BB333C100AE93E2 /* SubscriptionContainerView.swift in Sources */,
851B128822200575004781BC /* Onboarding.swift in Sources */,
9FB027192C26BC29009EA190 /* BrowsersComparisonModel.swift in Sources */,
F1EFB0062C5B8B8E009AB44B /* StatusIndicatorView.swift in Sources */,
3151F0EE2735800800226F58 /* VoiceSearchFeedbackView.swift in Sources */,
37CF91642BB4A82A00BADCAE /* CrashCollectionOnboardingViewModel.swift in Sources */,
6F64AA5D2C4920D200CF4489 /* ShortcutAccessoryView.swift in Sources */,
Expand Down Expand Up @@ -7266,6 +7279,7 @@
85C861E628FF1B5F00189466 /* HomeViewSectionRenderersExtension.swift in Sources */,
CB825C922C071B1400BCC586 /* AlertView.swift in Sources */,
1DDF40292BA04FCD006850D9 /* SettingsPrivacyProtectionsView.swift in Sources */,
F132D6A82C6524B600D85426 /* Logger+Subscription.swift in Sources */,
6F64AA5F2C49463C00CF4489 /* ShortcutsModel.swift in Sources */,
F1D477C61F2126CC0031ED49 /* OmniBarState.swift in Sources */,
85F2FFCD2211F615006BB258 /* MainViewController+KeyCommands.swift in Sources */,
Expand Down Expand Up @@ -10513,7 +10527,7 @@
repositoryURL = "https://github.com/duckduckgo/DesignResourcesKit";
requirement = {
kind = exactVersion;
version = 3.0.0;
version = 3.1.0;
};
};
F486D2EF25069482002D07D7 /* XCRemoteSwiftPackageReference "Kingfisher" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@
"version" : "6.4.0"
}
},
{
"identity" : "designresourceskit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/DesignResourcesKit",
"state" : {
"revision" : "ae83941bb277a2750abc2d6697fa278f8c8c5f5e",
"version" : "3.0.0"
}
},
{
"identity" : "duckduckgo-autofill",
"kind" : "remoteSourceControl",
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ struct AboutViewVersion: View {
var body: some View {
Section(header: Text("DuckDuckGo for iOS"), footer: Text(UserText.settingsSendCrashReportsDescription)) {
SettingsCellView(label: UserText.settingsVersion,
accesory: .rightDetail(viewModel.state.version))
accessory: .rightDetail(viewModel.state.version))

// Send Crash Reports
SettingsCellView(label: UserText.settingsSendCrashReports,
accesory: .toggle(isOn: viewModel.crashCollectionOptInStatusBinding))
accessory: .toggle(isOn: viewModel.crashCollectionOptInStatusBinding))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/CookiePopUpProtectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct CookiePopUpProtectionViewSettings: View {
Section {
// Let DuckDuckGo manage cookie consent pop-ups
SettingsCellView(label: UserText.letDuckDuckGoManageCookieConsentPopups,
accesory: .toggle(isOn: viewModel.autoconsentBinding))
accessory: .toggle(isOn: viewModel.autoconsentBinding))
}
}
}
4 changes: 2 additions & 2 deletions DuckDuckGo/PrivateSearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ struct PrivateSearchViewSettings: View {
Section(footer: Text(UserText.settingsAutocompleteSubtitle)) {
// Autocomplete Suggestions
SettingsCellView(label: UserText.settingsAutocompleteLabel,
accesory: .toggle(isOn: viewModel.autocompletePrivateSearchBinding))
accessory: .toggle(isOn: viewModel.autocompletePrivateSearchBinding))
}

if viewModel.shouldShowRecentlyVisitedSites {
Section(footer: Text(UserText.settingsAutocompleteRecentlyVisitedSubtitle)) {
SettingsCellView(label: UserText.settingsAutocompleteRecentlyVisitedLabel,
accesory: .toggle(isOn: viewModel.autocompleteRecentlyVisitedSitesBinding))
accessory: .toggle(isOn: viewModel.autocompleteRecentlyVisitedSitesBinding))
}
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Exclamation-Color-16.pdf",
"filename" : "SettingsSubscriptionITP.pdf",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "SettingsSubscriptionPIR.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "SettingsSubscriptionVPN.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
4 changes: 2 additions & 2 deletions DuckDuckGo/SettingsAccessibilityView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct SettingsAccessibilityView: View {
if viewModel.state.textSize.enabled {
SettingsCellView(label: UserText.settingsText,
action: { viewModel.presentLegacyView(.textSize) },
accesory: .rightDetail("\(viewModel.state.textSize.size)%"),
accessory: .rightDetail("\(viewModel.state.textSize.size)%"),
disclosureIndicator: true,
isButton: true)
}
Expand All @@ -43,7 +43,7 @@ struct SettingsAccessibilityView: View {
// Private Voice Search
if viewModel.state.speechRecognitionAvailable {
SettingsCellView(label: UserText.settingsVoiceSearch,
accesory: .toggle(isOn: viewModel.voiceSearchEnabledBinding))
accessory: .toggle(isOn: viewModel.voiceSearchEnabledBinding))
}
}
.alert(isPresented: $shouldShowNoMicrophonePermissionAlert) {
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/SettingsAppearanceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct SettingsAppearanceView: View {
let image = Image(uiImage: viewModel.state.appIcon.smallImage ?? UIImage())
SettingsCellView(label: UserText.settingsIcon,
action: { viewModel.presentLegacyView(.appIcon ) },
accesory: .image(image),
accessory: .image(image),
disclosureIndicator: true,
isButton: true)

Expand All @@ -52,7 +52,7 @@ struct SettingsAppearanceView: View {

// Show Full Site Address
SettingsCellView(label: UserText.settingsFullURL,
accesory: .toggle(isOn: viewModel.addressBarShowsFullURL))
accessory: .toggle(isOn: viewModel.addressBarShowsFullURL))
}
}
.applySettingsListModifiers(title: UserText.settingsAppearanceSection,
Expand Down
Loading
Loading