-
Notifications
You must be signed in to change notification settings - Fork 440
Conversation
5bd6e80
to
31fc625
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BraveShared/BraveStrings.swift
Outdated
"today.introCardNew", | ||
bundle: .braveShared, | ||
value: "New", | ||
comment: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment what this new
refers to, many languages use different words for it depending on context.
It should mention something like new as new feature introduced
/// Displays the word "New" with a gradient mask | ||
private class MaskedNewLabel: UIView { | ||
private let gradientView = GradientView( | ||
// colors: [UIColor(rgb: 0xA78AFF), UIColor(rgb: 0xFF1893), UIColor(rgb: 0xFA7250)], // dark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
@@ -48,7 +48,16 @@ class BraveTodaySettingsViewController: TableViewController { | |||
dataSource.sections = [ | |||
.init( | |||
rows: [ | |||
.boolRow(title: Strings.BraveToday.isEnabledToggleLabel, option: Preferences.BraveToday.isEnabled) | |||
.boolRow(title: Strings.BraveToday.isEnabledToggleLabel, option: Preferences.BraveToday.isEnabled, onValueChange: { value in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is onValueChange
handler safe without weak or unowned self
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, no I think it'll lead to a retain cycle, will add weak/unowned
Haha, good call on the localization comments 😆 Will fix those |
29db501
to
104d3c9
Compare
104d3c9
to
042a5f9
Compare
Summary of Changes
This pull request fixes #3374
This pull request fixes #3290
Submitter Checklist:
NSLocalizableString()
Test Plan:
Brave Today Opt-In Spec
in DriveScreenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement