-
Notifications
You must be signed in to change notification settings - Fork 119
[MBL-19382][S] Student annotation toolbar #3860
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
Conversation
refs: MBL-19382 builds: Student affects: Student release note: none
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.
Review Summary
This PR simplifies the toolbar button implementation by removing a workaround for SwiftUI font weight overriding and adopts the toolbarItemForegroundStyle custom view modifier pattern that's already being used elsewhere in the codebase.
Positive Feedback ✅
- Good refactoring: Removes the hacky workaround with the hidden image (
Image.assignmentLine.frame(width: 0, height: 0).clipped()) which was only there to prevent nav bar font weight override - Consistent pattern: Uses
toolbarItemForegroundStyle, which is the established pattern in the codebase (seen inSpeedGraderScreen.swift,GradeListScreen.swift, etc.) - Cleaner code: Simplifies the
doneButtonimplementation by removing the unnecessaryHStackwrapper - Better SwiftUI practices: Using the trailing closure syntax for buttons is cleaner and more idiomatic
- iOS 26 ready: The custom
toolbarItemForegroundStylemodifier handles iOS 26 compatibility gracefully
Issues Found 🔧
- Extra blank line at Student/Student/Submissions/StudentAnnotationSubmission/StudentAnnotationSubmissionView.swift:60 should be removed
The change is well-aligned with the project's goals of removing SwiftUI workarounds and maintaining code quality.
Student/Student/Submissions/StudentAnnotationSubmission/StudentAnnotationSubmissionView.swift
Outdated
Show resolved
Hide resolved
BuildsCommit: Remove newline (096ae34) |
suhaibabsi-inst
left a 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.
QA +1
Tested on iPhone 16, iOS 26
rh12
left a 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.
QA + 1
vargaat
left a 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.
QA+1
refs: MBL-19382
builds: Student
affects: Student
release note: none
Test plan
Submit a Student Annotation assignment. The toolbar buttons should not be misaligned and should appear correctly.
Screenshots
Checklist