Browse Source

Add Settings table view controller

master
Dwayne Harris 6 years ago
parent
commit
b150a73c40
  1. 8
      elpha-ios.xcodeproj/project.pbxproj
  2. 331
      elpha-ios/Base.lproj/Main.storyboard
  3. 13
      elpha-ios/InstancesNavigationController.swift
  4. 54
      elpha-ios/SettingsTableViewController.swift
  5. 17
      elpha-ios/TimelineTableViewController.swift
  6. 5
      elpha-ios/TimelinesViewController.swift

8
elpha-ios.xcodeproj/project.pbxproj

@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
1506C5802199709200EFB483 /* SettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1506C57F2199709200EFB483 /* SettingsTableViewController.swift */; };
1506C5932199768A00EFB483 /* InstancesNavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1506C5922199768A00EFB483 /* InstancesNavigationController.swift */; };
15131ED8216D8C680092B252 /* StatusView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 15131ED7216D8C680092B252 /* StatusView.xib */; };
15131EF2216D8D570092B252 /* StatusView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15131EF1216D8D570092B252 /* StatusView.swift */; };
15131EF4216DB8B90092B252 /* AccountTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15131EF3216DB8B90092B252 /* AccountTableViewController.swift */; };
@ -238,6 +240,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1506C57F2199709200EFB483 /* SettingsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsTableViewController.swift; sourceTree = "<group>"; };
1506C5922199768A00EFB483 /* InstancesNavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstancesNavigationController.swift; sourceTree = "<group>"; };
15131ED7216D8C680092B252 /* StatusView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StatusView.xib; sourceTree = "<group>"; };
15131EF1216D8D570092B252 /* StatusView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusView.swift; sourceTree = "<group>"; };
15131EF3216DB8B90092B252 /* AccountTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountTableViewController.swift; sourceTree = "<group>"; };
@ -496,9 +500,11 @@
152FB0F7218ADC1A001D6574 /* AttachmentPageViewController.swift */,
152FB0F9218ADDD0001D6574 /* AttachmentViewController.swift */,
15960E7D21329FED00C38CE9 /* AuthenticateViewController.swift */,
1506C5922199768A00EFB483 /* InstancesNavigationController.swift */,
15960E83213774FC00C38CE9 /* InstancesTableViewController.swift */,
157405A72150588A00EEAAEB /* InstanceViewController.swift */,
15960E792132387A00C38CE9 /* MainTabBarController.swift */,
1506C57F2199709200EFB483 /* SettingsTableViewController.swift */,
156FF0302174797E0074D9CA /* StatusTableViewController.swift */,
15960E812136668500C38CE9 /* TimelinesNavigationController.swift */,
152734D12186DC74003DB3C8 /* TimelinesViewController.swift */,
@ -771,6 +777,8 @@
1574148D2169AD0100C841BD /* AttachmentManager.swift in Sources */,
156FF015217289380074D9CA /* AccountTableViewCell.swift in Sources */,
15960E822136668500C38CE9 /* TimelinesNavigationController.swift in Sources */,
1506C5802199709200EFB483 /* SettingsTableViewController.swift in Sources */,
1506C5932199768A00EFB483 /* InstancesNavigationController.swift in Sources */,
152FBCE621978C4A0079B3E8 /* CellHeightManager.swift in Sources */,
156FF04F2175CDBC0074D9CA /* MainStatusTableViewCell.swift in Sources */,
159026AE2162CF5600D362DD /* TimelineTableViewCell.swift in Sources */,

331
elpha-ios/Base.lproj/Main.storyboard

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="49e-Tb-3d3">
<device id="retina5_5" orientation="portrait">
<device id="retina5_9" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
@ -16,17 +16,17 @@
<objects>
<viewController id="Bed-pj-wE9" customClass="AuthenticateViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="ITR-hY-wTb">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enter a Mastodon Instance" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nru-sM-bKD">
<rect key="frame" x="10" y="337" width="394" height="21"/>
<rect key="frame" x="10" y="375" width="355" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.54117647058823526" green="0.4823529411764706" blue="0.68235294117647061" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="02G-kI-p4F">
<rect key="frame" x="10" y="378" width="394" height="40"/>
<rect key="frame" x="10" y="416" width="355" height="40"/>
<color key="backgroundColor" name="Secondary"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
@ -37,7 +37,7 @@
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="URL" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="awW-03-3TB">
<rect key="frame" x="80" y="438" width="254" height="40"/>
<rect key="frame" x="80" y="476" width="215" height="40"/>
<color key="backgroundColor" name="Text"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="gl3-OE-jFa"/>
@ -50,10 +50,10 @@
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TUU-fE-p3J">
<rect key="frame" x="0.0" y="646" width="414" height="90"/>
<rect key="frame" x="0.0" y="722" width="375" height="90"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ABr-tX-v5Y">
<rect key="frame" x="151" y="30" width="112" height="30"/>
<rect key="frame" x="131.66666666666666" y="30" width="112" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="TdG-vz-Mhq"/>
</constraints>
@ -73,13 +73,13 @@
</constraints>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo" translatesAutoresizingMaskIntoConstraints="NO" id="sjL-eq-q6s">
<rect key="frame" x="0.0" y="112" width="414" height="175"/>
<rect key="frame" x="0.0" y="150" width="375" height="175"/>
<constraints>
<constraint firstAttribute="height" constant="175" id="O4x-xb-MbJ"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kt3-Mk-URm">
<rect key="frame" x="167.66666666666666" y="488" width="79" height="27"/>
<rect key="frame" x="148" y="526" width="79" height="27"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<state key="normal" title="Privacy Policy">
<color key="titleColor" name="Secondary"/>
@ -123,25 +123,25 @@
<objects>
<tableViewController id="bRx-56-pJs" customClass="InstancesTableViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="120" sectionHeaderHeight="28" sectionFooterHeight="28" id="MsU-Kh-W9V">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="InstancesTableViewCell" rowHeight="120" id="t5I-4e-rPV" customClass="InstancesTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="120"/>
<rect key="frame" x="0.0" y="28" width="375" height="120"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="t5I-4e-rPV" id="Awg-lg-91F">
<rect key="frame" x="0.0" y="0.0" width="376" height="119.66666666666667"/>
<rect key="frame" x="0.0" y="0.0" width="341" height="119.66666666666667"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Instance Placeholder" translatesAutoresizingMaskIntoConstraints="NO" id="3lE-eD-RSI">
<rect key="frame" x="20" y="11" width="100" height="98"/>
<rect key="frame" x="16" y="11" width="100" height="98"/>
<constraints>
<constraint firstAttribute="width" constant="100" id="Sf5-1G-8gX"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="scl-0p-jQO">
<rect key="frame" x="128" y="11" width="232" height="30"/>
<rect key="frame" x="124" y="11" width="201" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="v20-Wv-cjD"/>
</constraints>
@ -150,7 +150,7 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EuF-dW-Uua">
<rect key="frame" x="205.66666666666666" y="46" width="52.999999999999972" height="46"/>
<rect key="frame" x="201.66666666666666" y="46" width="53" height="46"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Statuses" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GvU-C8-JYy">
<rect key="frame" x="0.0" y="8" width="53" height="16"/>
@ -180,7 +180,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ir1-Wt-maG">
<rect key="frame" x="128" y="46" width="37.666666666666657" height="46"/>
<rect key="frame" x="124.00000000000001" y="46" width="37.666666666666671" height="46"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Users" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x17-3V-ix0">
<rect key="frame" x="0.0" y="8" width="37.666666666666664" height="16"/>
@ -257,23 +257,23 @@
<objects>
<viewController storyboardIdentifier="InstanceViewController" id="mhy-lU-rss" customClass="InstanceViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="PuO-1l-eXq">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UZR-kd-UxJ">
<rect key="frame" x="0.0" y="116" width="414" height="620"/>
<rect key="frame" x="0.0" y="140" width="375" height="638"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uMx-PR-Og0">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="snd-Ts-rva">
<rect key="frame" x="0.0" y="0.0" width="414" height="200"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="200"/>
<constraints>
<constraint firstAttribute="height" constant="200" id="VeP-LC-gew"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ztD-p8-9YN">
<rect key="frame" x="8" y="210" width="398" height="18"/>
<rect key="frame" x="8" y="210" width="359" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" name="Primary"/>
<nil key="highlightedColor"/>
@ -389,10 +389,10 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VCU-ri-lAU">
<rect key="frame" x="272" y="248" width="134" height="60"/>
<rect key="frame" x="272" y="248" width="95" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Uptime" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U9l-Vd-tpX">
<rect key="frame" x="0.0" y="8" width="134" height="16"/>
<rect key="frame" x="0.0" y="8" width="95" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="pdS-qH-b3B"/>
</constraints>
@ -401,7 +401,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SL3-SA-8IS">
<rect key="frame" x="0.0" y="29" width="134" height="31"/>
<rect key="frame" x="0.0" y="29" width="95" height="31"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
@ -480,49 +480,49 @@
<objects>
<tableViewController storyboardIdentifier="AccountTableViewController" id="X5f-Me-0D2" customClass="AccountTableViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="BA3-TV-fdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="ygB-F6-Moa">
<rect key="frame" x="0.0" y="0.0" width="414" height="524"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="524"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="0jO-Rb-lcz">
<rect key="frame" x="0.0" y="0.0" width="414" height="150"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="150"/>
<constraints>
<constraint firstAttribute="height" constant="150" id="HWQ-9W-TLG"/>
</constraints>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="d7X-u9-Seq">
<rect key="frame" x="172" y="115" width="70" height="70"/>
<rect key="frame" x="152.66666666666666" y="115" width="70" height="70"/>
<constraints>
<constraint firstAttribute="height" constant="70" id="6Ni-kg-YNd"/>
<constraint firstAttribute="width" constant="70" id="ItK-PQ-Zdt"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Display Name" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MGa-Tw-aUj">
<rect key="frame" x="142.33333333333331" y="200" width="129.33333333333331" height="24"/>
<rect key="frame" x="123.00000000000001" y="200" width="129.33333333333337" height="24"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Username" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XET-LP-bGO">
<rect key="frame" x="174" y="229" width="66" height="17"/>
<rect key="frame" x="154.66666666666666" y="229" width="66" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" name="Primary"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="D5v-MR-CuQ">
<rect key="frame" x="20" y="416" width="118" height="60"/>
<rect key="frame" x="20" y="416" width="105" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Toots" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kTz-EN-Zgx">
<rect key="frame" x="8" y="10" width="102" height="14.333333333333336"/>
<rect key="frame" x="8" y="10" width="89" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" name="Secondary"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Eab-8s-Drh">
<rect key="frame" x="8" y="32.333333333333314" width="102" height="24"/>
<rect key="frame" x="8" y="32.333333333333314" width="89" height="24"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
@ -539,16 +539,16 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TkS-vn-sW3">
<rect key="frame" x="148" y="416" width="118" height="60"/>
<rect key="frame" x="135" y="416" width="105" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Following" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FxQ-nq-jYw">
<rect key="frame" x="8" y="10" width="102" height="14.333333333333336"/>
<rect key="frame" x="8" y="10" width="89" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" name="Secondary"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l3U-wO-M4g">
<rect key="frame" x="8" y="32.333333333333314" width="102" height="24"/>
<rect key="frame" x="8" y="32.333333333333314" width="89" height="24"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
@ -565,16 +565,16 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rqF-sG-ZE7">
<rect key="frame" x="276" y="416" width="118" height="60"/>
<rect key="frame" x="250" y="416" width="105" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Followers" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="piT-tX-tUe">
<rect key="frame" x="8" y="10" width="102" height="14.333333333333336"/>
<rect key="frame" x="8" y="10" width="89" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" name="Secondary"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J8H-VZ-dwT">
<rect key="frame" x="8" y="32.333333333333314" width="102" height="24"/>
<rect key="frame" x="8" y="32.333333333333314" width="89" height="24"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
@ -591,7 +591,7 @@
</constraints>
</view>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="lwU-IL-uAN">
<rect key="frame" x="10" y="486" width="394" height="29"/>
<rect key="frame" x="10" y="486" width="355" height="29"/>
<segments>
<segment title="Toots"/>
<segment title="Toots &amp; Replies"/>
@ -603,10 +603,10 @@
</connections>
</segmentedControl>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="deT-ms-U3E">
<rect key="frame" x="0.0" y="254" width="414" height="147"/>
<rect key="frame" x="0.0" y="254" width="375" height="147"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" editable="NO" text="Note" textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="7EZ-R5-qfQ" customClass="UITextViewFixed" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="414" height="19.333333333333332"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="35.333333333333336"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" name="Secondary"/>
<color key="textColor" name="Text"/>
@ -615,25 +615,25 @@
<dataDetectorType key="dataDetectorTypes" phoneNumber="YES" link="YES" address="YES" calendarEvent="YES" shipmentTrackingNumber="YES" flightNumber="YES" lookupSuggestion="YES"/>
</textView>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="40" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="LkG-MC-taI">
<rect key="frame" x="0.0" y="19.333333333333321" width="414" height="127.66666666666669"/>
<rect key="frame" x="0.0" y="35.333333333333321" width="375" height="111.66666666666669"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<inset key="separatorInset" minX="5" minY="0.0" maxX="0.0" maxY="0.0"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationWidth="0.0" reuseIdentifier="FieldTableViewCell" rowHeight="40" id="Yja-kQ-VB8" customClass="FieldTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="40"/>
<rect key="frame" x="0.0" y="28" width="375" height="40"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="Yja-kQ-VB8" id="c3e-LW-md8">
<rect key="frame" x="0.0" y="0.0" width="414" height="39.666666666666664"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="39.666666666666664"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Name" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mB7-gb-eAr">
<rect key="frame" x="28.000000000000004" y="12" width="35.333333333333343" height="15.666666666666664"/>
<rect key="frame" x="23.000000000000004" y="12" width="35.333333333333343" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="Primary"/>
<color key="textColor" name="Secondary"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="Value" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QDH-zI-Pbc">
<rect key="frame" x="71.333333333333343" y="12" width="314.66666666666663" height="15.666666666666664"/>
<rect key="frame" x="66.333333333333343" y="12" width="285.66666666666663" height="15.666666666666664"/>
<color key="tintColor" name="Primary"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" name="Text"/>
@ -691,14 +691,14 @@
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="AccountTableViewCell" id="nLQ-4Q-SwI" customClass="AccountTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="552" width="414" height="44"/>
<rect key="frame" x="0.0" y="552" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="nLQ-4Q-SwI" id="y0d-Ka-W2g">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XFR-lZ-fvp" customClass="StatusView" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
@ -770,7 +770,7 @@
<tabBarItem key="tabBarItem" title="Timelines" image="Timelines" id="acW-dT-cKf"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="MdH-tW-gfk">
<rect key="frame" x="0.0" y="20" width="414" height="96"/>
<rect key="frame" x="0.0" y="44" width="375" height="96"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" red="0.090196078430000007" green="0.047058823530000002" blue="0.28627450980000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<textAttributes key="titleTextAttributes">
@ -789,25 +789,187 @@
</objects>
<point key="canvasLocation" x="749.60000000000002" y="-320.68965517241384"/>
</scene>
<!--Settings Table View Controller-->
<scene sceneID="F39-u9-uN2">
<objects>
<tableViewController storyboardIdentifier="SettingsTableViewController" id="uE6-HE-IqH" customClass="SettingsTableViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="pIs-uH-baK">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="wG7-NE-oVv">
<rect key="frame" x="0.0" y="0.0" width="375" height="247"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="X8g-yM-3O2">
<rect key="frame" x="0.0" y="0.0" width="375" height="120"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="ql5-nX-1Yo"/>
</constraints>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Aeb-Oz-GwY">
<rect key="frame" x="152.66666666666666" y="85" width="70" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="LTv-YQ-bzk"/>
<constraint firstAttribute="height" constant="70" id="eej-4N-ukZ"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Display Name" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GQi-GM-PKI">
<rect key="frame" x="8" y="163" width="359" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Username" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qd7-N9-7cC">
<rect key="frame" x="8" y="192" width="359" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="Primary"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="X8g-yM-3O2" secondAttribute="trailing" id="6q2-Uo-QVw"/>
<constraint firstItem="Aeb-Oz-GwY" firstAttribute="top" secondItem="X8g-yM-3O2" secondAttribute="bottom" constant="-35" id="Coj-xa-b8E"/>
<constraint firstAttribute="trailing" secondItem="qd7-N9-7cC" secondAttribute="trailing" constant="8" id="IGg-T3-FIC"/>
<constraint firstItem="X8g-yM-3O2" firstAttribute="top" secondItem="wG7-NE-oVv" secondAttribute="top" id="MKv-NF-r40"/>
<constraint firstItem="X8g-yM-3O2" firstAttribute="leading" secondItem="wG7-NE-oVv" secondAttribute="leading" id="Zj0-sm-22e"/>
<constraint firstItem="Aeb-Oz-GwY" firstAttribute="centerX" secondItem="wG7-NE-oVv" secondAttribute="centerX" id="ZlD-9b-BRv"/>
<constraint firstItem="GQi-GM-PKI" firstAttribute="leading" secondItem="wG7-NE-oVv" secondAttribute="leading" constant="8" id="bis-3N-hii"/>
<constraint firstItem="qd7-N9-7cC" firstAttribute="leading" secondItem="wG7-NE-oVv" secondAttribute="leading" constant="8" id="koY-9E-mdI"/>
<constraint firstItem="GQi-GM-PKI" firstAttribute="top" secondItem="Aeb-Oz-GwY" secondAttribute="bottom" constant="8" id="oTR-mK-yJC"/>
<constraint firstItem="qd7-N9-7cC" firstAttribute="top" secondItem="GQi-GM-PKI" secondAttribute="bottom" constant="8" id="orD-ol-fc1"/>
<constraint firstAttribute="trailing" secondItem="GQi-GM-PKI" secondAttribute="trailing" constant="8" id="sX4-NE-ibp"/>
</constraints>
</view>
<view key="tableFooterView" contentMode="scaleToFill" id="ldk-rb-fMp">
<rect key="frame" x="0.0" y="379" width="375" height="78"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo" translatesAutoresizingMaskIntoConstraints="NO" id="jPl-Xz-kzi">
<rect key="frame" x="162.66666666666666" y="8" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="YkT-ku-e8z"/>
<constraint firstAttribute="height" constant="50" id="owe-Ev-xIn"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="jPl-Xz-kzi" firstAttribute="top" secondItem="ldk-rb-fMp" secondAttribute="top" constant="8" id="HdD-YZ-XvK"/>
<constraint firstItem="jPl-Xz-kzi" firstAttribute="centerX" secondItem="ldk-rb-fMp" secondAttribute="centerX" id="xIW-3V-spu"/>
</constraints>
</view>
<sections>
<tableViewSection id="yne-XJ-aEE">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" id="uVU-iG-Ibc">
<rect key="frame" x="0.0" y="247" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="uVU-iG-Ibc" id="GMd-jT-Nin">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.666666666666664"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Automatically play animated GIFs" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZSz-bV-kie">
<rect key="frame" x="16" y="14" width="287" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="Primary"/>
<nil key="highlightedColor"/>
</label>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="C0x-LV-N9f">
<rect key="frame" x="311" y="6.3333333333333321" width="51" height="30.999999999999996"/>
<color key="onTintColor" name="Primary"/>
</switch>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="C0x-LV-N9f" secondAttribute="trailing" constant="15" id="0GQ-Xc-BWR"/>
<constraint firstItem="ZSz-bV-kie" firstAttribute="leading" secondItem="GMd-jT-Nin" secondAttribute="leadingMargin" id="5Fh-L0-YBJ"/>
<constraint firstItem="ZSz-bV-kie" firstAttribute="centerY" secondItem="GMd-jT-Nin" secondAttribute="centerY" id="Hv6-el-mgw"/>
<constraint firstItem="C0x-LV-N9f" firstAttribute="leading" secondItem="ZSz-bV-kie" secondAttribute="trailing" constant="8" id="J2Q-dT-SD6"/>
<constraint firstItem="C0x-LV-N9f" firstAttribute="centerY" secondItem="GMd-jT-Nin" secondAttribute="centerY" id="aev-o6-L2Z"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="h71-4T-hjk">
<rect key="frame" x="0.0" y="291" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="h71-4T-hjk" id="elQ-iL-6A9">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.666666666666664"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="View Mastodon Instances" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Dws-Bt-MOA">
<rect key="frame" x="16" y="14" width="343" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="Primary"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="Dws-Bt-MOA" secondAttribute="trailing" id="5NG-KR-qh9"/>
<constraint firstItem="Dws-Bt-MOA" firstAttribute="centerY" secondItem="elQ-iL-6A9" secondAttribute="centerY" id="BsQ-QA-eaL"/>
<constraint firstItem="Dws-Bt-MOA" firstAttribute="leading" secondItem="elQ-iL-6A9" secondAttribute="leadingMargin" id="w8h-br-5CD"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="VSP-oq-u7i">
<rect key="frame" x="0.0" y="335" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="VSP-oq-u7i" id="Fxa-bc-hk1">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.666666666666664"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Clear Data Store" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ogq-nL-LaO">
<rect key="frame" x="16" y="14" width="343" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="1" green="0.14913141730000001" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="ogq-nL-LaO" secondAttribute="trailing" id="UxT-2R-LfY"/>
<constraint firstItem="ogq-nL-LaO" firstAttribute="centerY" secondItem="Fxa-bc-hk1" secondAttribute="centerY" id="mKE-tf-uIz"/>
<constraint firstItem="ogq-nL-LaO" firstAttribute="leading" secondItem="Fxa-bc-hk1" secondAttribute="leadingMargin" id="zwe-aB-VLV"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</cells>
</tableViewSection>
</sections>
<connections>
<outlet property="dataSource" destination="uE6-HE-IqH" id="y9V-rC-ctE"/>
<outlet property="delegate" destination="uE6-HE-IqH" id="JwV-up-YJ5"/>
</connections>
</tableView>
<connections>
<outlet property="avatarImageView" destination="Aeb-Oz-GwY" id="0UR-cJ-3Hn"/>
<outlet property="displayNameLabel" destination="GQi-GM-PKI" id="zLZ-WU-NVK"/>
<outlet property="headerImageView" destination="X8g-yM-3O2" id="cbm-aS-gTF"/>
<outlet property="usernameLabel" destination="qd7-N9-7cC" id="XXg-Re-px7"/>
</connections>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="SUU-jm-HDm" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="748" y="-1095.0738916256157"/>
</scene>
<!--Timelines View Controller-->
<scene sceneID="utN-zB-UGT">
<objects>
<viewController id="TVm-XQ-DKr" customClass="TimelinesViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="ap7-qY-exg">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="56a-dU-Hpe">
<rect key="frame" x="0.0" y="0.0" width="414" height="687"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="729"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="1Oi-SN-Jgn">
<rect key="frame" x="0.0" y="0.0" width="414" height="687"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="729"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="ZOW-xe-PU2">
<rect key="frame" x="40" y="80" width="334" height="557"/>
<rect key="frame" x="40" y="80" width="295" height="599"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="l7S-vH-H0D">
<rect key="frame" x="0.0" y="0.0" width="334" height="45"/>
<rect key="frame" x="0.0" y="0.0" width="295" height="45"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Timelines" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bXM-kl-c1F">
@ -825,10 +987,10 @@
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" showsReorderControl="YES" indentationWidth="0.0" reuseIdentifier="TimelinesTableViewCell" rowHeight="100" id="ac2-yP-Xjn" customClass="TimelinesTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="73" width="334" height="100"/>
<rect key="frame" x="0.0" y="73" width="295" height="100"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ac2-yP-Xjn" id="FhG-qQ-SYH">
<rect key="frame" x="0.0" y="0.0" width="334" height="99.666666666666671"/>
<rect key="frame" x="0.0" y="0.0" width="295" height="99.666666666666671"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="GVK-O1-vGh">
@ -839,7 +1001,7 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Timeline" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oae-Lt-3g2">
<rect key="frame" x="66" y="39.333333333333336" width="213" height="21"/>
<rect key="frame" x="66" y="39.333333333333336" width="214" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
@ -861,12 +1023,16 @@
</prototypes>
</tableView>
</subviews>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="trailing" secondItem="ZOW-xe-PU2" secondAttribute="trailing" constant="40" id="LqP-AN-qDc"/>
<constraint firstItem="ZOW-xe-PU2" firstAttribute="top" secondItem="1Oi-SN-Jgn" secondAttribute="top" constant="80" id="MLp-aO-b9J"/>
<constraint firstItem="ZOW-xe-PU2" firstAttribute="leading" secondItem="1Oi-SN-Jgn" secondAttribute="leading" constant="40" id="QAb-e6-ttN"/>
<constraint firstAttribute="bottom" secondItem="ZOW-xe-PU2" secondAttribute="bottom" constant="50" id="hTu-st-Y8M"/>
</constraints>
<connections>
<outletCollection property="gestureRecognizers" destination="Ify-ES-32h" appends="YES" id="Kmp-e4-Lz0"/>
</connections>
</view>
<blurEffect style="light"/>
</visualEffectView>
@ -885,6 +1051,11 @@
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4Ao-Vi-HOQ" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="Ify-ES-32h">
<connections>
<action selector="dismissTapped:" destination="TVm-XQ-DKr" id="vkn-p5-igU"/>
</connections>
</tapGestureRecognizer>
</objects>
<point key="canvasLocation" x="1632.8" y="-1094.3349753694581"/>
</scene>
@ -893,19 +1064,19 @@
<objects>
<tableViewController id="9RY-uh-Cwh" customClass="TimelineTableViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="fgT-hp-jpg">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="TimelineTableViewCell" id="ltf-IW-WJt" customClass="TimelineTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="44"/>
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ltf-IW-WJt" id="n6I-gD-BmS">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7lS-OI-rcY" customClass="StatusView" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
@ -945,15 +1116,15 @@
<objects>
<tableViewController storyboardIdentifier="StatusTableViewController" id="RAJ-ub-len" customClass="StatusTableViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" id="3Kx-zr-iiy">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="MainStatusTableViewCell" rowHeight="582" id="8ys-Fm-1Yg" customClass="MainStatusTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="55.333333333333314" width="414" height="582"/>
<rect key="frame" x="0.0" y="55.333333333333314" width="375" height="582"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="8ys-Fm-1Yg" id="Hj7-kC-H7L">
<rect key="frame" x="0.0" y="0.0" width="414" height="582"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="582"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7I8-6E-s1Q">
@ -1193,10 +1364,10 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="StatusTableViewCell" rowHeight="120" id="cLF-Rc-b4K" customClass="StatusTableViewCell" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="0.0" y="637.33333333333337" width="414" height="120"/>
<rect key="frame" x="0.0" y="637.33333333333337" width="375" height="120"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="cLF-Rc-b4K" id="jhE-cB-Cj1">
<rect key="frame" x="0.0" y="0.0" width="414" height="120"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="120"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fRl-xT-b9t" customClass="StatusView" customModule="elpha_ios" customModuleProvider="target">
@ -1266,20 +1437,20 @@
<objects>
<viewController storyboardIdentifier="AttachmentViewController" definesPresentationContext="YES" providesPresentationContextTransitionStyle="YES" modalPresentationStyle="overCurrentContext" hidesBottomBarWhenPushed="YES" id="N19-H3-zNH" customClass="AttachmentViewController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="559-Im-GBi">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MK4-Zf-UMa">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="D1u-Lt-W0l">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" maximumZoomScale="6" translatesAutoresizingMaskIntoConstraints="NO" id="7ll-rV-5Xs">
<rect key="frame" x="0.0" y="83" width="414" height="438"/>
<rect key="frame" x="0.0" y="83" width="375" height="514"/>
<subviews>
<imageView multipleTouchEnabled="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LVW-zt-JUe">
<rect key="frame" x="0.0" y="0.0" width="414" height="438"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="514"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<gestureRecognizers/>
</imageView>
@ -1295,7 +1466,7 @@
</constraints>
</scrollView>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" text="Content" textAlignment="center" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hd1-Nu-84c">
<rect key="frame" x="8" y="536" width="398" height="100"/>
<rect key="frame" x="8" y="612" width="359" height="100"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" name="Secondary"/>
<constraints>
@ -1318,7 +1489,7 @@
</connections>
</imageView>
<imageView contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Share" translatesAutoresizingMaskIntoConstraints="NO" id="vZ9-hY-vNA">
<rect key="frame" x="383" y="50" width="16" height="20"/>
<rect key="frame" x="344" y="50" width="16" height="20"/>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="height" constant="20" id="BTH-H7-RNW"/>
@ -1376,13 +1547,13 @@
</objects>
<point key="canvasLocation" x="4365.6000000000004" y="-22.167487684729064"/>
</scene>
<!--Navigation Controller-->
<!--Instances Navigation Controller-->
<scene sceneID="UVY-Um-jQm">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="SqQ-GI-iCq" sceneMemberID="viewController">
<navigationController storyboardIdentifier="InstancesNavigationController" automaticallyAdjustsScrollViewInsets="NO" id="SqQ-GI-iCq" customClass="InstancesNavigationController" customModule="elpha_ios" customModuleProvider="target" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="QFN-sS-62X">
<rect key="frame" x="0.0" y="20" width="414" height="96"/>
<rect key="frame" x="0.0" y="44" width="375" height="96"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" red="0.090196078430000007" green="0.047058823530000002" blue="0.28627450980000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<textAttributes key="titleTextAttributes">
@ -1408,7 +1579,7 @@
<tabBarItem key="tabBarItem" title="Account" image="Account" id="cPa-gy-q4n"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="5mb-Wh-DRp">
<rect key="frame" x="0.0" y="20" width="414" height="96"/>
<rect key="frame" x="0.0" y="44" width="375" height="96"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" red="0.090196078430000007" green="0.047058823530000002" blue="0.28627450980000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<textAttributes key="titleTextAttributes">

13
elpha-ios/InstancesNavigationController.swift

@ -0,0 +1,13 @@
//
// InstancesNavigationController.swift
// elpha-ios
//
// Created by Dwayne Harris on 11/12/18.
// Copyright © 2018 Elpha. All rights reserved.
//
import UIKit
class InstancesNavigationController: UINavigationController {
}

54
elpha-ios/SettingsTableViewController.swift

@ -0,0 +1,54 @@
//
// SettingsTableViewController.swift
// elpha-ios
//
// Created by Dwayne Harris on 11/12/18.
// Copyright © 2018 Elpha. All rights reserved.
//
import AlamofireImage
import UIKit
class SettingsTableViewController: UITableViewController {
@IBOutlet var headerImageView: UIImageView!
@IBOutlet var avatarImageView: UIImageView!
@IBOutlet var displayNameLabel: UILabel!
@IBOutlet var usernameLabel: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.title = "Settings"
let filter = AspectScaledToFillSizeWithRoundedCornersFilter(
size: CGSize(width: 70.0, height: 70.0),
radius: 20.0,
divideRadiusByImageScale: true
)
avatarImageView.layer.shadowColor = UIColor.black.cgColor
avatarImageView.layer.shadowOpacity = 0.8
avatarImageView.layer.shadowOffset = CGSize.zero
avatarImageView.layer.shadowRadius = 10
if let account = AuthenticationManager.session?.account {
headerImageView.af_setImage(withURL: account.headerURL!)
avatarImageView.af_setImage(withURL: account.avatarURL!, filter: filter)
displayNameLabel.text = account.displayName
usernameLabel.text = "@\(account.acct!)"
}
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.row {
case 1:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
if let controller = storyboard.instantiateViewController(withIdentifier: "InstancesNavigationController") as? InstancesNavigationController {
self.parent?.present(controller, animated: true)
}
default:
return
}
}
}

17
elpha-ios/TimelineTableViewController.swift

@ -49,22 +49,15 @@ class TimelineTableViewController: AbstractStatusTableViewController {
let moreButtonItem = UIBarButtonItem(image: UIImage(named: "More"), style: .plain, target: self, action: #selector(more))
let composeButtonItem = UIBarButtonItem(image: UIImage(named: "Compose"), style: .plain, target: self, action: #selector(compose))
let avatarButtonItem = UIBarButtonItem(image: UIImage(named: "Account"), style: .plain, target: self, action: #selector(self.openSettings))
navigationItem.leftBarButtonItems = [moreButtonItem]
navigationItem.leftBarButtonItems = [avatarButtonItem, moreButtonItem]
navigationItem.rightBarButtonItems = [composeButtonItem]
if let account = AuthenticationManager.session?.account {
Alamofire.request(account.avatarURL!).responseImage { response in
if let image = response.result.value {
let avatarButtonItem = UIBarButtonItem(
image: image.af_imageAspectScaled(toFit: CGSize(width: 30, height: 30)).af_imageRounded(withCornerRadius: 10).withRenderingMode(.alwaysOriginal),
style: .plain,
target: self,
action: #selector(self.openSettings)
)
avatarButtonItem.tintColor = UIColor.clear
self.navigationItem.leftBarButtonItems?.insert(avatarButtonItem, at: 0)
avatarButtonItem.image = image.af_imageAspectScaled(toFit: CGSize(width: 30, height: 30)).af_imageRounded(withCornerRadius: 10).withRenderingMode(.alwaysOriginal)
}
}
}
@ -107,7 +100,11 @@ class TimelineTableViewController: AbstractStatusTableViewController {
}
@objc func openSettings() {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
if let controller = storyboard.instantiateViewController(withIdentifier: "SettingsTableViewController") as? SettingsTableViewController {
self.navigationController?.pushViewController(controller, animated: true)
}
}
@objc func more() {

5
elpha-ios/TimelinesViewController.swift

@ -15,9 +15,14 @@ protocol TimelinesViewControllerDelegate {
class TimelinesViewController: UIViewController {
@IBOutlet var tableView: UITableView!
var delegate: TimelinesViewControllerDelegate? = nil
var fetchedResultsController: NSFetchedResultsController<TimelineMO>? = nil
@IBAction func dismissTapped(_ sender: Any) {
dismiss(animated: true)
}
override func viewDidLoad() {
super.viewDidLoad()

Loading…
Cancel
Save