Dwayne Harris
6 years ago
15 changed files with 300 additions and 125 deletions
-
12elpha-ios.xcodeproj/project.pbxproj
-
12elpha-ios/Assets.xcassets/More.imageset/Contents.json
-
BINelpha-ios/Assets.xcassets/More.imageset/more-vertical.pdf
-
12elpha-ios/Assets.xcassets/Refresh CCW.imageset/Contents.json
-
BINelpha-ios/Assets.xcassets/Refresh CCW.imageset/refresh-ccw.pdf
-
18elpha-ios/AttachmentsManager.swift
-
12elpha-ios/AttachmentsView.swift
-
2elpha-ios/AuthenticationManager.swift
-
2elpha-ios/Base.lproj/Main.storyboard
-
24elpha-ios/MastodonDataManager.swift
-
35elpha-ios/NewStatusesView.swift
-
42elpha-ios/NewStatusesView.xib
-
2elpha-ios/TimelineTableViewCell.swift
-
220elpha-ios/TimelineTableViewController.swift
-
32elpha-ios/TimelinesNavigationController.swift
@ -0,0 +1,12 @@ |
|||
{ |
|||
"images" : [ |
|||
{ |
|||
"idiom" : "universal", |
|||
"filename" : "more-vertical.pdf" |
|||
} |
|||
], |
|||
"info" : { |
|||
"version" : 1, |
|||
"author" : "xcode" |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
{ |
|||
"images" : [ |
|||
{ |
|||
"idiom" : "universal", |
|||
"filename" : "refresh-ccw.pdf" |
|||
} |
|||
], |
|||
"info" : { |
|||
"version" : 1, |
|||
"author" : "xcode" |
|||
} |
|||
} |
@ -1,12 +0,0 @@ |
|||
// |
|||
// AttachmentsView.swift |
|||
// elpha-ios |
|||
// |
|||
// Created by Dwayne Harris on 10/6/18. |
|||
// Copyright © 2018 Elpha. All rights reserved. |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class AttachmentsView: UIView { |
|||
} |
@ -0,0 +1,35 @@ |
|||
// |
|||
// NewStatusesView.swift |
|||
// elpha-ios |
|||
// |
|||
// Created by Dwayne Harris on 10/7/18. |
|||
// Copyright © 2018 Elpha. All rights reserved. |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
@IBDesignable class NewStatusesView: UIView { |
|||
@IBOutlet var contentView: UIView! |
|||
@IBOutlet var mainLabel: UILabel! |
|||
|
|||
override init(frame: CGRect) { |
|||
super.init(frame: frame) |
|||
commonInit() |
|||
} |
|||
|
|||
required init?(coder aDecoder: NSCoder) { |
|||
super.init(coder: aDecoder) |
|||
commonInit() |
|||
} |
|||
|
|||
private func commonInit() { |
|||
Bundle.main.loadNibNamed("NewStatusesView", owner: self, options: nil) |
|||
addSubview(contentView) |
|||
contentView.frame = self.bounds |
|||
contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight] |
|||
} |
|||
|
|||
public func setCount(_ count: Int) { |
|||
mainLabel.text = "\(count) New Toots" |
|||
} |
|||
} |
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> |
|||
<device id="retina4_7" orientation="portrait"> |
|||
<adaptation id="fullscreen"/> |
|||
</device> |
|||
<dependencies> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/> |
|||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> |
|||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
|||
</dependencies> |
|||
<objects> |
|||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="NewStatusesView" customModule="elpha_ios" customModuleProvider="target"> |
|||
<connections> |
|||
<outlet property="contentView" destination="iN0-l3-epB" id="COo-K8-7Wi"/> |
|||
<outlet property="mainLabel" destination="uLF-4h-Bxo" id="KHJ-Zg-Cre"/> |
|||
</connections> |
|||
</placeholder> |
|||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> |
|||
<view contentMode="scaleToFill" id="iN0-l3-epB"> |
|||
<rect key="frame" x="0.0" y="0.0" width="375" height="180"/> |
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
|||
<subviews> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="New Toots" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uLF-4h-Bxo"> |
|||
<rect key="frame" x="8" y="79.5" width="359" height="21"/> |
|||
<fontDescription key="fontDescription" type="system" pointSize="17"/> |
|||
<color key="textColor" red="0.090196078430000007" green="0.047058823530000002" blue="0.28627450980000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
</subviews> |
|||
<constraints> |
|||
<constraint firstItem="uLF-4h-Bxo" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="8" id="Ojm-wu-q8j"/> |
|||
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="uLF-4h-Bxo" secondAttribute="trailing" constant="8" id="UuS-UO-ukK"/> |
|||
<constraint firstItem="uLF-4h-Bxo" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="hld-30-Yt0"/> |
|||
</constraints> |
|||
<nil key="simulatedTopBarMetrics"/> |
|||
<nil key="simulatedBottomBarMetrics"/> |
|||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> |
|||
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/> |
|||
<point key="canvasLocation" x="-574" y="-232"/> |
|||
</view> |
|||
</objects> |
|||
</document> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue