[iOS] update Whats New

This commit is contained in:
Aleksey Belouosv 2018-07-13 17:21:42 +03:00 committed by Vlad Mihaylenko
parent f454a9b1ca
commit 189dbd8c48
17 changed files with 70 additions and 13 deletions

View file

@ -2,17 +2,17 @@
"images" : [
{
"idiom" : "universal",
"filename" : "img_wn_business.png",
"filename" : "img_whats_hot_offers.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "img_wn_business@2x.png",
"filename" : "img_whats_hot_offers@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "img_wn_business@3x.png",
"filename" : "img_whats_hot_offers@3x.png",
"scale" : "3x"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "img_whats_new_catalog.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "img_whats_new_catalog@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "img_whats_new_catalog@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "img_whats_new_popular.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "img_whats_new_popular@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "img_whats_new_popular@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

View file

@ -331,14 +331,14 @@
<color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="linkBlue"/>
<userDefinedRuntimeAttribute type="string" keyPath="textColorHighlightedName" value="linkBlueHighlighted"/>
<userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="white"/>
<userDefinedRuntimeAttribute type="string" keyPath="textColorHighlightedName" value="white"/>
<userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="8"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="white"/>
<userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="white"/>
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="linkBlue"/>
<userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="linkBlueHighlighted"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="nextPage" destination="1Bf-CK-Osq" eventType="touchUpInside" id="jlv-4f-LM3"/>

View file

@ -9,15 +9,26 @@ final class WhatsNewController: WelcomeViewController {
let ctaButtonUrl: String?
}
static let ctaUrl = "https://b2b.maps.me/whatsnew/us"
static var welcomeConfigs: [WelcomeConfig] {
return [
WhatsNewConfig(image: #imageLiteral(resourceName: "img_wn_business"),
title: "whats_new_localbiz_title",
text: "whats_new_localbiz_message",
WhatsNewConfig(image: #imageLiteral(resourceName: "img_whats_new_catalog"),
title: "whats_new_bookmarks_catalog_title",
text: "whats_new_bookmarks_catalog_message",
buttonTitle: "whats_new_next_button",
ctaButtonTitle: nil,
ctaButtonUrl: nil),
WhatsNewConfig(image: #imageLiteral(resourceName: "img_whats_new_popular"),
title: "whats_new_popularity_label_title",
text: "whats_new_popularity_label_message",
buttonTitle: "whats_new_next_button",
ctaButtonTitle: nil,
ctaButtonUrl: nil),
WhatsNewConfig(image: #imageLiteral(resourceName: "img_whats_hot_offers"),
title: "whats_new_hot_offers_title",
text: "whats_new_hot_offers_message",
buttonTitle: "done",
ctaButtonTitle: "whats_new_order_button",
ctaButtonUrl: ctaUrl)
ctaButtonTitle: nil,
ctaButtonUrl: nil)
]
}