Skip to content

Commit f36fbe5

Browse files
Merge pull request #34 from sendbird/release/swiftui/1.1.2
Release/swiftui/1.1.2 -> main
2 parents 72ed577 + e851fb6 commit f36fbe5

File tree

8 files changed

+50
-18
lines changed

8 files changed

+50
-18
lines changed

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
## Improvements
2-
- Updated the SDK build base to Xcode 16.4.
1+
## New Interfaces
2+
- Use `GlobalOptions.hidesSharedBackgroundForCustomNavBarButton` to hide or show the default liquid glass effect from customized SendbirdSwiftUI navigation bar buttons in iOS 26 or above.
3+
- Set this flag to `true` to hide it.
4+
5+
## Improvements
6+
- Updated **SendbirdSwiftUI** to be built with Xcode 26.0.
37

48
## ⚠️ Compatibility Notice
9+
**SendbirdSwiftUI** v1.1.1 or earlier is not compatible with **SendbirdChatSDK** v4.32.0 or higher.
10+
Please use **SendbirdChatSDK** <= 4.30.0 with **SendbirdSwiftUI** <= v1.1.1.
511

6-
**SendbirdSwiftUI v1.1.0 and earlier are not compatible with SendbirdChatSDK v4.28.1 or higher.**
7-
Please use `SendbirdChatSDK ≤ 4.28.0` with SendbirdSwiftUI versions **up to v1.1.0**.
12+
To use **SendbirdChatSDK** ≥ 4.32.0, please update **SendbirdSwiftUI** to v1.1.2 or later.
813

9-
To use `SendbirdChatSDK ≥ 4.28.1`, please upgrade to `SendbirdSwiftUI v1.1.1` or later, which is built with Xcode 16.4.

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ let package = Package(
1616
dependencies: [
1717
.package(
1818
url: "https://github.com/sendbird/sendbird-chat-sdk-ios",
19-
from: "4.29.0"
19+
from: "4.32.0"
2020
),
2121
.package(
2222
url: "https://github.com/sendbird/sendbird-uikit-ios-spm",
23-
from: "3.32.2"
23+
from: "3.32.3"
2424
),
2525
],
2626
targets: [
2727
.binaryTarget(
2828
name: "SendbirdSwiftUI",
29-
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.1.1/SendbirdSwiftUI.xcframework.zip", // SendbirdSwiftUI_URL
30-
checksum: "cc2815f523db320c30092e97a48bf0575496742f5a074130d5bf4dbc7f4e4d80" // SendbirdSwiftUI_CHECKSUM
29+
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.1.2/SendbirdSwiftUI.xcframework.zip", // SendbirdSwiftUI_URL
30+
checksum: "91c877b1b9e66e8d456a4b461ab52b3a7f6a0b7959c02fc183dd3d0c4c5d2199" // SendbirdSwiftUI_CHECKSUM
3131
),
3232
.target(
3333
name: "SendbirdSwiftUITarget",

Sample/QuickStartSwiftUI.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7647,7 +7647,7 @@
76477647
"@executable_path/Frameworks",
76487648
"@loader_path/Frameworks",
76497649
);
7650-
MARKETING_VERSION = 1.1.1;
7650+
MARKETING_VERSION = 1.1.2;
76517651
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample;
76527652
PRODUCT_NAME = "$(TARGET_NAME)";
76537653
SDKROOT = iphoneos;
@@ -7679,7 +7679,7 @@
76797679
"@executable_path/Frameworks",
76807680
"@loader_path/Frameworks",
76817681
);
7682-
MARKETING_VERSION = 1.1.1;
7682+
MARKETING_VERSION = 1.1.2;
76837683
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample.SwiftUINotificationService;
76847684
PRODUCT_NAME = "$(TARGET_NAME)";
76857685
SDKROOT = iphoneos;
@@ -7769,7 +7769,7 @@
77697769
"@executable_path/Frameworks",
77707770
"@loader_path/Frameworks",
77717771
);
7772-
MARKETING_VERSION = 1.1.1;
7772+
MARKETING_VERSION = 1.1.2;
77737773
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample;
77747774
PRODUCT_NAME = "$(TARGET_NAME)";
77757775
SDKROOT = iphoneos;
@@ -7856,7 +7856,7 @@
78567856
"@executable_path/Frameworks",
78577857
"@loader_path/Frameworks",
78587858
);
7859-
MARKETING_VERSION = 1.1.1;
7859+
MARKETING_VERSION = 1.1.2;
78607860
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample.SwiftUINotificationService;
78617861
PRODUCT_NAME = "$(TARGET_NAME)";
78627862
SDKROOT = iphoneos;
@@ -7905,15 +7905,15 @@
79057905
repositoryURL = "https://github.com/sendbird/sendbird-chat-sdk-ios";
79067906
requirement = {
79077907
kind = upToNextMajorVersion;
7908-
minimumVersion = 4.29.0;
7908+
minimumVersion = 4.32.0;
79097909
};
79107910
};
79117911
BA2412B4C520C201A8099145 /* XCRemoteSwiftPackageReference "sendbird-uikit-ios-spm" */ = {
79127912
isa = XCRemoteSwiftPackageReference;
79137913
repositoryURL = "https://github.com/sendbird/sendbird-uikit-ios-spm";
79147914
requirement = {
79157915
kind = upToNextMajorVersion;
7916-
minimumVersion = 3.32.2;
7916+
minimumVersion = 3.32.3;
79177917
};
79187918
};
79197919
/* End XCRemoteSwiftPackageReference section */

Sample/QuickStartSwiftUI/CustomSample/CustomViews/GroupChannelList/ViewConverter/Header/CustomGroupChannelList.ViewConverter.Header.rightView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ extension CustomGroupChannelList.ViewConverter.Header {
2525
.rightView { config in
2626
Text("Right \(customFlag ? "ON" : "OFF")")
2727
.foregroundStyle(.blue)
28+
29+
// This removes the right bar button.
30+
// Color.clear.frame(width: 0, height: 0)
2831
}
2932
}
3033
)

Sample/QuickStartSwiftUI/LoginView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ extension LoginView {
142142
SendbirdUI.config.groupChannel.channel.isMultipleFilesMessageEnabled = true
143143

144144
SBUGlobals.isImageCompressionEnabled = true
145+
146+
// Set `hidesSharedBackgroundForUIBarButtonItem` to `true` to remove liquid glass effect from custom navigation bar button.
147+
if #available(iOS 26.0, *) {
148+
GlobalOptions.hidesSharedBackgroundForCustomNavBarButton = true
149+
}
145150
}
146151

147152
func initializeSendbird() {

Sample/project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ options:
1212
packages:
1313
SendbirdChatSDK:
1414
url: https://github.com/sendbird/sendbird-chat-sdk-ios
15-
from: 4.29.0
15+
from: 4.32.0
1616
SendbirdUIKit:
1717
url: https://github.com/sendbird/sendbird-uikit-ios-spm
18-
from: 3.32.2
18+
from: 3.32.3
1919

2020
schemes:
2121
QuickStartSwiftUI:
@@ -43,7 +43,7 @@ settingGroups:
4343
FRAMEWORK_SEARCH_PATHS: ''
4444
IPHONEOS_DEPLOYMENT_TARGET: '15.0'
4545
LD_RUNPATH_SEARCH_PATHS: ["$(inherited)", "@executable_path/Frameworks", "@loader_path/Frameworks"]
46-
MARKETING_VERSION: '1.1.1'
46+
MARKETING_VERSION: '1.1.2'
4747
PRODUCT_NAME: "$(TARGET_NAME)"
4848
SDKROOT: iphoneos
4949
SWIFT_VERSION: '5.0'

Sources/SwiftUI/Common/GlobalOptions.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,17 @@ public class GlobalOptions {
1515
/// Set to `true` by default.
1616
/// - Since: 1.0.3
1717
public static var enableViewAdaptorAutoReset = true
18+
19+
/// Setting this flag to `true` removes the default liquid glass effect from custom SendbirdSwiftUI navigation bar buttons for iOS 26 or above.
20+
/// Setting this flag to `false` shows the default liquid glass effect from custom SendbirdSwiftUI navigation bar buttons for iOS 26 or above.
21+
/// The default is set to `false`.
22+
///
23+
/// ```
24+
/// GlobalOptions.hidesSharedBackgroundForUIBarButtonItem = false // shows liquid glass effect on custom SendbirdSwiftUI navigation bar buttons.
25+
/// GlobalOptions.hidesSharedBackgroundForUIBarButtonItem = true // removes liquid glass effect from custom SendbirdSwiftUI navigation bar buttons.
26+
/// ```
27+
///
28+
/// - Since: [SWIFTUI_NEXT_VERSION]
29+
@available(iOS 26, *)
30+
public static var hidesSharedBackgroundForCustomNavBarButton: Bool = false
1831
}

Sources/SwiftUI/Util/WrapperUIViews.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ class SwiftUIBarButtonItem: UIBarButtonItem {
4949
}
5050

5151
self.customView = containerView
52+
53+
// Remove default liquid glass effect from custom navigation bar button
54+
if #available(iOS 26.0, *) {
55+
if GlobalOptions.hidesSharedBackgroundForCustomNavBarButton {
56+
self.hidesSharedBackground = true
57+
}
58+
}
5259
}
5360

5461
required init?(coder: NSCoder) {

0 commit comments

Comments
 (0)