Showing
8 changed files
with
69 additions
and
3 deletions
| ... | @@ -62,6 +62,7 @@ class MapsViewController: UIViewController, MKMapViewDelegate { | ... | @@ -62,6 +62,7 @@ class MapsViewController: UIViewController, MKMapViewDelegate { |
| 62 | 62 | ||
| 63 | //directionsButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 16) | 63 | //directionsButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 16) |
| 64 | directionsButton.setTitle("Οδηγίες", for: .normal) | 64 | directionsButton.setTitle("Οδηγίες", for: .normal) |
| 65 | + directionsButton.setImage(UIImage(named: "ic_directions"), for: .normal) | ||
| 65 | //directionsButton.setTitleColor(.white, for: .normal) | 66 | //directionsButton.setTitleColor(.white, for: .normal) |
| 66 | //directionsButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00) | 67 | //directionsButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00) |
| 67 | //directionsButton.layer.cornerRadius = 12.0 | 68 | //directionsButton.layer.cornerRadius = 12.0 |
| ... | @@ -182,7 +183,7 @@ class MapsViewController: UIViewController, MKMapViewDelegate { | ... | @@ -182,7 +183,7 @@ class MapsViewController: UIViewController, MKMapViewDelegate { |
| 182 | } | 183 | } |
| 183 | 184 | ||
| 184 | // TODO: add custom pin image? | 185 | // TODO: add custom pin image? |
| 185 | - annotationView?.image = UIImage(named: "custom") | 186 | + //annotationView?.image = UIImage(named: "custom") |
| 186 | 187 | ||
| 187 | return annotationView | 188 | return annotationView |
| 188 | } | 189 | } | ... | ... |
| ... | @@ -81,7 +81,7 @@ | ... | @@ -81,7 +81,7 @@ |
| 81 | <constraint firstAttribute="height" constant="1" id="hMo-qH-T2k"/> | 81 | <constraint firstAttribute="height" constant="1" id="hMo-qH-T2k"/> |
| 82 | </constraints> | 82 | </constraints> |
| 83 | </view> | 83 | </view> |
| 84 | - <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="KhY-nt-uwH" userLabel="phoneIcon"> | 84 | + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_phone" translatesAutoresizingMaskIntoConstraints="NO" id="KhY-nt-uwH" userLabel="phoneIcon"> |
| 85 | <rect key="frame" x="30" y="164" width="20" height="20"/> | 85 | <rect key="frame" x="30" y="164" width="20" height="20"/> |
| 86 | <constraints> | 86 | <constraints> |
| 87 | <constraint firstAttribute="height" constant="20" id="1rt-pN-Dld"/> | 87 | <constraint firstAttribute="height" constant="20" id="1rt-pN-Dld"/> |
| ... | @@ -101,7 +101,7 @@ | ... | @@ -101,7 +101,7 @@ |
| 101 | <constraint firstAttribute="height" constant="1" id="vSP-6I-Lz6"/> | 101 | <constraint firstAttribute="height" constant="1" id="vSP-6I-Lz6"/> |
| 102 | </constraints> | 102 | </constraints> |
| 103 | </view> | 103 | </view> |
| 104 | - <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Bic-c4-J9E" userLabel="AddressIcon"> | 104 | + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_address" translatesAutoresizingMaskIntoConstraints="NO" id="Bic-c4-J9E" userLabel="AddressIcon"> |
| 105 | <rect key="frame" x="30" y="240.5" width="20" height="20"/> | 105 | <rect key="frame" x="30" y="240.5" width="20" height="20"/> |
| 106 | <constraints> | 106 | <constraints> |
| 107 | <constraint firstAttribute="height" constant="20" id="A8o-MY-I6f"/> | 107 | <constraint firstAttribute="height" constant="20" id="A8o-MY-I6f"/> |
| ... | @@ -193,6 +193,8 @@ | ... | @@ -193,6 +193,8 @@ |
| 193 | </designable> | 193 | </designable> |
| 194 | </designables> | 194 | </designables> |
| 195 | <resources> | 195 | <resources> |
| 196 | + <image name="ic_address" width="12.5" height="17"/> | ||
| 197 | + <image name="ic_phone" width="15.5" height="15.5"/> | ||
| 196 | <systemColor name="systemBackgroundColor"> | 198 | <systemColor name="systemBackgroundColor"> |
| 197 | <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | 199 | <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
| 198 | </systemColor> | 200 | </systemColor> | ... | ... |
SwiftWarplyFramework/SwiftWarplyFramework/Media.xcassets/ic_address.imageset/Contents.json
0 → 100644
| 1 | +{ | ||
| 2 | + "images" : [ | ||
| 3 | + { | ||
| 4 | + "idiom" : "universal", | ||
| 5 | + "scale" : "1x" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "filename" : "ic_pin_location.png", | ||
| 9 | + "idiom" : "universal", | ||
| 10 | + "scale" : "2x" | ||
| 11 | + }, | ||
| 12 | + { | ||
| 13 | + "idiom" : "universal", | ||
| 14 | + "scale" : "3x" | ||
| 15 | + } | ||
| 16 | + ], | ||
| 17 | + "info" : { | ||
| 18 | + "author" : "xcode", | ||
| 19 | + "version" : 1 | ||
| 20 | + } | ||
| 21 | +} |
SwiftWarplyFramework/SwiftWarplyFramework/Media.xcassets/ic_address.imageset/ic_pin_location.png
0 → 100644
757 Bytes
SwiftWarplyFramework/SwiftWarplyFramework/Media.xcassets/ic_directions.imageset/Contents.json
0 → 100644
| 1 | +{ | ||
| 2 | + "images" : [ | ||
| 3 | + { | ||
| 4 | + "idiom" : "universal", | ||
| 5 | + "scale" : "1x" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "filename" : "ic_pin_compass.png", | ||
| 9 | + "idiom" : "universal", | ||
| 10 | + "scale" : "2x" | ||
| 11 | + }, | ||
| 12 | + { | ||
| 13 | + "idiom" : "universal", | ||
| 14 | + "scale" : "3x" | ||
| 15 | + } | ||
| 16 | + ], | ||
| 17 | + "info" : { | ||
| 18 | + "author" : "xcode", | ||
| 19 | + "version" : 1 | ||
| 20 | + } | ||
| 21 | +} |
SwiftWarplyFramework/SwiftWarplyFramework/Media.xcassets/ic_directions.imageset/ic_pin_compass.png
0 → 100644
997 Bytes
| 1 | +{ | ||
| 2 | + "images" : [ | ||
| 3 | + { | ||
| 4 | + "idiom" : "universal", | ||
| 5 | + "scale" : "1x" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "filename" : "ic_pin_tel.png", | ||
| 9 | + "idiom" : "universal", | ||
| 10 | + "scale" : "2x" | ||
| 11 | + }, | ||
| 12 | + { | ||
| 13 | + "idiom" : "universal", | ||
| 14 | + "scale" : "3x" | ||
| 15 | + } | ||
| 16 | + ], | ||
| 17 | + "info" : { | ||
| 18 | + "author" : "xcode", | ||
| 19 | + "version" : 1 | ||
| 20 | + } | ||
| 21 | +} |
-
Please register or login to post a comment