Commit 656262f4 authored by Deployer's avatar Deployer

Fixes demo app layout on iPad.

parent 4e7b809f
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'CedarMaps'
s.version = '3.1.0'
s.version = '3.1.1'
s.summary = 'CedarMaps iOS SDK'
# This description is used to generate tags and improve search results.
......
......@@ -92,13 +92,13 @@
typedef void (^CSForwardGeocodeCompletionHandler)(NSArray<CSForwardGeocodePlacemark *> * __nullable placemarks, NSError * __nullable error);
typedef NS_OPTIONS(NSUInteger, CSPlacemarkType) {
CSPlacemarkTypeAll = 0,
CSPlacemarkTypeRoundabout = 1 << 0,
CSPlacemarkTypeStreet = 1 << 1,
CSPlacemarkTypeFreeway = 1 << 2,
CSPlacemarkTypeExpressway = 1 << 3,
CSPlacemarkTypeBoulevard = 1 << 4,
CSPlacemarkTypeLocality = 1 << 5,
CSPlacemarkTypePOI = 1 << 6
CSPlacemarkTypeAll = 1 << 0,
CSPlacemarkTypeRoundabout = 1 << 1,
CSPlacemarkTypeStreet = 1 << 2,
CSPlacemarkTypeFreeway = 1 << 3,
CSPlacemarkTypeExpressway = 1 << 4,
CSPlacemarkTypeBoulevard = 1 << 5,
CSPlacemarkTypeLocality = 1 << 6,
CSPlacemarkTypePOI = 1 << 7
};
NSString* _Nonnull stringValueForPlacemarkType(CSPlacemarkType type);
......@@ -162,6 +162,15 @@
/**
Implementation is not final yet. DO NOT USE.
*/
- (void)geocodeAddressString:(nonnull NSString *)addressString
inProximity:(CLLocationCoordinate2D)coordinate
withType:(CSPlacemarkType)type
limit:(NSInteger)limit
completionHandler:(nonnull CSForwardGeocodeCompletionHandler)completionHandler;
/**
* This method calculates directions using car profile between a source and a destination.
*
* Up to 100 pairs of source and destionation points can be provided to calculate a multiple step routing.
......
......@@ -271,6 +271,35 @@ typedef void (^CSNetworkResponseCompletionHandler)(NSData * _Nullable data, NSUR
[self parseGeocodingResponseForURLString:urlStr completionHandler:completionHandler];
}
- (void)geocodeAddressString:(NSString *)addressString
inProximity:(CLLocationCoordinate2D)coordinate
withType:(CSPlacemarkType)type
limit:(NSInteger)limit
completionHandler:(CSForwardGeocodeCompletionHandler)completionHandler {
if (addressString.length == 0) {
completionHandler(nil, [CSError errorWithDescription:@"Empty input"]);
return;
}
int limitParam = MIN(MAX((int)limit, 1), 30);
NSString *urlStr = [NSString stringWithFormat:@"%@geocode/%@/%@?limit=%i&proximity=%f,%f",
[CSAuthenticationManager.sharedAuthenticationManager baseURL],
self.mapID,
addressString,
limitParam,
coordinate.latitude,
coordinate.longitude];
NSString *typeParam = stringValueForPlacemarkType(type);
if (typeParam.length > 0) {
urlStr = [urlStr stringByAppendingFormat:@"&type=%@", typeParam];
}
[self parseGeocodingResponseForURLString:urlStr completionHandler:completionHandler];
}
- (void)parseGeocodingResponseForURLString:(nonnull NSString *)urlStr
completionHandler:(CSForwardGeocodeCompletionHandler)completionHandler {
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="NOl-zx-EhM">
<device id="retina4_7" orientation="portrait">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="NOl-zx-EhM">
<device id="ipad9_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="Stack View standard spacing" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......@@ -19,11 +16,11 @@
<objects>
<viewController id="whP-gf-Uak" customClass="CSMapViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7Id-ZZ-Ln3" customClass="CSMapView">
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="974"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="minimumZoomLevel">
......@@ -44,7 +41,7 @@
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4Hl-h6-0yv">
<rect key="frame" x="283" y="526" width="60" height="60"/>
<rect key="frame" x="676" y="882" width="60" height="60"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="KBM-aL-A04"/>
<constraint firstAttribute="width" secondItem="4Hl-h6-0yv" secondAttribute="height" multiplier="1:1" id="xeM-51-Tee"/>
......@@ -104,11 +101,11 @@
<objects>
<viewController id="uKR-kw-mEP" customClass="CSReverseGeocodeViewController" customModule="CedarMaps_Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="C3j-UJ-ykH">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pVV-Ju-c4a" customClass="CSMapView">
<rect key="frame" x="0.0" y="0.0" width="375" height="618"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="974"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="minimumZoomLevel">
......@@ -129,23 +126,23 @@
</userDefinedRuntimeAttributes>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="marker_icon_default" translatesAutoresizingMaskIntoConstraints="NO" id="0WP-h8-iRY">
<rect key="frame" x="165.5" y="259" width="45" height="101"/>
<rect key="frame" x="361.5" y="436.5" width="45" height="101"/>
<constraints>
<constraint firstAttribute="width" constant="45" id="6N5-dc-qkf"/>
<constraint firstAttribute="height" constant="101" id="6be-dZ-V8d"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="apc-53-MlJ">
<rect key="frame" x="155.5" y="532" width="64" height="46"/>
<rect key="frame" x="352" y="889" width="64" height="45"/>
<subviews>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hLz-Kf-n3t">
<rect key="frame" x="8" y="8" width="48" height="30"/>
<rect key="frame" x="8" y="8" width="48" height="29"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle2"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="whiteLarge" translatesAutoresizingMaskIntoConstraints="NO" id="HS7-2V-2h6">
<rect key="frame" x="13" y="5" width="37" height="37"/>
<rect key="frame" x="13.5" y="4" width="37" height="37"/>
<color key="color" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
</activityIndicatorView>
</subviews>
......@@ -197,11 +194,11 @@
<objects>
<viewController id="SgC-FV-Jfi" customClass="CSDirectionsViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="7sS-cy-MOz">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ffz-NC-PvM" customClass="CSMapView">
<rect key="frame" x="0.0" y="0.0" width="375" height="429.5"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="806"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="minimumZoomLevel">
......@@ -222,10 +219,10 @@
</userDefinedRuntimeAttributes>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="1J2-cZ-COW">
<rect key="frame" x="16" y="437.5" width="343" height="172.5"/>
<rect key="frame" x="16" y="814" width="736" height="152"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zVf-Bh-Dpr">
<rect key="frame" x="0.0" y="0.0" width="343" height="20.5"/>
<rect key="frame" x="0.0" y="0.0" width="736" height="20.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="252" verticalHuggingPriority="251" text="Distance: " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dgd-97-9ef">
<rect key="frame" x="0.0" y="0.0" width="76" height="20.5"/>
......@@ -234,7 +231,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="6.53 Km" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yGq-pA-gbd">
<rect key="frame" x="76" y="0.0" width="267" height="20.5"/>
<rect key="frame" x="76" y="0.0" width="660" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
......@@ -242,7 +239,7 @@
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iuq-mN-QRR">
<rect key="frame" x="0.0" y="28.5" width="343" height="50"/>
<rect key="frame" x="0.0" y="28.5" width="736" height="50"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="pED-mH-G6o"/>
</constraints>
......@@ -253,10 +250,10 @@
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LC8-bz-hh8">
<rect key="frame" x="0.0" y="86.5" width="343" height="41"/>
<rect key="frame" x="0.0" y="86.5" width="736" height="20.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" text="Tap on the map to choose Departure and Destination points" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Rq-z4-inE">
<rect key="frame" x="8" y="0.0" width="327" height="41"/>
<rect key="frame" x="8" y="0.0" width="720" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
......@@ -271,7 +268,7 @@
</constraints>
</view>
<activityIndicatorView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" style="whiteLarge" translatesAutoresizingMaskIntoConstraints="NO" id="rdD-yL-w8o">
<rect key="frame" x="0.0" y="135.5" width="343" height="37"/>
<rect key="frame" x="0.0" y="115" width="736" height="37"/>
<color key="color" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
</activityIndicatorView>
</subviews>
......@@ -309,11 +306,11 @@
<objects>
<viewController id="IhO-kb-0iD" customClass="CSMapSnapshotViewController" customModule="CedarMaps_Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="LuF-Ni-QWQ">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Tq4-cK-hAf">
<rect key="frame" x="0.0" y="0.0" width="375" height="225"/>
<rect key="frame" x="0.0" y="0.0" width="384" height="964.5"/>
<color key="backgroundColor" red="0.86274509803921573" green="0.86274509803921573" blue="0.86274509803921573" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="Tq4-cK-hAf" secondAttribute="height" multiplier="5:3" id="5WQ-7y-2eo"/>
......@@ -323,37 +320,42 @@
<exclude reference="5WQ-7y-2eo"/>
</mask>
</variation>
<variation key="widthClass=regular">
<mask key="constraints">
<exclude reference="5WQ-7y-2eo"/>
</mask>
</variation>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tap on the button to create a map snapshot for entered values." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uvq-Cl-QFn">
<rect key="frame" x="24.5" y="93.5" width="326" height="38"/>
<rect key="frame" x="29" y="463.5" width="326" height="38"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleSubhead"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="whiteLarge" translatesAutoresizingMaskIntoConstraints="NO" id="nIG-BA-9sV">
<rect key="frame" x="169.5" y="94.5" width="37" height="37"/>
<rect key="frame" x="173.5" y="464" width="37" height="37"/>
<color key="color" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
</activityIndicatorView>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qj6-4s-Rjp">
<rect key="frame" x="0.0" y="225" width="375" height="393"/>
<rect key="frame" x="384" y="20" width="384" height="954"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nf1-PR-U0M">
<rect key="frame" x="0.0" y="0.0" width="375" height="313.5"/>
<rect key="frame" x="0.0" y="0.0" width="384" height="313.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="rKC-4u-can">
<rect key="frame" x="20" y="20" width="335" height="195.5"/>
<rect key="frame" x="20" y="20" width="344" height="195.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="afA-EF-DdR">
<rect key="frame" x="0.0" y="0.0" width="335" height="54.5"/>
<rect key="frame" x="0.0" y="0.0" width="344" height="54.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Latitude for Center Point" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ozJ-AE-hPZ">
<rect key="frame" x="0.0" y="0.0" width="335" height="20.5"/>
<rect key="frame" x="0.0" y="0.0" width="344" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="35.7454" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="7Kd-VU-rTF">
<rect key="frame" x="0.0" y="24.5" width="335" height="30"/>
<rect key="frame" x="0.0" y="24.5" width="344" height="30"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleCallout"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="decimalPad" keyboardAppearance="light" returnKeyType="next" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no"/>
......@@ -361,16 +363,16 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="CMa-Bq-5GP">
<rect key="frame" x="0.0" y="70.5" width="335" height="54.5"/>
<rect key="frame" x="0.0" y="70.5" width="344" height="54.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Longitude for Center Point" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cKo-k8-k6G">
<rect key="frame" x="0.0" y="0.0" width="335" height="20.5"/>
<rect key="frame" x="0.0" y="0.0" width="344" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="51.3572" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="PuK-NC-TRb">
<rect key="frame" x="0.0" y="24.5" width="335" height="30"/>
<rect key="frame" x="0.0" y="24.5" width="344" height="30"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleCallout"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="decimalPad" keyboardAppearance="light" returnKeyType="next" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no"/>
......@@ -378,16 +380,16 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="W1L-wX-HiF">
<rect key="frame" x="0.0" y="141" width="335" height="54.5"/>
<rect key="frame" x="0.0" y="141" width="344" height="54.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Zoom Level" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lra-Fx-K0F">
<rect key="frame" x="0.0" y="0.0" width="335" height="20.5"/>
<rect key="frame" x="0.0" y="0.0" width="344" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="13" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="oFs-ns-oJV">
<rect key="frame" x="0.0" y="24.5" width="335" height="30"/>
<rect key="frame" x="0.0" y="24.5" width="344" height="30"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleCallout"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="numberPad" keyboardAppearance="light" returnKeyType="go" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no"/>
......@@ -397,7 +399,7 @@
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3eM-lp-ybO">
<rect key="frame" x="19.5" y="239.5" width="335" height="50"/>
<rect key="frame" x="20" y="239.5" width="344" height="50"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="r0H-HC-LHj"/>
</constraints>
......@@ -493,6 +495,21 @@
<include reference="JGE-SP-eSP"/>
</mask>
</variation>
<variation key="widthClass=regular">
<mask key="constraints">
<include reference="UQ8-Be-iAP"/>
<exclude reference="JRf-dH-US7"/>
<exclude reference="arf-Hi-fi8"/>
<include reference="hVq-yy-PRv"/>
<exclude reference="DZg-ob-FrC"/>
<exclude reference="Oqk-Hj-DXg"/>
<include reference="Qez-I7-9Mb"/>
<include reference="hPc-X8-dFp"/>
<include reference="j37-5O-bLv"/>
<exclude reference="CAu-RF-uag"/>
<include reference="JGE-SP-eSP"/>
</mask>
</variation>
</view>
<tabBarItem key="tabBarItem" title="Snapshot" image="statmap" id="nz9-6B-3Hs"/>
<navigationItem key="navigationItem" id="yQy-Ay-Ojy"/>
......@@ -516,11 +533,11 @@
<objects>
<viewController id="OOP-uM-3ZW" customClass="CSForwardGeocodeViewController" customModule="CedarMaps_Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="vAi-MA-xic">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jfJ-HA-Tn5" customClass="CSMapView">
<rect key="frame" x="0.0" y="64" width="375" height="554"/>
<rect key="frame" x="0.0" y="70" width="768" height="904"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="minimumZoomLevel">
......@@ -541,22 +558,22 @@
</userDefinedRuntimeAttributes>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="oNi-AW-2vY">
<rect key="frame" x="0.0" y="64" width="375" height="554"/>
<rect key="frame" x="0.0" y="70" width="768" height="904"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<viewLayoutGuide key="safeArea" id="qh1-dm-kzs"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="CSSearchResultCell" rowHeight="92" id="IXi-hc-yWn" customClass="CSSearchResultCell" customModule="CedarMaps_Example" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="92"/>
<rect key="frame" x="0.0" y="28" width="768" height="92"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="IXi-hc-yWn" id="CrI-wG-JUe">
<rect key="frame" x="0.0" y="0.0" width="375" height="91.5"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="91.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" semanticContentAttribute="forceRightToLeft" axis="vertical" alignment="top" translatesAutoresizingMaskIntoConstraints="NO" id="GrC-rT-daj" userLabel="Name &amp; Address">
<rect key="frame" x="20" y="11" width="335" height="70"/>
<rect key="frame" x="20" y="11" width="984" height="70"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" semanticContentAttribute="forceRightToLeft" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="Ssy-Op-k8a">
<rect key="frame" x="243" y="0.0" width="92" height="20.5"/>
<rect key="frame" x="892" y="0.0" width="92" height="20.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X4G-5I-PLA">
<rect key="frame" x="50" y="0.0" width="42" height="20.5"/>
......@@ -573,7 +590,7 @@
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Knc-SY-RVC">
<rect key="frame" x="293" y="20.5" width="42" height="49.5"/>
<rect key="frame" x="942" y="20.5" width="42" height="49.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
......@@ -629,7 +646,7 @@
<tabBarItem key="tabBarItem" title="Search" image="forward_geocode" id="M4J-v4-I5V"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="HCZ-3h-LQc">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<rect key="frame" x="0.0" y="20" width="768" height="50"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
......
......@@ -9,7 +9,7 @@
import UIKit
import CedarMaps
class CSForwardGeocodeViewController: UIViewController {
final class CSForwardGeocodeViewController: UIViewController {
private var filteredResults = [CSForwardGeocodePlacemark]() {
didSet {
......
......@@ -9,7 +9,7 @@
import UIKit
import CedarMaps
class CSMapSnapshotViewController: KeyboardEntryViewController {
final class CSMapSnapshotViewController: KeyboardEntryViewController {
@IBOutlet private weak var imageView: UIImageView!
@IBOutlet private weak var hintLabel: UILabel!
......
......@@ -9,7 +9,7 @@
import UIKit
import CedarMaps
class CSReverseGeocodeViewController: UIViewController {
final class CSReverseGeocodeViewController: UIViewController {
@IBOutlet private weak var mapView: CSMapView! {
didSet {
......
......@@ -9,7 +9,7 @@
import UIKit
import CedarMaps
class CSSearchResultCell: UITableViewCell {
final class CSSearchResultCell: UITableViewCell {
var placemark: CSForwardGeocodePlacemark! {
didSet {
......
PODS:
- CedarMaps (3.1.0):
- CedarMaps (3.1.1):
- Mantle (~> 2.1)
- Mapbox-iOS-SDK (~> 4.0)
- Mantle (2.1.0):
- Mantle/extobjc (= 2.1.0)
- Mantle/extobjc (2.1.0)
- Mapbox-iOS-SDK (4.2.0)
- Mapbox-iOS-SDK (4.4.1)
DEPENDENCIES:
- CedarMaps (from `../`)
......@@ -20,9 +20,9 @@ EXTERNAL SOURCES:
:path: "../"
SPEC CHECKSUMS:
CedarMaps: ae649c5786fbbceac6ce2a3e69ca5f6a692c6b25
CedarMaps: 8ec531d1ce64ee3fea8dedb082c20fd3fe4c4257
Mantle: 2fa750afa478cd625a94230fbf1c13462f29395b
Mapbox-iOS-SDK: 706d52e3ad095e16944d9643f37d5a97627f6c19
Mapbox-iOS-SDK: e6a4f236c77f914ca2e19b929c6cc6b077ba1c4c
PODFILE CHECKSUM: ad43b9956cf1f58bff64834a5e21f42f322108fa
......
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