-
Notifications
You must be signed in to change notification settings - Fork 192
feat: certificate banner stylistic changes on new course dashboard #1727
Conversation
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id), | ||
let certificateUrl = enrollment.certificateUrl, | ||
let certificateImage = UIImage(named: "courseCertificate") else { return } |
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.
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id), | |
let certificateUrl = enrollment.certificateUrl, | |
let certificateImage = UIImage(named: "courseCertificate") else { return } | |
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id), | |
let certificateUrl = enrollment.certificateUrl, | |
let certificateImage = UIImage(named: "courseCertificate") else { return } |
let certificateUrl = enrollment.certificateUrl, | ||
let certificateImage = UIImage(named: "courseCertificate") else { return } | ||
|
||
let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] 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.
let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] in | |
let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] in |
titleStyle.weight = .bold | ||
titleStyle.size = .xxLarge | ||
titleStyle.color = OEXStyles.shared().neutralBlack() | ||
subtitleStyle.color = OEXStyles.shared().neutralXDark() | ||
title = title.capitalized |
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.
how about declaring a variable and inside if condition, we define OEXTextStyle using the initializer, instead of chaning values of the titleStyle
and subtitleStyle
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.
In that case we also have to set the title in if else condition. This way we are only setting it once. OEXMutableTextStyle
was created to change on the run for cases like this.
*chore: revert app nav changes (#1685) * chore: add indicator on tab bar (#1687) * chore: update learn tab icon (#1698) * chore: add empty state to my courses (#1697) * chore: add dashboard header view (#1705) * chore: Course Dashboard Error Screen for Non-Upgradable Courses (#1708) * chore: course tab bar flow changes in course dashboard (#1707) * chore: add error view on enrolled courses screen (#1718) * chore: course dashboard error screen for no access but upgradable courses (#1716) * chore: scrolling behaviour on course dashboard header (#1723) * feat: add new error screen for outdated version (#1725) * feat: certificate banner stylistic changes on new course dashboard (#1727) * chore: add scrolling behaviour to redesigned Learn tab (#1729) * chore: add collapsible section headers (#1726) * chore: resume course button implementation for new design #1737 (#1738) * chore: fix deeplinks with new dashboard (#1742) * fix: fix broken tests * chore: discussions deep link and push notifications support for new course dashboard (#1752) * chore: update status bar color to match course dashboard header color (#1754) * feat: show shift dates banner on new course dashboard (#1753) * feat: show shift dates banner on new course dashboard * refactor: improve value prop logic in case of embedded value prop on course dashboard fix: fix fetching of course price * fix: fix course share button on iPad (#1757) * fix: fix blank screen on fresh enrollment with app nav work (#1759) * fix: view showing behind collapsible headers (#1758) * chore: unit and component navigation (#1748) * chore: handle user interaction when user swipes quickly in page view controller (#1766) * chore: incorporate changes of course price and currency code for execute api in app_nav (#1768) * refactor: celebratory modal layout improvements (#1767) * chore: handle landscape for new dashboard and component navigation (#1769) * chore: address app nav feedback (#1772) * chore: fix title label constraint (#1775) * fix: revert of fix title label constraint (#1775)" (#1778) * fix: fix unable to dismiss an error message from course list screen (#1777) * fix: fix for subsection unwanted collapse (#1776) * fix: fix crash on new enrollment on course dashboard (#1781) * chore: expand next section after a section is marked as completed (#1782) * chore: update the edit screen title to Personal information (#1785) * chore: update shift dates banner on component screen (#1786) * chore: improve scrolling experience on discover title bar (#1788) * chore: handle header view in video block (#1798)
Description
LEARNER-9213