summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-18 18:27:03 +0300
committerGravatar Vitaly Takmazov2021-10-18 18:27:03 +0300
commit97253d60341018e1231043d673432c9c2a25c39c (patch)
tree5fa162a4a7c0c0c36ee2e1b632cd9936f9ebd4f9 /Juick
parent52b37dfc0436da547140ffc739a0d462aa374bd0 (diff)
iOS 15 updates
Diffstat (limited to 'Juick')
-rw-r--r--Juick/AppDelegate.m17
-rw-r--r--Juick/LaunchScreen.storyboard12
-rw-r--r--Juick/ViewControllers/DialogsViewController.m2
3 files changed, 21 insertions, 10 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index aac90c7..cf2099a 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -42,8 +42,21 @@
self.sharedDateFormatter = [NSDateFormatter new];
self.sharedDateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
[self.sharedDateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]];
- [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor colorNamed:@"Muted"]}];
- [[UINavigationBar appearance] setTranslucent:NO];
+ NSDictionary *titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor colorNamed:@"Muted"]};
+ if (@available(iOS 13.0, *)) {
+ UINavigationBarAppearance *appearance = [UINavigationBarAppearance new];
+ [appearance configureWithOpaqueBackground];
+ [appearance setTitleTextAttributes:titleTextAttributes];
+ [UINavigationBar appearance].standardAppearance = appearance;
+ if (@available(iOS 15.0, *)) {
+ [UINavigationBar appearance].scrollEdgeAppearance = appearance;
+ }
+ } else {
+ [[UINavigationBar appearance] setTitleTextAttributes:titleTextAttributes];
+ [[UINavigationBar appearance] setTranslucent:NO];
+ }
+
+
[[UITabBar appearance] setTintColor:[UIColor colorNamed:@"Title"]];
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
#if !TARGET_IPHONE_SIMULATOR
diff --git a/Juick/LaunchScreen.storyboard b/Juick/LaunchScreen.storyboard
index 42e3ea8..41534d1 100644
--- a/Juick/LaunchScreen.storyboard
+++ b/Juick/LaunchScreen.storyboard
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
- <device id="retina4_7" orientation="portrait">
- <adaptation id="fullscreen"/>
- </device>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@@ -19,16 +17,16 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clearsContextBeforeDrawing="NO" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash.png" translatesAutoresizingMaskIntoConstraints="NO" id="D5d-4R-c9b">
- <rect key="frame" x="139.5" y="285.5" width="96" height="96"/>
+ <rect key="frame" x="139.5" y="275.5" width="96" height="96"/>
<color key="tintColor" red="0.0" green="0.40000000000000002" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</imageView>
</subviews>
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="D5d-4R-c9b" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="Tmo-sv-3CG"/>
<constraint firstItem="D5d-4R-c9b" firstAttribute="centerY" secondItem="Bcu-3y-fUS" secondAttribute="centerY" constant="-10" id="k0r-L6-uBV"/>
</constraints>
- <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
diff --git a/Juick/ViewControllers/DialogsViewController.m b/Juick/ViewControllers/DialogsViewController.m
index cca5479..5f2dca9 100644
--- a/Juick/ViewControllers/DialogsViewController.m
+++ b/Juick/ViewControllers/DialogsViewController.m
@@ -55,7 +55,7 @@
[indexPaths addObject:[NSIndexPath indexPathForRow:index inSection: 0]];
}
[self.tableView beginUpdates];
- [self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:YES];
+ [self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:NO];
[self.tableView endUpdates];
self.tableView.backgroundView = [UIView new];
} else {