diff --git a/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/Contents.json b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/Contents.json new file mode 100644 index 0000000000..17d3fbb2d4 --- /dev/null +++ b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "img_whatsnew_trial.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "img_whatsnew_trial@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "img_whatsnew_trial@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial.png b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial.png new file mode 100644 index 0000000000..4d326273b7 Binary files /dev/null and b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial.png differ diff --git a/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@2x.png b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@2x.png new file mode 100644 index 0000000000..27041733ab Binary files /dev/null and b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@2x.png differ diff --git a/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@3x.png b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@3x.png new file mode 100644 index 0000000000..552ee2be24 Binary files /dev/null and b/iphone/Maps/Images.xcassets/img_whatsnew_trial.imageset/img_whatsnew_trial@3x.png differ diff --git a/iphone/Maps/UI/Welcome/WhatsNew/WhatsNewBuilder.swift b/iphone/Maps/UI/Welcome/WhatsNew/WhatsNewBuilder.swift index bf6055646c..28f780b463 100644 --- a/iphone/Maps/UI/Welcome/WhatsNew/WhatsNewBuilder.swift +++ b/iphone/Maps/UI/Welcome/WhatsNew/WhatsNewBuilder.swift @@ -1,10 +1,18 @@ class WhatsNewBuilder { static var configs:[WhatsNewPresenter.WhatsNewConfig] { return [ - WhatsNewPresenter.WhatsNewConfig(image: UIImage(named: "img_wnew_newguides"), - title: "whatsnew_guides_on_map_title", - text: "whatsnew_guides_on_map_message", - buttonNextTitle: "done") + WhatsNewPresenter.WhatsNewConfig(image: UIImage(named: "img_whatsnew_trial.png"), + title: "whatsnew_trial_title", + text: "whatsnew_trial_message", + buttonNextTitle: "whatsnew_trial_cta", + action: { + let subscribeViewController = SubscriptionViewBuilder.build(type: .allPass, + parentViewController: MapViewController.shared(), + source: kStatOnboardingGuidesSubscription, + successDialog: .goToCatalog, + completion: nil) + MapViewController.shared().present(subscribeViewController, animated: true) + }) ] }