Commit bd5171f7 by Dmitriy Stepanets

Little UI changes

parent 867a91f2
{
"images" : [
{
"filename" : "cross_icon.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
...@@ -68,6 +68,11 @@ class MapButton: UIControl { ...@@ -68,6 +68,11 @@ class MapButton: UIControl {
self.imageView.tintColor = .white self.imageView.tintColor = .white
} }
} }
//Public
public func setImage(image:UIImage?) {
self.imageView.image = image
}
} }
//MARK:- Prepare //MARK:- Prepare
......
...@@ -92,6 +92,7 @@ class RadarViewController: UIViewController { ...@@ -92,6 +92,7 @@ class RadarViewController: UIViewController {
update.height.equalTo(kPinnedLayersHeight + tabBarHeight) update.height.equalTo(kPinnedLayersHeight + tabBarHeight)
} }
isFullScreen = false isFullScreen = false
fullScreenButton.setImage(image: UIImage(named: "map_fullscreen"))
} }
else { else {
self.navigationController?.setNavigationBarHidden(true, animated: true) self.navigationController?.setNavigationBarHidden(true, animated: true)
...@@ -100,6 +101,7 @@ class RadarViewController: UIViewController { ...@@ -100,6 +101,7 @@ class RadarViewController: UIViewController {
update.height.equalTo(kPinnedLayersHeight + view.safeAreaInsets.bottom) update.height.equalTo(kPinnedLayersHeight + view.safeAreaInsets.bottom)
} }
isFullScreen = true isFullScreen = true
fullScreenButton.setImage(image: UIImage(named: "cross_icon"))
} }
self.view.setNeedsLayout() self.view.setNeedsLayout()
......
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