Skip to content

Commit

Permalink
fixup! fixup! Sample app: make building in Xcode 11.7 possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahadir Oncel committed Oct 14, 2020
1 parent 5e88f6b commit 04964ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Sources_v3/Models/User+SwiftUI.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// Copyright © 2020 Stream.io Inc. All rights reserved.
//

import Foundation

/// Protocol conformance needed for ActionSheet presenting.
@available(iOS 13, *)
extension ChatUser: Identifiable {}
3 changes: 0 additions & 3 deletions Sources_v3/Models/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ public extension ChatUser {
}
}

/// Protocol conformance needed for ActionSheet presenting.
extension ChatUser: Identifiable {}

/// You need to make your custom type conforming to this protocol if you want to use it for extending `ChatUser` entity with your
/// custom additional data.
///
Expand Down
4 changes: 4 additions & 0 deletions StreamChat_v3.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
7900452625374CA20096ECA1 /* User+SwiftUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7900452525374CA20096ECA1 /* User+SwiftUI.swift */; };
790A4C42252DD377001F4A23 /* DeviceEndpoints.swift in Sources */ = {isa = PBXBuildFile; fileRef = 790A4C41252DD36A001F4A23 /* DeviceEndpoints.swift */; };
790A4C45252DD4F1001F4A23 /* DevicePayloads.swift in Sources */ = {isa = PBXBuildFile; fileRef = 790A4C44252DD4F1001F4A23 /* DevicePayloads.swift */; };
790A4C4A252DDD50001F4A23 /* DeviceEndpoints_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 790A4C47252DDD1A001F4A23 /* DeviceEndpoints_Tests.swift */; };
Expand Down Expand Up @@ -445,6 +446,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
7900452525374CA20096ECA1 /* User+SwiftUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "User+SwiftUI.swift"; sourceTree = "<group>"; };
790A4C41252DD36A001F4A23 /* DeviceEndpoints.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceEndpoints.swift; sourceTree = "<group>"; };
790A4C44252DD4F1001F4A23 /* DevicePayloads.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DevicePayloads.swift; sourceTree = "<group>"; };
790A4C47252DDD1A001F4A23 /* DeviceEndpoints_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceEndpoints_Tests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1325,6 +1327,7 @@
799C9431247D2FB9001F1104 /* Message.swift */,
794927EC249E0BE2009D7EB7 /* ExtraData.swift */,
8AAB1C6524CB39F2009B783F /* UnreadCount.swift */,
7900452525374CA20096ECA1 /* User+SwiftUI.swift */,
);
path = Models;
sourceTree = "<group>";
Expand Down Expand Up @@ -2158,6 +2161,7 @@
DA4EE59E252B43B700CB26D4 /* NewUserQueryUpdater.swift in Sources */,
882C5759252C794900E60C44 /* MemberEndpoints.swift in Sources */,
DA640FC12535CFA100D32944 /* ChannelMemberListSortingKey.swift in Sources */,
7900452625374CA20096ECA1 /* User+SwiftUI.swift in Sources */,
792FCB4924A3BF38000290C7 /* OptionSet+Extensions.swift in Sources */,
79A0E9AD2498BD0C00E9BD50 /* ChatClient.swift in Sources */,
F688643624E6DA8700A71361 /* CurrentUserController.swift in Sources */,
Expand Down

0 comments on commit 04964ff

Please sign in to comment.