-
Notifications
You must be signed in to change notification settings - Fork 35
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
New exam lessons screen #351
Conversation
LessonsViewData( | ||
id: $0.id, | ||
title: $0.title, | ||
subtitle: countLocalizedString( |
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.
Это pluralize? Уже есть хелпер в /StepicAdaptiveCourse/StringHelper.swift, он не подходит?
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.
Про такую штуку не знал, попробую.
Stringsdict вроде бы стандарт для таких ситуаций 🤔
|
||
import Foundation | ||
|
||
final class LessonHeaderTableView: UIView { |
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.
Кмк, это все таки LessonTableHeaderView
:)
|
||
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { | ||
super.viewWillTransition(to: size, with: coordinator) | ||
triggerHeaderViewLayoutUpdate() |
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.
Аналогично тому, что уже обсуждали. Давай тогда использовать здесь координатор.
tableView.rowHeight = UITableViewAutomaticDimension | ||
tableView.estimatedRowHeight = appearance.tableViewEstimatedRowHeight | ||
|
||
tableView.tableHeaderView = LessonHeaderTableView.fromNib() as LessonHeaderTableView |
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.
Можно без указания типов два раза и без optional:
let headerView: LessonHeaderTableView = .fromNib()
headerView.layer.insertSublayer(headerViewGradient, at: 0)
tableView.tableHeaderView = headerView
Задача: #APPS-2006
Описание:
Обновили внешний вид экрана темы.