Skip to content

Commit 458ad96

Browse files
updated installation guide
1 parent 2f40f70 commit 458ad96

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ struct LazyLoadingImage: View {
227227
.scaledToFill()
228228
.aspectRatio(contentMode: .fill)
229229
.clipped()
230+
.allowsHitTesting(false)
230231
} else if error != nil {
231232
Color(.secondarySystemBackground)
232233
} else {
222 KB
Loading
380 KB
Loading

docusaurus/docs/iOS/swiftui/swiftui-overview.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,15 @@ To get started integrating Stream Chat in your iOS app, install the `StreamChatS
3535

3636
### Install with Swift Package Manager
3737

38-
Open your `.xcodeproj`, select the option "Add Package Dependency" in File > Swift Packages, and paste the URL: "https://github.com/getstream/stream-chat-swift".
38+
Open your `.xcodeproj`, select the option "Add Package Dependency" in File > Add Packages, and paste the URL: https://github.com/GetStream/stream-chat-swiftui.git.
3939

40-
![Screenshot shows Xcode with the Add Package Dependency dialog opened and Stream Chat iOS SDK GitHub URL in the input field](../assets/spm-00.png)
40+
Xcode will look for the repository and automatically select the latest version tagged. Press next and Xcode will download the dependency. While the SDK is in beta mode, it's best to stay on the main branch as a dependency.
4141

42-
After pressing next, Xcode will look for the repository and automatically select the latest version tagged. Press next and Xcode will download the dependency.
42+
![Screenshot shows Xcode with the Add Package Dependency dialog opened and Stream Chat iOS SDK GitHub URL in the input field](../assets/spm-sui-01.png)
4343

44-
![Screenshot shows an Xcode screen selecting a dependency version and an Xcode screen downloading that dependency](../assets/spm-01.png)
44+
The repository contains 1 target - StreamChatSwiftUI.
4545

46-
The repository contains 3 targets: StreamChat, StreamChatUI and StreamChatSwiftUI. If you'll use the UI components, select one of StreamChatUI or StreamChatSwiftUI. They both provide the same functionalities, the only difference is the underlying iOS technology (SwiftUI vs. UIKit). If you don't need the UI components, select just StreamChat.
47-
48-
![Screenshot shows an Xcode screen with dependency targets to be selected](../assets/spm-02.png)
46+
![Screenshot shows an Xcode screen with dependency targets to be selected](../assets/spm-sui-02.png)
4947

5048
After you press finish, it's done!
5149

@@ -55,19 +53,19 @@ Because StreamChat SDKs have to be distributed with its resources, the minimal S
5553

5654
### Install with CocoaPods
5755

58-
In your project's Podfile, add: `pod 'StreamChatSwiftUI', '~> 0.0.1'`. It should look similar to the snippet below.
56+
In your project's Podfile, add: `pod 'StreamChatSwiftUI', '~> 4.5.3'`. It should look similar to the snippet below.
5957

6058
```ruby
6159
target 'MyProject' do
6260
# Comment the next line if you don't want to use dynamic frameworks
6361
use_frameworks!
6462

6563
# Pods for MyProject
66-
pod 'StreamChatSwiftUI', '~> 0.0.1'
64+
pod 'StreamChatSwiftUI', '~> 4.5.3'
6765
end
6866
```
6967

70-
The StreamChatUI pod will automatically include the StreamChat dependency. If you want just the StreamChat dependency, without the UI components, add `pod 'StreamChat', '~> 4.0'` to your Podfile instead. It should look similar to the snippet below.
68+
The StreamChatSwiftUI pod will automatically include the StreamChat dependency. If you want just the StreamChat dependency, without the SwiftUI components, add `pod 'StreamChat', '~> 4.0'` to your Podfile instead. It should look similar to the snippet below.
7169

7270
```ruby
7371
target 'MyProject' do
@@ -87,4 +85,4 @@ pod install --repo-update
8785

8886
The above command will generate the **MyProject.xcworkspace** file automatically.
8987

90-
To stay up-to-date with our updates and get a detailed breakdown of what's new, subscribe to the releases of [getstream/stream-chat-swift](https://github.com/GetStream/stream-chat-swift/releases) by clicking the "watch" button. You can further tweak your watch preferences and subscribe only to the release events.
88+
To stay up-to-date with our updates and get a detailed breakdown of what's new, subscribe to the releases of [getstream/stream-chat-swift](https://github.com/GetStream/stream-chat-swiftui/releases) by clicking the "watch" button. You can further tweak your watch preferences and subscribe only to the release events.

0 commit comments

Comments
 (0)