diff options
Diffstat (limited to 'Juick/Views')
-rw-r--r-- | Juick/Views/MessageCell.xib | 4 | ||||
-rw-r--r-- | Juick/Views/MessageInputView.h | 15 | ||||
-rw-r--r-- | Juick/Views/MessageInputView.m | 19 | ||||
-rw-r--r-- | Juick/Views/MessageInputView.xib | 59 |
4 files changed, 95 insertions, 2 deletions
diff --git a/Juick/Views/MessageCell.xib b/Juick/Views/MessageCell.xib index bb7f9c5..7d410af 100644 --- a/Juick/Views/MessageCell.xib +++ b/Juick/Views/MessageCell.xib @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> <dependencies> <deployment identifier="iOS"/> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> diff --git a/Juick/Views/MessageInputView.h b/Juick/Views/MessageInputView.h new file mode 100644 index 0000000..38ce721 --- /dev/null +++ b/Juick/Views/MessageInputView.h @@ -0,0 +1,15 @@ +// +// MessageInputView.h +// Juick +// +// Created by Vitaly Takmazov on 08/04/2018. +// Copyright © 2018 com.juick. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface MessageInputView : UIVisualEffectView +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *bottomConstraint; +@property (strong, nonatomic) IBOutlet UITextField *textView; + +@end diff --git a/Juick/Views/MessageInputView.m b/Juick/Views/MessageInputView.m new file mode 100644 index 0000000..f16f490 --- /dev/null +++ b/Juick/Views/MessageInputView.m @@ -0,0 +1,19 @@ +// +// MessageInputView.m +// Juick +// +// Created by Vitaly Takmazov on 08/04/2018. +// Copyright © 2018 com.juick. All rights reserved. +// + +#import "MessageInputView.h" +#import "ColorScheme.h" + +@implementation MessageInputView + +-(void) awakeFromNib { + [super awakeFromNib]; + [self setTintColor:[ColorScheme linkColor]]; +} + +@end diff --git a/Juick/Views/MessageInputView.xib b/Juick/Views/MessageInputView.xib new file mode 100644 index 0000000..70fcdef --- /dev/null +++ b/Juick/Views/MessageInputView.xib @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina4_7" orientation="portrait"> + <adaptation id="fullscreen"/> + </device> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> + <capability name="Constraints to layout margins" minToolsVersion="6.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <visualEffectView opaque="NO" contentMode="scaleToFill" id="2Ze-bx-tgN" customClass="MessageInputView"> + <rect key="frame" x="0.0" y="0.0" width="320" height="74"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="Jo1-Go-4dO"> + <rect key="frame" x="0.0" y="0.0" width="320" height="74"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <stackView opaque="NO" contentMode="scaleToFill" spacing="6" translatesAutoresizingMaskIntoConstraints="NO" id="OCM-7q-caQ"> + <rect key="frame" x="4" y="4" width="300" height="54"/> + <subviews> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="112-Yb-83a"> + <rect key="frame" x="0.0" y="0.0" width="30" height="54"/> + <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/> + <state key="normal" title="@"/> + </button> + <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="249" horizontalCompressionResistancePriority="751" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" adjustsFontForContentSizeCategory="YES" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Dkb-8O-5u6"> + <rect key="frame" x="36" y="0.0" width="218" height="54"/> + <nil key="textColor"/> + <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/> + <textInputTraits key="textInputTraits"/> + </textField> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iUb-5g-Btb"> + <rect key="frame" x="260" y="0.0" width="40" height="54"/> + <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/> + <state key="normal" title="Send"/> + </button> + </subviews> + </stackView> + </subviews> + <constraints> + <constraint firstAttribute="trailingMargin" secondItem="OCM-7q-caQ" secondAttribute="trailing" constant="8" id="70a-kb-HZp"/> + <constraint firstItem="OCM-7q-caQ" firstAttribute="topMargin" secondItem="Jo1-Go-4dO" secondAttribute="top" constant="4" id="Voz-db-iEt"/> + <constraint firstItem="OCM-7q-caQ" firstAttribute="leadingMargin" secondItem="Jo1-Go-4dO" secondAttribute="leading" constant="4" id="epV-Pa-CnX"/> + <constraint firstAttribute="bottomMargin" secondItem="OCM-7q-caQ" secondAttribute="bottom" constant="8" id="hsT-4s-U3s"/> + </constraints> + </view> + <blurEffect style="light"/> + <connections> + <outlet property="bottomConstraint" destination="hsT-4s-U3s" id="b1V-Gk-1At"/> + <outlet property="textView" destination="Dkb-8O-5u6" id="6YC-Bn-7P6"/> + </connections> + <point key="canvasLocation" x="-85" y="105"/> + </visualEffectView> + </objects> +</document> |