[iOS] update rutaxi icon and link in search categories
|
@ -2,17 +2,17 @@
|
|||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_vezet_light.png",
|
||||
"filename" : "ic_rutaxi_dark.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_vezet_light@2x.png",
|
||||
"filename" : "ic_rutaxi_dark@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_vezet_light@3x.png",
|
||||
"filename" : "ic_rutaxi_dark@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_dark.imageset/ic_rutaxi_dark.png
vendored
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_dark.imageset/ic_rutaxi_dark@2x.png
vendored
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_dark.imageset/ic_rutaxi_dark@3x.png
vendored
Normal file
After Width: | Height: | Size: 4.9 KiB |
23
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_light.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_rutaxi_light.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_rutaxi_light@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ic_rutaxi_light@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_light.imageset/ic_rutaxi_light.png
vendored
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_light.imageset/ic_rutaxi_light@2x.png
vendored
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_rutaxi_light.imageset/ic_rutaxi_light@3x.png
vendored
Normal file
After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB |
|
@ -103,7 +103,7 @@ static NSInteger const kRutaxiIndex = 6;
|
|||
- (void)cellDidPressAction:(MWMSearchBannerCell *)cell
|
||||
{
|
||||
[[UIApplication sharedApplication] openURL:
|
||||
[NSURL URLWithString:@"https://go.onelink.me/757212956/a81b5d7c"]];
|
||||
[NSURL URLWithString:@"https://go.onelink.me/2944814706/86db6339"]];
|
||||
}
|
||||
|
||||
- (void)cellDidPressClose:(MWMSearchBannerCell *)cell
|
||||
|
|
|
@ -7,8 +7,14 @@ protocol SearchBannerCellDelegate: AnyObject {
|
|||
@objc(MWMSearchBannerCell)
|
||||
class SearchBannerCell: MWMTableViewCell {
|
||||
|
||||
@IBOutlet var taxiImageView: UIImageView!
|
||||
@objc weak var delegate: SearchBannerCellDelegate?
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
taxiImageView.mwm_name = "ic_rutaxi"
|
||||
}
|
||||
|
||||
@IBAction private func onInstall(_ sender: UIButton) {
|
||||
delegate?.cellDidPressAction(self)
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" image="ic_vezet_light" translatesAutoresizingMaskIntoConstraints="NO" id="a9s-eh-L10" userLabel="Icon">
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" image="ic_rutaxi_light" translatesAutoresizingMaskIntoConstraints="NO" id="a9s-eh-L10" userLabel="Icon">
|
||||
<rect key="frame" x="16" y="8" width="28" height="28"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="28" id="UkL-Ob-9dH"/>
|
||||
|
@ -113,11 +113,14 @@
|
|||
</userDefinedRuntimeAttributes>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<connections>
|
||||
<outlet property="taxiImageView" destination="a9s-eh-L10" id="Lga-SX-Sev"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="52.799999999999997" y="48.575712143928037"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="ic_ad_close" width="8" height="8"/>
|
||||
<image name="ic_vezet_light" width="28" height="28"/>
|
||||
<image name="ic_rutaxi_light" width="40" height="40"/>
|
||||
</resources>
|
||||
</document>
|
||||
|
|