-
Notifications
You must be signed in to change notification settings - Fork 34
Tooltips #218
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
Tooltips #218
Conversation
| pod 'Atributika', '~> 4.0' | ||
| pod 'DeviceKit', '~> 1.0' | ||
| pod 'lottie-ios' | ||
| pod 'EasyTipView', :git => 'https://github.com/igorkislyuk/EasyTipView.git' |
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.
А почему какой-то форк юзаем? Swift 4?
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.
да
| private let didShowOnHomeContinueLearningKey = "didShowOnHomeContinueLearningKey" | ||
| private let didShowOnStreaksSwitchInProfileKey = "didShowOnStreaksSwitchInProfileKey" | ||
|
|
||
| var didShowOnLessonDownloads: Bool { |
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.
И у нас на каждый тултип геттер и сеттер? Может быть это можно было написать оптимальнее – возможно, это не так удобно, но не надо зато копипастить будет в будущем.
Например:
enum TooltipType {
var key: String {
switch self { ... }
}
case lessonDownloads, streaksSwitchInProfile
}
func didShowTooltip(with type: TooltipType) -> Bool { ... }
func shouldShowTooltip(with type: TooltipType) -> Bool { ... }
func updateTooltip(with type: TooltipType, show: Bool) { ... }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.
норм, берем на заметку, но пока так мерджим
Задача: #APPS-1735
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Добавили тултипы для подсказок пользователю
Описание:
Используется фреймворк EasyTipView.
Тултипы перекрыты протоколом
Tooltip, создаются вTooltipFactory. Дальше тултипы появляются во всем местах, указанных в задаче #APPS-1605.В
UIColorExtensionsдобавленthirdColor = UIColor(hex: 0x54a2ff)