diff options
author | Vitaly Takmazov | 2023-05-13 18:23:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-05-14 01:15:35 +0300 |
commit | 7bb21424f0e764ab0d7a535be916fa93001feefa (patch) | |
tree | 021fd084a7df12bb5dda5d64d6e8b81ae7881f06 /Juick | |
parent | 312afec3c4fd7f0f51c82c6dc067bc5c89a4c453 (diff) |
QuoteView conversion
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/ViewControllers/NewPostViewController.m | 3 | ||||
-rw-r--r-- | Juick/Views/QuoteView.h | 13 | ||||
-rw-r--r-- | Juick/Views/QuoteView.m | 17 | ||||
-rw-r--r-- | Juick/Views/QuoteView.swift | 14 | ||||
-rw-r--r-- | Juick/Views/QuoteView.xib | 27 |
5 files changed, 32 insertions, 42 deletions
diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index 18ae15b..4ab1c0b 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -8,9 +8,10 @@ #import "NewPostViewController.h" #import "MessagesViewController.h" -#import "QuoteView.h" #import "User+UIView.h" +#import "Juick-Swift.h" + NSString * const NewMessageNotificationName = @"NewMessage"; NSString * const ReplyPostedNotificationName = @"ReplyPosted"; diff --git a/Juick/Views/QuoteView.h b/Juick/Views/QuoteView.h deleted file mode 100644 index affc7ee..0000000 --- a/Juick/Views/QuoteView.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// MessageInputView.h -// Juick -// -// Created by Vitaly Takmazov on 03/12/2017. -// Copyright © 2017 com.juick. All rights reserved. -// - -#import <UIKit/UIKit.h> - -@interface QuoteView : UIVisualEffectView -@property (weak, nonatomic) IBOutlet UILabel *quoteText; -@end diff --git a/Juick/Views/QuoteView.m b/Juick/Views/QuoteView.m deleted file mode 100644 index 5dd3d62..0000000 --- a/Juick/Views/QuoteView.m +++ /dev/null @@ -1,17 +0,0 @@ -// -// MessageInputView.m -// Juick -// -// Created by Vitaly Takmazov on 03/12/2017. -// Copyright © 2017 com.juick. All rights reserved. -// - -#import "QuoteView.h" -@implementation QuoteView - --(void) awakeFromNib { - [super awakeFromNib]; - self.contentView.backgroundColor = [UIColor colorNamed:@"Background"]; -} - -@end diff --git a/Juick/Views/QuoteView.swift b/Juick/Views/QuoteView.swift new file mode 100644 index 0000000..3720e59 --- /dev/null +++ b/Juick/Views/QuoteView.swift @@ -0,0 +1,14 @@ +// +// QuoteView.swift +// Juick +// +// Created by Vitaly Takmazov on 13.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import UIKit + +@objc +class QuoteView: UIVisualEffectView { + @IBOutlet weak var quoteText: UILabel! +} diff --git a/Juick/Views/QuoteView.xib b/Juick/Views/QuoteView.xib index 96a03fe..a8ebbdf 100644 --- a/Juick/Views/QuoteView.xib +++ b/Juick/Views/QuoteView.xib @@ -1,44 +1,49 @@ <?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> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina4_7" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/> + <capability name="Named colors" minToolsVersion="9.0"/> <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"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> - <visualEffectView opaque="NO" contentMode="scaleToFill" id="8gV-Bq-kOk" customClass="QuoteView"> - <rect key="frame" x="0.0" y="0.0" width="368" height="31"/> + <visualEffectView opaque="NO" contentMode="scaleToFill" id="8gV-Bq-kOk" customClass="QuoteView" customModule="Juick" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="382" height="96"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="imu-GT-9JL"> - <rect key="frame" x="0.0" y="0.0" width="368" height="31"/> + <rect key="frame" x="0.0" y="0.0" width="382" height="96"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="252" verticalCompressionResistancePriority="248" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Swn-59-jWb"> - <rect key="frame" x="6" y="6" width="356" height="19"/> + <rect key="frame" x="6" y="26" width="370" height="64"/> <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/> <nil key="textColor"/> <nil key="highlightedColor"/> </label> </subviews> + <viewLayoutGuide key="safeArea" id="ZiU-Ll-9jB"/> + <color key="backgroundColor" name="Background"/> <constraints> <constraint firstItem="Swn-59-jWb" firstAttribute="leading" secondItem="ZiU-Ll-9jB" secondAttribute="leading" constant="6" id="nTb-2n-vCy"/> <constraint firstItem="ZiU-Ll-9jB" firstAttribute="bottom" secondItem="Swn-59-jWb" secondAttribute="bottom" priority="750" constant="6" id="snn-zN-hrV"/> <constraint firstItem="ZiU-Ll-9jB" firstAttribute="trailing" secondItem="Swn-59-jWb" secondAttribute="trailing" constant="6" id="tyN-OL-Y06"/> <constraint firstItem="Swn-59-jWb" firstAttribute="top" secondItem="ZiU-Ll-9jB" secondAttribute="top" priority="750" constant="6" id="vVV-Yt-s8Q"/> </constraints> - <viewLayoutGuide key="safeArea" id="ZiU-Ll-9jB"/> </view> <blurEffect style="light"/> <connections> <outlet property="quoteText" destination="Swn-59-jWb" id="tky-lv-tWn"/> </connections> - <point key="canvasLocation" x="-433" y="85.5"/> + <point key="canvasLocation" x="-681.60000000000002" y="106.14692653673164"/> </visualEffectView> </objects> + <resources> + <namedColor name="Background"> + <color red="0.99215686274509807" green="0.99215686274509807" blue="0.99607843137254903" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + </resources> </document> |