-
Notifications
You must be signed in to change notification settings - Fork 895
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
[iOS] - Improve QRCode Scanning Visibility #27229
base: master
Are you sure you want to change the base?
Conversation
private var onDidScan: (_ string: String) -> Void | ||
|
||
private var didProcessScanReusltsTask: Task<Void, Error>? |
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.
I don't see this used anywhere or any Task's created, I assume can be deleted?
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.
Discussed the details with @Brandon-T in Slack, lgtm
} | ||
} | ||
|
||
private(set) lazy var scannedDisplayButton = UIButton().then { |
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.
Dont see any reason for this to be lazy
$0.titleLabel?.font = UIFont.preferredFont(forTextStyle: .body) | ||
$0.titleLabel?.lineBreakMode = .byTruncatingTail | ||
$0.setTitleColor(.white, for: .normal) | ||
$0.backgroundColor = UIColor(braveSystemName: .primitivePurple60) |
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.
Should be buttonBackground
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.
If this button isnt themed for some reason you can ignore this and the comment below
$0.contentEdgeInsets = UIEdgeInsets(top: 12, left: 16, bottom: 12, right: 16) | ||
$0.titleLabel?.font = UIFont.preferredFont(forTextStyle: .body) | ||
$0.titleLabel?.lineBreakMode = .byTruncatingTail | ||
$0.setTitleColor(.white, for: .normal) |
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.
Should be schemesOnPrimary
Summary
Resolves brave/brave-browser#42559
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: