Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #974 from Esri/v.next
Browse files Browse the repository at this point in the history
Update: master branch for 100.9 new samples
  • Loading branch information
yo1995 authored Oct 5, 2020
2 parents 91459c9 + 8c9e7b8 commit 1111077
Show file tree
Hide file tree
Showing 149 changed files with 4,147 additions and 1,375 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ArcGIS Runtime SDK for iOS Samples [![](https://user-images.githubusercontent.co

This repository contains Swift sample code demonstrating the capabilities of [ArcGIS Runtime SDK for iOS](https://developers.arcgis.com/ios/latest/) and how to use them in your own app. The project that can be opened in Xcode and run on a simulator or a device. Or you can [download the app from the App Store](https://itunes.apple.com/us/app/arcgis-runtime-sdk-for-ios/id1180714771) on your iOS device.

![](SampleApp.png)
![Samples app](SamplesApp.png)

The ```master``` branch of this repository contains samples configured for the latest available version of ArcGIS Runtime SDK for iOS. For samples configured for older versions of the SDK, look under the ```Releases``` tab for a specific version.

Expand Down
Binary file removed SampleApp.png
Binary file not shown.
Binary file added SamplesApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
242 changes: 158 additions & 84 deletions arcgis-ios-sdk-samples.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="4N4-pC-hxn">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="4N4-pC-hxn">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<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"/>
Expand All @@ -14,17 +12,17 @@
<!--Distance Measurement Analysis View Controller-->
<scene sceneID="plu-kI-xVG">
<objects>
<viewController id="4N4-pC-hxn" customClass="DistanceMeasurementAnalysisViewController" customModule="arcgis_ios_sdk_samples" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="4N4-pC-hxn" customClass="DistanceMeasurementAnalysisViewController" customModule="ArcGIS_Runtime_SDK_Samples" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="VXA-Qj-CWg">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Lca-PN-o2a" customClass="AGSSceneView">
<rect key="frame" x="0.0" y="20" width="375" height="533.5"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="550.5"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="XXR-zA-mj9">
<rect key="frame" x="0.0" y="553.5" width="375" height="113.5"/>
<rect key="frame" x="0.0" y="550.5" width="375" height="116.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="AjR-yo-7B5">
<rect key="frame" x="8" y="8" width="359" height="61.5"/>
Expand Down Expand Up @@ -78,7 +76,7 @@
</subviews>
</stackView>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="1" translatesAutoresizingMaskIntoConstraints="NO" id="Fyf-B7-vQT">
<rect key="frame" x="8" y="77.5" width="359" height="29"/>
<rect key="frame" x="8" y="77.5" width="359" height="32"/>
<segments>
<segment title="Imperial"/>
<segment title="Metric"/>
Expand All @@ -105,7 +103,6 @@
</view>
<connections>
<outlet property="directMeasurementLabel" destination="BJc-4I-mxp" id="vrg-6H-XkO"/>
<outlet property="distanceView" destination="XXR-zA-mj9" id="v8v-li-5lb"/>
<outlet property="horizontalMeasurementLabel" destination="rSN-ub-Sr9" id="kzM-n7-equ"/>
<outlet property="sceneView" destination="Lca-PN-o2a" id="puc-r0-Ws5"/>
<outlet property="verticalMeasurementLabel" destination="Xef-3p-Pr6" id="13h-bN-NAm"/>
Expand All @@ -116,4 +113,10 @@
<point key="canvasLocation" x="16.800000000000001" y="165.96701649175412"/>
</scene>
</scenes>
<color key="tintColor" name="AccentColor"/>
<resources>
<namedColor name="AccentColor">
<color red="0.51399999856948853" green="0.18400000035762787" blue="0.7369999885559082" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class DistanceMeasurementAnalysisViewController: UIViewController, AGSGeoViewTou

/// The scene view managed by the view controller.
@IBOutlet weak var sceneView: AGSSceneView!
/// The view for displaying distances.
@IBOutlet weak var distanceView: UIView!
@IBOutlet weak var directMeasurementLabel: UILabel!
@IBOutlet weak var horizontalMeasurementLabel: UILabel!
@IBOutlet weak var verticalMeasurementLabel: UILabel!
Expand Down Expand Up @@ -84,10 +82,6 @@ class DistanceMeasurementAnalysisViewController: UIViewController, AGSGeoViewTou
let analysisOverlay = AGSAnalysisOverlay()
analysisOverlay.analyses.add(locationDistanceMeasurement)
sceneView.analysisOverlays.add(analysisOverlay)

distanceView.backgroundColor = .backgroundGray
distanceView.tintColor = .primaryBlue

updateMeasurementLabels()

// Add the source code button item to the right of navigation bar.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="beF-yn-MU6">
<device id="retina5_9" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.3" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="beF-yn-MU6">
<device id="retina5_9" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Line Of Sight Location View Controller-->
<scene sceneID="uVV-jY-ewq">
<objects>
<viewController id="beF-yn-MU6" customClass="LineOfSightLocationViewController" customModule="arcgis_ios_sdk_samples" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="beF-yn-MU6" customClass="LineOfSightLocationViewController" customModule="ArcGIS_Runtime_SDK_Samples" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="7gX-cs-H6x">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand All @@ -27,13 +25,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tap on the map to set the observer location" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qgh-ab-wUm">
<rect key="frame" x="0.0" y="0.0" width="375" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.0" green="0.36862745099999999" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tap-and-hold to drag the line of sight target" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jHc-7B-FsF">
<rect key="frame" x="0.0" y="-52" width="375" height="0.0"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.0" green="0.36862745099999999" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class StatisticalQueryGroupAndSortViewController: UIViewController, UITableViewD
// Create the view
let returnedView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 44))
returnedView.autoresizingMask = [.flexibleHeight, .flexibleWidth]
returnedView.backgroundColor = .primaryBlue
returnedView.backgroundColor = .accentColor
returnedView.layer.borderColor = UIColor.white.cgColor
returnedView.layer.borderWidth = 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="DKT-K8-rR8">
<device id="retina4_0" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="DKT-K8-rR8">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Statistical Query View Controller-->
<scene sceneID="9fZ-Qr-hgc">
<objects>
<viewController id="DKT-K8-rR8" customClass="StatisticalQueryViewController" customModule="arcgis_ios_sdk_samples" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="DKT-K8-rR8" customClass="StatisticalQueryViewController" customModule="ArcGIS_Runtime_SDK_Samples" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="E66-ip-T79">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MMu-eo-dCE" customClass="AGSMapView">
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
<rect key="frame" x="0.0" y="44" width="414" height="852"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zsC-4Y-Zj7">
<rect key="frame" x="10" y="432" width="300" height="136"/>
<rect key="frame" x="57" y="726" width="300" height="136"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="6k4-pi-srd">
<rect key="frame" x="0.0" y="0.0" width="300" height="136"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand All @@ -40,7 +38,6 @@
</label>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Vbu-gq-lFX">
<rect key="frame" x="237" y="15" width="51" height="31"/>
<color key="onTintColor" red="0.0" green="0.44331008195877075" blue="0.64703482389450073" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</switch>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Only cities greater than 5M" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Kge-gG-dGK">
<rect key="frame" x="15" y="58" width="221" height="21"/>
Expand All @@ -52,19 +49,17 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DuN-wd-ao7">
<rect key="frame" x="87" y="92" width="120" height="30"/>
<color key="backgroundColor" red="0.0" green="0.44331008199999999" blue="0.6470348239" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<rect key="frame" x="87" y="92" width="120" height="33"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" title="Get Statistics">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="titleColor" name="AccentColor"/>
</state>
<connections>
<action selector="getStatisticsAction:" destination="DKT-K8-rR8" eventType="touchUpInside" id="EWY-Dg-U5T"/>
</connections>
</button>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="TA9-eB-bGy">
<rect key="frame" x="237" y="53" width="51" height="31"/>
<color key="onTintColor" red="0.0" green="0.36862745099999999" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
</switch>
</subviews>
<constraints>
Expand Down Expand Up @@ -118,4 +113,9 @@
<point key="canvasLocation" x="558.75" y="448.94366197183098"/>
</scene>
</scenes>
<resources>
<namedColor name="AccentColor">
<color red="0.51399999856948853" green="0.18400000035762787" blue="0.7369999885559082" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
Loading

0 comments on commit 1111077

Please sign in to comment.