Skip to content

Commit 26c38d5

Browse files
committed
Update example project
1 parent bc7ba72 commit 26c38d5

8 files changed

Lines changed: 26 additions & 44 deletions

File tree

Example/ChatExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@
647647
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
648648
GCC_WARN_UNUSED_FUNCTION = YES;
649649
GCC_WARN_UNUSED_VARIABLE = YES;
650-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
650+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
651651
MTL_ENABLE_DEBUG_INFO = YES;
652652
ONLY_ACTIVE_ARCH = YES;
653653
SDKROOT = iphoneos;
@@ -699,7 +699,7 @@
699699
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
700700
GCC_WARN_UNUSED_FUNCTION = YES;
701701
GCC_WARN_UNUSED_VARIABLE = YES;
702-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
702+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
703703
MTL_ENABLE_DEBUG_INFO = NO;
704704
SDKROOT = iphoneos;
705705
SWIFT_VERSION = 5.0;

Example/ChatExample.xcodeproj/xcshareddata/xcschemes/ChatExample.xcscheme

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1130"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,8 +40,17 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
codeCoverageEnabled = "YES"
44-
shouldUseLaunchSchemeArgsEnv = "YES">
43+
shouldUseLaunchSchemeArgsEnv = "YES"
44+
codeCoverageEnabled = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "882B5E321CF7D4B900B6E160"
49+
BuildableName = "ChatExample.app"
50+
BlueprintName = "ChatExample"
51+
ReferencedContainer = "container:ChatExample.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
4554
<Testables>
4655
<TestableReference
4756
skipped = "NO">
@@ -54,17 +63,6 @@
5463
</BuildableReference>
5564
</TestableReference>
5665
</Testables>
57-
<MacroExpansion>
58-
<BuildableReference
59-
BuildableIdentifier = "primary"
60-
BlueprintIdentifier = "882B5E321CF7D4B900B6E160"
61-
BuildableName = "ChatExample.app"
62-
BlueprintName = "ChatExample"
63-
ReferencedContainer = "container:ChatExample.xcodeproj">
64-
</BuildableReference>
65-
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
6866
</TestAction>
6967
<LaunchAction
7068
buildConfiguration = "Debug"
@@ -86,8 +84,6 @@
8684
ReferencedContainer = "container:ChatExample.xcodeproj">
8785
</BuildableReference>
8886
</BuildableProductRunnable>
89-
<AdditionalOptions>
90-
</AdditionalOptions>
9187
</LaunchAction>
9288
<ProfileAction
9389
buildConfiguration = "Release"

Example/ChatExample.xcodeproj/xcshareddata/xcschemes/ChatExampleUITests.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1130"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -23,8 +23,6 @@
2323
</BuildableReference>
2424
</TestableReference>
2525
</Testables>
26-
<AdditionalOptions>
27-
</AdditionalOptions>
2826
</TestAction>
2927
<LaunchAction
3028
buildConfiguration = "Debug"
@@ -36,8 +34,6 @@
3634
debugDocumentVersioning = "YES"
3735
debugServiceExtension = "internal"
3836
allowLocationSimulation = "YES">
39-
<AdditionalOptions>
40-
</AdditionalOptions>
4137
</LaunchAction>
4238
<ProfileAction
4339
buildConfiguration = "Release"

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://cdn.cocoapods.org/'
22

3-
platform :ios, '9.0'
3+
platform :ios, '11.0'
44

55
target 'ChatExample' do
66
use_frameworks!

Example/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PODS:
22
- InputBarAccessoryView (4.3.1):
33
- InputBarAccessoryView/Core (= 4.3.1)
44
- InputBarAccessoryView/Core (4.3.1)
5-
- MessageKit (3.1.0-beta.1):
5+
- MessageKit (3.1.0):
66
- InputBarAccessoryView (~> 4.3.0)
77

88
DEPENDENCIES:
@@ -18,8 +18,8 @@ EXTERNAL SOURCES:
1818

1919
SPEC CHECKSUMS:
2020
InputBarAccessoryView: 58a348be7ea2736c7eec60e5c315511c2dbb39fd
21-
MessageKit: 6b809a162328346e0727dbcd040b5f9fd5f5ba15
21+
MessageKit: 3c593dc22f7465f74822e4a873ef3157a3e05080
2222

23-
PODFILE CHECKSUM: 90bd12ca685503630d7fe716609f4974660ed5ee
23+
PODFILE CHECKSUM: 4b1c4ce3f56911e047bb185e2994398be7f67d2a
2424

25-
COCOAPODS: 1.8.4
25+
COCOAPODS: 1.9.0

Example/Sources/View Controllers/LaunchViewController.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,12 @@ final internal class LaunchViewController: UITableViewController {
4646

4747
override func viewWillAppear(_ animated: Bool) {
4848
super.viewWillAppear(animated)
49-
if #available(iOS 11.0, *) {
50-
navigationController?.navigationBar.prefersLargeTitles = true
51-
}
49+
navigationController?.navigationBar.prefersLargeTitles = true
5250
}
5351

5452
override func viewWillDisappear(_ animated: Bool) {
5553
super.viewWillDisappear(animated)
56-
if #available(iOS 11.0, *) {
57-
navigationController?.navigationBar.prefersLargeTitles = false
58-
}
54+
navigationController?.navigationBar.prefersLargeTitles = false
5955
}
6056

6157
// MARK: - UITableViewDataSource

Example/Sources/View Controllers/NavigationController.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ final class NavigationController: UINavigationController {
3636
navigationBar.tintColor = .white
3737
navigationBar.barTintColor = .primaryColor
3838
navigationBar.titleTextAttributes = [.foregroundColor: UIColor.white]
39-
if #available(iOS 11.0, *) {
40-
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
41-
}
39+
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
4240
navigationBar.shadowImage = UIImage()
4341
navigationBar.setBackgroundImage(UIImage(), for: .default)
4442
view.backgroundColor = .primaryColor
@@ -50,17 +48,13 @@ final class NavigationController: UINavigationController {
5048
navigationBar.barTintColor = .primaryColor
5149
navigationBar.tintColor = .white
5250
navigationBar.titleTextAttributes = [.foregroundColor: UIColor.white]
53-
if #available(iOS 11.0, *) {
54-
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
55-
}
51+
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
5652
} else if style == .lightContent {
5753
navigationBar.shadowImage = nil
5854
navigationBar.barTintColor = .white
5955
navigationBar.tintColor = UIColor(red: 0, green: 0.5, blue: 1, alpha: 1)
6056
navigationBar.titleTextAttributes = [.foregroundColor: UIColor.black]
61-
if #available(iOS 11.0, *) {
62-
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.black]
63-
}
57+
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.black]
6458
}
6559
}
6660

Sources/Controllers/MessagesViewController+Keyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ internal extension MessagesViewController {
123123
return max(0, inputAccessoryViewHeight + additionalBottomInset - automaticallyAddedBottomInset)
124124
}
125125

126-
/// iOS 11's UIScrollView can automatically add safe area insets to its contentInset,
126+
/// UIScrollView can automatically add safe area insets to its contentInset,
127127
/// which needs to be accounted for when setting the contentInset based on screen coordinates.
128128
///
129129
/// - Returns: The distance automatically added to contentInset.bottom, if any.

0 commit comments

Comments
 (0)