Skip to content

Instantly share code, notes, and snippets.

@1ec5 1ec5/Main.storyboard
Last active Oct 10, 2019

Embed
What would you like to do?
Draft attribution guidelines simulation
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Credits" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="© những người đóng góp vào OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vtL-Cv-dxl">
<rect key="frame" x="20" y="846" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="© Συνεισφέροντες του OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pT2-5S-QIE">
<rect key="frame" x="20" y="830" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="© Mga tagapag-ambag ng OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o88-I3-VjD">
<rect key="frame" x="20" y="814" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="240" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uWU-uf-V3v">
<rect key="frame" x="0.0" y="753" width="240" height="21"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.65098039220000004" blue="0.30980392159999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="240" id="0eb-hh-Cu2"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="360" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ikc-Sb-CLz">
<rect key="frame" x="0.0" y="724" width="360" height="21"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.65098039220000004" blue="0.30980392159999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="360" id="lPS-Qe-Hap"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="480" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WhP-yj-pbo">
<rect key="frame" x="0.0" y="695" width="480" height="21"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.65098039220000004" blue="0.30980392159999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="480" id="FHY-HD-YzT"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="© Colaboradores de OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="atx-kg-fU0">
<rect key="frame" x="20" y="798" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="© OpenStreetMap contributors" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aia-ry-00V">
<rect key="frame" x="20" y="782" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Bao gồm dữ liệu © OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zQx-Vm-U11">
<rect key="frame" x="20" y="671" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoDark" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4Ht-Ja-sF1">
<rect key="frame" x="20" y="44" width="22" height="22"/>
<connections>
<action selector="showAttribution" destination="BYZ-38-t0r" eventType="touchUpInside" id="e9Q-jg-xzB"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Contiene los datos © OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V3a-cN-3gv">
<rect key="frame" x="20" y="655" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Contains data © OpenStreetMap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qte-Rg-rPI">
<rect key="frame" x="20" y="639" width="374" height="16"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="ikc-Sb-CLz" firstAttribute="top" secondItem="WhP-yj-pbo" secondAttribute="bottom" constant="8" id="4Zp-sE-1IB"/>
<constraint firstItem="WhP-yj-pbo" firstAttribute="top" secondItem="zQx-Vm-U11" secondAttribute="bottom" constant="8" id="5DW-32-WC8"/>
<constraint firstItem="pT2-5S-QIE" firstAttribute="firstBaseline" secondItem="o88-I3-VjD" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="5g8-IG-FDf"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="vtL-Cv-dxl" secondAttribute="bottom" id="6uQ-Al-Rhm"/>
<constraint firstItem="ikc-Sb-CLz" firstAttribute="leading" secondItem="uWU-uf-V3v" secondAttribute="leading" id="By2-5m-U8S"/>
<constraint firstItem="pT2-5S-QIE" firstAttribute="trailing" secondItem="vtL-Cv-dxl" secondAttribute="trailing" id="Dt7-dc-HX9"/>
<constraint firstItem="Aia-ry-00V" firstAttribute="leading" secondItem="atx-kg-fU0" secondAttribute="leading" id="FFI-UR-4dP"/>
<constraint firstItem="4Ht-Ja-sF1" firstAttribute="leading" secondItem="Aia-ry-00V" secondAttribute="leading" id="FUZ-Oc-77R"/>
<constraint firstItem="o88-I3-VjD" firstAttribute="leading" secondItem="pT2-5S-QIE" secondAttribute="leading" id="HSs-xD-T61"/>
<constraint firstItem="o88-I3-VjD" firstAttribute="firstBaseline" secondItem="atx-kg-fU0" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="Hmn-nl-62b"/>
<constraint firstItem="4Ht-Ja-sF1" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="KQR-dx-oFv"/>
<constraint firstItem="Aia-ry-00V" firstAttribute="trailing" secondItem="atx-kg-fU0" secondAttribute="trailing" id="LDu-fR-jzO"/>
<constraint firstItem="zQx-Vm-U11" firstAttribute="firstBaseline" secondItem="V3a-cN-3gv" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="LsK-Vq-UXY"/>
<constraint firstItem="V3a-cN-3gv" firstAttribute="trailing" secondItem="zQx-Vm-U11" secondAttribute="trailing" id="ROK-Xv-t8T"/>
<constraint firstItem="V3a-cN-3gv" firstAttribute="firstBaseline" secondItem="Qte-Rg-rPI" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="Sso-jj-dNJ"/>
<constraint firstItem="vtL-Cv-dxl" firstAttribute="firstBaseline" secondItem="pT2-5S-QIE" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="TVx-Qb-60B"/>
<constraint firstItem="uWU-uf-V3v" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="UWY-di-g1S"/>
<constraint firstItem="Qte-Rg-rPI" firstAttribute="leading" secondItem="V3a-cN-3gv" secondAttribute="leading" id="XDu-aL-xwA"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="zQx-Vm-U11" secondAttribute="trailing" constant="20" id="ZqA-m9-Fn1"/>
<constraint firstItem="atx-kg-fU0" firstAttribute="trailing" secondItem="o88-I3-VjD" secondAttribute="trailing" id="bCh-cU-nrB"/>
<constraint firstItem="Aia-ry-00V" firstAttribute="top" secondItem="uWU-uf-V3v" secondAttribute="bottom" constant="8" id="c9S-Py-YWD"/>
<constraint firstItem="atx-kg-fU0" firstAttribute="firstBaseline" secondItem="Aia-ry-00V" secondAttribute="baseline" constant="16" symbolType="layoutAnchor" id="csx-y0-I5c"/>
<constraint firstItem="pT2-5S-QIE" firstAttribute="leading" secondItem="vtL-Cv-dxl" secondAttribute="leading" id="eP2-75-QUI"/>
<constraint firstItem="WhP-yj-pbo" firstAttribute="leading" secondItem="ikc-Sb-CLz" secondAttribute="leading" id="g2M-ou-GRA"/>
<constraint firstItem="zQx-Vm-U11" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="ggi-y8-MoR"/>
<constraint firstItem="V3a-cN-3gv" firstAttribute="leading" secondItem="zQx-Vm-U11" secondAttribute="leading" id="mfP-yH-Tzq"/>
<constraint firstItem="Qte-Rg-rPI" firstAttribute="trailing" secondItem="V3a-cN-3gv" secondAttribute="trailing" id="xM0-Fl-y48"/>
<constraint firstItem="vtL-Cv-dxl" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="xsJ-dm-GKS"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="vtL-Cv-dxl" secondAttribute="trailing" constant="20" id="y6K-Jk-lPa"/>
<constraint firstItem="o88-I3-VjD" firstAttribute="trailing" secondItem="pT2-5S-QIE" secondAttribute="trailing" id="yQE-o7-pW3"/>
<constraint firstItem="atx-kg-fU0" firstAttribute="leading" secondItem="o88-I3-VjD" secondAttribute="leading" id="yR8-bL-EsK"/>
<constraint firstItem="uWU-uf-V3v" firstAttribute="top" secondItem="ikc-Sb-CLz" secondAttribute="bottom" constant="8" id="zMa-WW-72M"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="47.826086956521742" y="20.758928571428569"/>
</scene>
</scenes>
</document>
import UIKit
class ViewController: UIViewController {
@IBAction func showAttribution() {
let alertController = UIAlertController(title: "About Credits", message: nil, preferredStyle: .actionSheet)
alertController.addAction(UIAlertAction(title: "© OpenStreetMap Contributors", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "© Colaboradores de OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "© Mga tagapag-ambag ng OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "© Συνεισφέροντες του OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "© Những người Đóng góp vào OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "Contains Data © OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "Contiene los datos © OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "Bao gồm Dữ liệu © OpenStreetMap", style: .default, handler: nil))
alertController.addAction(UIAlertAction(title: "Done", style: .default, handler: nil))
present(alertController, animated: true) {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.