Skip to content

Conversation

@Ostrenkiy
Copy link
Contributor

Задача: #APPS-1735

Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Добавили тултипы для подсказок пользователю

Описание:
Используется фреймворк EasyTipView.
Тултипы перекрыты протоколом Tooltip, создаются в TooltipFactory. Дальше тултипы появляются во всем местах, указанных в задаче #APPS-1605.
В UIColorExtensions добавлен thirdColor = UIColor(hex: 0x54a2ff)

@Ostrenkiy Ostrenkiy added the main label Jan 23, 2018
@Ostrenkiy Ostrenkiy added this to the 1.51 milestone Jan 23, 2018
@Ostrenkiy Ostrenkiy self-assigned this Jan 23, 2018
@Ostrenkiy Ostrenkiy requested a review from kvld January 23, 2018 19:52
pod 'Atributika', '~> 4.0'
pod 'DeviceKit', '~> 1.0'
pod 'lottie-ios'
pod 'EasyTipView', :git => 'https://github.com/igorkislyuk/EasyTipView.git'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему какой-то форк юзаем? Swift 4?

Copy link
Contributor Author

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 {
Copy link
Contributor

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) { ... }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

норм, берем на заметку, но пока так мерджим

@Ostrenkiy Ostrenkiy merged commit 655af77 into dev Jan 25, 2018
@Ostrenkiy Ostrenkiy mentioned this pull request Jan 28, 2018
@kvld kvld deleted the feature/tooltips branch January 29, 2019 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants