Skip to content
Snippets Groups Projects
Commit 90ddd166 authored by jakobsbode's avatar jakobsbode
Browse files

added read segue

parent 9e43ece8
Branches
Tags
No related merge requests found
...@@ -617,11 +617,12 @@ ...@@ -617,11 +617,12 @@
<connections> <connections>
<segue destination="X5Y-Rf-Qzd" kind="show" identifier="showInboxSegue" id="Qjs-MH-bHU"/> <segue destination="X5Y-Rf-Qzd" kind="show" identifier="showInboxSegue" id="Qjs-MH-bHU"/>
<segue destination="ybw-P8-hJp" kind="show" identifier="showFolderListSegue" id="ShI-ar-nOg"/> <segue destination="ybw-P8-hJp" kind="show" identifier="showFolderListSegue" id="ShI-ar-nOg"/>
<segue destination="Ouw-WD-EV6" kind="show" identifier="readFolderMailSegue" id="6Ug-AV-lba"/>
</connections> </connections>
</tableViewController> </tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="cjd-cY-a5S" userLabel="First Responder" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="cjd-cY-a5S" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects> </objects>
<point key="canvasLocation" x="645.60000000000002" y="-949.47526236881572"/> <point key="canvasLocation" x="655" y="-949"/>
</scene> </scene>
<!--Folder List View Controller--> <!--Folder List View Controller-->
<scene sceneID="ZuS-nF-avs"> <scene sceneID="ZuS-nF-avs">
...@@ -990,11 +991,11 @@ ...@@ -990,11 +991,11 @@
<rect key="frame" x="0.0" y="252" width="375" height="44"/> <rect key="frame" x="0.0" y="252" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="dM9-jb-EcN" id="tvN-re-z1Z"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="dM9-jb-EcN" id="tvN-re-z1Z">
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/> <rect key="frame" x="0.0" y="0.0" width="341" height="43.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="VTZ-4w-fot"> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="VTZ-4w-fot">
<rect key="frame" x="15" y="0.0" width="325" height="43.5"/> <rect key="frame" x="16" y="0.0" width="324" height="43.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/> <nil key="textColor"/>
...@@ -1101,7 +1102,7 @@ ...@@ -1101,7 +1102,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Z5E-3a-5Ef"> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Z5E-3a-5Ef">
<rect key="frame" x="15" y="12" width="33.5" height="20.5"/> <rect key="frame" x="16" y="12" width="33.5" height="20.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/> <nil key="textColor"/>
...@@ -1125,7 +1126,7 @@ ...@@ -1125,7 +1126,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="xLe-fn-BGo"> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="xLe-fn-BGo">
<rect key="frame" x="15" y="12" width="33.5" height="20.5"/> <rect key="frame" x="16" y="12" width="33.5" height="20.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/> <nil key="textColor"/>
...@@ -1149,7 +1150,7 @@ ...@@ -1149,7 +1150,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="SsF-tc-fh9"> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="SsF-tc-fh9">
<rect key="frame" x="15" y="12" width="33.5" height="20.5"/> <rect key="frame" x="16" y="12" width="33.5" height="20.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/> <nil key="textColor"/>
...@@ -1173,7 +1174,7 @@ ...@@ -1173,7 +1174,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="xHD-7H-RVy"> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="xHD-7H-RVy">
<rect key="frame" x="15" y="12" width="33.5" height="20.5"/> <rect key="frame" x="16" y="12" width="33.5" height="20.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/> <nil key="textColor"/>
...@@ -1577,10 +1578,10 @@ ...@@ -1577,10 +1578,10 @@
</scene> </scene>
</scenes> </scenes>
<inferredMetricsTieBreakers> <inferredMetricsTieBreakers>
<segue reference="6Ug-AV-lba"/>
<segue reference="TgN-rB-esa"/> <segue reference="TgN-rB-esa"/>
<segue reference="kND-73-kqr"/>
<segue reference="bUY-Me-dje"/>
<segue reference="j4Q-k1-ud3"/> <segue reference="j4Q-k1-ud3"/>
<segue reference="1Uz-Iv-Fbe"/> <segue reference="bUY-Me-dje"/>
<segue reference="kND-73-kqr"/>
</inferredMetricsTieBreakers> </inferredMetricsTieBreakers>
</document> </document>
...@@ -106,6 +106,9 @@ class FolderViewController: UITableViewController { ...@@ -106,6 +106,9 @@ class FolderViewController: UITableViewController {
if indexPath.section == 0 { if indexPath.section == 0 {
performSegue(withIdentifier: "showInboxSegue", sender: nil) performSegue(withIdentifier: "showInboxSegue", sender: nil)
} }
else if indexPath.section == 2 {
performSegue(withIdentifier: "readFolderMailSegue", sender: DataHandler.handler.contacts[0].records[0].mails[0])
}
else { else {
if indexPath.row == 0 { if indexPath.row == 0 {
let vc = storyboard?.instantiateViewController(withIdentifier: "folderViewController") as! FolderViewController let vc = storyboard?.instantiateViewController(withIdentifier: "folderViewController") as! FolderViewController
...@@ -117,6 +120,14 @@ class FolderViewController: UITableViewController { ...@@ -117,6 +120,14 @@ class FolderViewController: UITableViewController {
} }
} }
} }
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "readFolderMailSegue" {
let destinationVC = segue.destination as! ReadViewController
if let mail = sender as? PersistentMail {
destinationVC.mail = mail
}
}
}
func refresh() { func refresh() {
self.refreshControl?.endRefreshing() self.refreshControl?.endRefreshing()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment