Commit 0356fd5c by Dmitriy Stepanets

Changed promo controller analytics events

parent 3879aac8
......@@ -56,10 +56,6 @@ class WidgetPromotionController: UIViewController {
updateUI()
AppAnalytics.shared.log(event: .ANALYTICS_WIDGET_PROMO_SEEN)
#warning("--LOOK-")
//In this version the promo controller opens fully everytime
AppAnalytics.shared.log(event: .ANALYTICS_WIDGET_PROMO_EXPAND)
}
override func viewDidAppear(_ animated: Bool) {
......@@ -110,7 +106,7 @@ class WidgetPromotionController: UIViewController {
duration = duration > 0.3 ? 0.3 : duration
if velocity.y >= 0 {
self.dismiss(animated: true)
self.close()
}
else {
UIView.animate(withDuration: duration) {
......@@ -118,6 +114,7 @@ class WidgetPromotionController: UIViewController {
} completion: {[weak self] _ in
if ( velocity.y < 0 ) {
self?.scrollView.isScrollEnabled = true
AppAnalytics.shared.log(event: .ANALYTICS_WIDGET_PROMO_EXPAND)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment