Commit bbf6d6bb authored by Paolo Pecis's avatar Paolo Pecis

Added Xamarin DescribedByView code for iOS

parent 37c10ae6
<Properties StartupConfiguration="{B0A427EE-702C-4B88-B9C7-4B4D3BCF8F4F}|Default"> <Properties StartupConfiguration="{B0A427EE-702C-4B88-B9C7-4B4D3BCF8F4F}|Default">
<MonoDevelop.Ide.Workbench ActiveDocument="CustomViewAccessibility.iOS/Info.plist"> <MonoDevelop.Ide.Workbench ActiveDocument="CustomViewAccessibility.iOS/IOSAccessibleButton.cs">
<Files> <Files>
<File FileName="CustomViewAccessibility/MainPage.xaml" Line="3" Column="72" /> <File FileName="CustomViewAccessibility/MainPage.xaml" Line="3" Column="72" />
<File FileName="CustomViewAccessibility/MainPage.xaml.cs" Line="18" Column="31" /> <File FileName="CustomViewAccessibility/MainPage.xaml.cs" Line="18" Column="31" />
<File FileName="CustomViewAccessibility.Android/AndroidAccessibleButton.cs" Line="56" Column="60" /> <File FileName="CustomViewAccessibility.Android/AndroidAccessibleButton.cs" Line="56" Column="60" />
<File FileName="CustomViewAccessibility.iOS/IOSAccessibleButton.cs" /> <File FileName="CustomViewAccessibility.iOS/IOSAccessibleButton.cs" Line="48" Column="49" />
<File FileName="CustomViewAccessibility/IAccessibleButton.cs" /> <File FileName="CustomViewAccessibility/IAccessibleButton.cs" />
<File FileName="CustomViewAccessibility.iOS/Info.plist" /> <File FileName="CustomViewAccessibility.iOS/Info.plist" />
<File FileName="CustomViewAccessibility.iOS/AppDelegate.cs" /> <File FileName="CustomViewAccessibility.iOS/AppDelegate.cs" />
...@@ -23,16 +23,16 @@ ...@@ -23,16 +23,16 @@
</Node> </Node>
<Node name="CustomViewAccessibility.Android" expanded="True" /> <Node name="CustomViewAccessibility.Android" expanded="True" />
<Node name="CustomViewAccessibility.iOS" expanded="True"> <Node name="CustomViewAccessibility.iOS" expanded="True">
<Node name="Info.plist" selected="True" /> <Node name="IOSAccessibleButton.cs" selected="True" />
</Node> </Node>
</Node> </Node>
</State> </State>
</Pad> </Pad>
</Pads> </Pads>
</MonoDevelop.Ide.Workbench> </MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.CustomViewAccessibility.iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.DC55AF67-93B2-4E7D-8A51-159D9F9D6A06" /> <MonoDevelop.Ide.ItemProperties.CustomViewAccessibility.iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.a0e5d005d2a40304c7f69660b3e0435054a9bcff" />
<MonoDevelop.Ide.DebuggingService.PinnedWatches /> <MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
<MonoDevelop.Ide.DebuggingService.Breakpoints> <MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore /> <BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints> </MonoDevelop.Ide.DebuggingService.Breakpoints>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
...@@ -9,16 +10,30 @@ ...@@ -9,16 +10,30 @@
<!--View Controller--> <!--View Controller-->
<scene sceneID="tne-QT-ifu"> <scene sceneID="tne-QT-ifu">
<objects> <objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController"> <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="IOSDescribedByView" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" fixedFrame="YES" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="WPz-HS-NZ7">
<rect key="frame" x="152" y="348" width="110" height="200"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="89f-LT-SIC">
<rect key="frame" x="186" y="211" width="42" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view> </view>
</viewController> </viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects> </objects>
<point key="canvasLocation" x="137.68115942028987" y="114.50892857142857"/>
</scene> </scene>
</scenes> </scenes>
</document> </document>
...@@ -9,12 +9,18 @@ ...@@ -9,12 +9,18 @@
import UIKit import UIKit
class ViewController: UIViewController { class ViewController: UIViewController {
var label1: UILabel!
var text: UITextView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
} }
} }
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