Skip to content

Conversation

@kvld
Copy link
Contributor

@kvld kvld commented Dec 12, 2017

Задача: #APPS-1651

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

Описание:
Анимированный с помощью Lottie онбординг.

TODO

  • fade эффект для лендскейпа
  • расчёт высоты для лендскейпа
  • размер шрифта и верстка на планшетах
  • локализация
  • запуск только при первом открытии
  • аналитика

@kvld kvld added the main label Dec 12, 2017
@kvld kvld added this to the 1.49 milestone Dec 12, 2017
@kvld kvld self-assigned this Dec 12, 2017
@kvld kvld requested a review from Ostrenkiy December 12, 2017 11:47
Copy link
Contributor

@Ostrenkiy Ostrenkiy left a comment

Choose a reason for hiding this comment

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

Вообще хорошо, можно мерджить.
Но лучше поправить пару замечаний

private var scrollView: UIScrollView!
fileprivate var pages: [OnboardingPageView] = []

private var backgroundGradient: CAGradientLayer = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Может это стоит вынести в какое-нибудь отдельное место? Кажется, это может много где пригодиться

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Вынести код создания градиента с заданным углом? Можно сделать какой-нибудь extension (например, для CAGradient).

Copy link
Contributor

Choose a reason for hiding this comment

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

Да. Можно даже с одним углом (чтобы во всем приложении все градиенты были одинаковые).
В каталоге ведь такие же градиенты используются сейчас, кажется

private var titles = (1...4).map { NSLocalizedString("OnboardingTitle\($0)", comment: "")}
private var descriptions = (1...4).map { NSLocalizedString("OnboardingDescription\($0)", comment: "")}

fileprivate var isLandscape: Bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Может это в DeviceInfo вынести?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Вообще, тут немного в нейминге дело – он немного путает. Изначально планировалось, что это поле true для случаев, когда необходимо показывать лэйаут "как в лендскейпе". То есть включая лэндскейпы, но не ограничиваясь ими (в какой-то момент правда отпала необходимость в этом).

Copy link
Contributor

@Ostrenkiy Ostrenkiy left a comment

Choose a reason for hiding this comment

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

круто!

@kvld kvld merged commit e3fb82a into dev Dec 13, 2017
@kvld kvld deleted the feature/onboarding branch December 13, 2017 23:44
@Ostrenkiy Ostrenkiy mentioned this pull request Dec 16, 2017
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