Skip to content

Commit

Permalink
Fixed sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
lookdeceline committed Sep 2, 2024
1 parent 7225af1 commit f90bf31
Show file tree
Hide file tree
Showing 68 changed files with 225 additions and 225 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let package = Package(
.binaryTarget(
name: "SendbirdSwiftUI",
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.0.0-beta.1/SendbirdSwiftUI.xcframework.zip",
checksum: "180d5cfa23e9a6a5887a1752da6337a8c9f50e19deaf6bf78d71f14d85cf0663"
checksum: "cd882856d77ba496eb313b16eeec35d8c981f49dcac3818194badac4a3960183"

),
.target(
Expand Down
16 changes: 8 additions & 8 deletions Sample/QuickStartSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6295,56 +6295,56 @@
path = List;
sourceTree = "<group>";
};
"TEMP_0C341D73-136A-49CB-A216-98A53F3B138D" /* SubView */ = {
"TEMP_3705E1FC-1BDB-45D5-84B5-52BFDC494EA9" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_4B1B69A4-AB15-4A00-BA15-935B9383F41F" /* SubView */ = {
"TEMP_3FBA214E-C4B9-4EA0-B35C-E3EC9B9F2AE8" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_802D4E33-5564-4A71-B2FE-0AE1E34D38BB" /* SubView */ = {
"TEMP_47BF45C9-E1D6-4691-BF7D-D8E499DE653E" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_BDD8CDA9-590E-407A-94B6-6B8382BE6554" /* SubView */ = {
"TEMP_4A683376-538F-4CD6-8FEF-FBA5E071A274" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_C3F46338-6E1E-44A5-9BBF-E04508C01B44" /* SubView */ = {
"TEMP_4BB4B028-14B1-4884-B540-D65223CB49E4" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_CCB46433-9BEC-4863-BE9D-89B9BCA29AAA" /* SubView */ = {
"TEMP_74DF3411-7897-4498-B706-251373F04400" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_EA96858A-2424-4621-98A0-FA7F9580D51B" /* SubView */ = {
"TEMP_981D7B83-1B32-4EB7-A883-F6E4FCDB761C" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_F908E83B-0A6B-4D9F-9C3B-E0D5A1A394CB" /* SubView */ = {
"TEMP_D3C1CDFE-3C33-4152-950B-25F8BD3F4058" /* SubView */ = {
isa = PBXGroup;
children = (
);
Expand Down
2 changes: 1 addition & 1 deletion SendbirdSwiftUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
"Kai" => "[email protected]"
}
s.platform = :ios, "15.0"
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "5f48af9f455c3d1d45b6ada5459a67a899637501" }
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "b6615fddbfb97ceec73f837365724f467d28660b" }
s.ios.vendored_frameworks = 'SendbirdSwiftUI/SendbirdSwiftUI.xcframework'
s.ios.frameworks = ["UIKit", "SwiftUI", "Foundation", "CoreData", "SendbirdChatSDK"]
s.requires_arc = true
Expand Down
2 changes: 1 addition & 1 deletion Sources/Enums/SBUEnums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public enum SBUChannelType {

// - MARK: Internal

/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
enum SBUItemUsageState<Item: Hashable> {
case unused
case usingDefault(Item)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Extension/UINavigationController+SBUIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension UINavigationController {

#if SWIFTUI
/// Push view controller with hiding navigation bar. Method to hide and show navigationBar in swiftui (ui timing issue)
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public func pushViewControllerNonFlickering<T>(
_ viewController: UIHostingController<T>,
animated: Bool
Expand Down
34 changes: 17 additions & 17 deletions Sources/Module/Channel/GroupChannel/SBUGroupChannelModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,76 +26,76 @@ extension SBUGroupChannelModule {
// MARK: Header
extension SBUGroupChannelModule.Header {
/// Represents the type of left bar button on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var LeftBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of right bar button on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var RightBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of title view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var TitleView: SBUChannelTitleView.Type = SBUChannelTitleView.self
}

// MARK: List
extension SBUGroupChannelModule.List {
/// Represents the type of empty view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var EmptyView: SBUEmptyView.Type = SBUEmptyView.self

/// Represents the type of admin message cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var AdminMessageCell: SBUBaseMessageCell.Type = SBUAdminMessageCell.self

/// Represents the type of user message cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UserMessageCell: SBUBaseMessageCell.Type = SBUUserMessageCell.self

/// Represents the type of file message cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var FileMessageCell: SBUBaseMessageCell.Type = SBUFileMessageCell.self

/// Represents the type of multiple files message cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var MultipleFilesMessageCell: SBUBaseMessageCell.Type = SBUMultipleFilesMessageCell.self

/// Represents the type of typing indicator cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var TypingIndicatorMessageCell: SBUBaseMessageCell.Type = SBUTypingIndicatorMessageCell.self

/// Represents the type of unknown cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UnknownMessageCell: SBUBaseMessageCell.Type = SBUUnknownMessageCell.self

/// Represents the type of custom cell on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var CustomMessageCell: SBUBaseMessageCell.Type?

/// Represents the type of channel state banner view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var ChannelStateBanner: SBUChannelStateBanner.Type = SBUChannelStateBanner.self

/// Represents the type of scroll bottom view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var ScrollBottomView: SBUScrollBottomView.Type = SBUScrollBottomView.self

/// Represents the type of message info view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var NewMessageInfo: SBUNewMessageInfo.Type = SBUNewMessageInfo.self

/// Represents the type of profile view on the group channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UserProfileView: SBUUserProfileView.Type = SBUUserProfileView.self
}

// MARK: Input
extension SBUGroupChannelModule.Input {
/// The component property that the message input view.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var MessageInputView: SBUMessageInputView.Type = SBUMessageInputView.self

/// The component property that the voice message input view.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var VoiceMessageInputView: SBUVoiceMessageInputView.Type = SBUVoiceMessageInputView.self
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extension SBUOpenChannelModule {
}

/// A view that represents right bar items in navigation bar.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateRightItems:)` delegate function is called.
override public var rightBarButtons: [UIBarButtonItem]? {
get { self.internalRightBarButtons.item ?? nil }
Expand Down
28 changes: 14 additions & 14 deletions Sources/Module/Channel/OpenChannel/SBUOpenChannelModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,68 +29,68 @@ extension SBUOpenChannelModule {
// MARK: Header
extension SBUOpenChannelModule.Header {
/// Represents the type of left bar button on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var LeftBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of right bar button on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var RightBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of title view on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var TitleView: SBUChannelTitleView.Type = SBUChannelTitleView.self
}

// MARK: List
extension SBUOpenChannelModule.List {
/// Represents the type of empty view on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var EmptyView: SBUEmptyView.Type = SBUEmptyView.self

/// Represents the type of admin message cell on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var AdminMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelAdminMessageCell.self

/// Represents the type of user message cell on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UserMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelUserMessageCell.self

/// Represents the type of file message cell on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var FileMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelFileMessageCell.self

/// Represents the type of unknown message cell on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UnknownMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelUnknownMessageCell.self

/// Represents the type of custom message cell on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var CustomMessageCell: SBUOpenChannelBaseMessageCell.Type?

/// Represents the type of channel state banner on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var ChannelStateBanner: SBUChannelStateBanner.Type = SBUChannelStateBanner.self

/// Represents the type of scroll bottom view on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var ScrollBottomView: SBUScrollBottomView.Type = SBUScrollBottomView.self

/// Represents the type of user profile view on the open channel module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var UserProfileView: SBUUserProfileView.Type = SBUUserProfileView.self
}

// MARK: Input
extension SBUOpenChannelModule.Input {
/// The component property that the message input view.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var MessageInputView: SBUMessageInputView.Type = SBUMessageInputView.self
}

// MARK: Media
extension SBUOpenChannelModule.Media {
/// A view to shows media or other contents in the open channel.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var MediaView: SBUMediaView.Type = SBUMediaView.self

}
8 changes: 4 additions & 4 deletions Sources/Module/Channel/SBUBaseChannelModule.Header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public protocol SBUBaseChannelModuleHeaderDelegate: SBUCommonDelegate {
/// - Parameters:
/// - headerComponent: `SBUBaseChannelModule.Header` object
/// - rightItem: Updated `leftBarButtons` object.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
func baseChannelModule(_ headerComponent: SBUBaseChannelModule.Header, didUpdateLeftItems leftItems: [UIBarButtonItem]?)

/// Called when `rightBarButtons` value has been updated.
/// - Parameters:
/// - headerComponent: `SBUBaseChannelModule.Header` object
/// - rightItem: Updated `rightBarButtons` object.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
func baseChannelModule(_ headerComponent: SBUBaseChannelModule.Header, didUpdateRightItems rightItems: [UIBarButtonItem]?)

/// Called when `titleView` was selected.
Expand Down Expand Up @@ -116,7 +116,7 @@ extension SBUBaseChannelModule {
var internalRightBarButton: SBUItemUsageState<UIBarButtonItem?> = .unused

/// A view that represents left bar items in navigation bar.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateLeftItems:)` delegate function is called.
public var leftBarButtons: [UIBarButtonItem]? {
didSet {
Expand All @@ -125,7 +125,7 @@ extension SBUBaseChannelModule {
}

/// A view that represents right bar items in navigation bar.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateRightItems:)` delegate function is called.
public var rightBarButtons: [UIBarButtonItem]? {
didSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@ extension SBUGroupChannelListModule {
public static var ListComponent: SBUGroupChannelListModule.List.Type = SBUGroupChannelListModule.List.self

/// The module component that shows the common of message in the channel.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var CommonComponent: SBUGroupChannelListModule.Common.Type = SBUGroupChannelListModule.Common.self
}

// MARK: Header
extension SBUGroupChannelListModule.Header {
/// Represents the type of left bar button on the group channel list module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var LeftBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of right bar button on the group channel list module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var RightBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of title view on the group channel list module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var TitleView: SBUNavigationTitleView.Type = SBUNavigationTitleView.self
}

// MARK: List
extension SBUGroupChannelListModule.List {
/// Represents the type of empty view on the group channel list module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var EmptyView: SBUEmptyView.Type = SBUEmptyView.self

/// Represents the type of channel cell on the group channel list module.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var ChannelCell: SBUBaseChannelCell.Type = SBUGroupChannelCell.self
}

Expand All @@ -59,27 +59,27 @@ extension SBUGroupChannelListModule.Common {
/// SBUModuleSet.GroupChannelList.Common.CreateChannelTypeSelector = CustomTypeSelector.self
/// ```
/// - Note: To apply the custom type selector, assign your subclass of ``SBUCreateChannelTypeSelector`` to this property.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public static var CreateChannelTypeSelector: SBUCreateChannelTypeSelector.Type = SBUCreateChannelTypeSelector.self
}

// MARK: typealias
extension SBUModuleSet {
// Module
/// The class that represents the list of the group channel module
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public typealias GroupChannelList = SBUGroupChannelListModule

// Components
/// The module component that shows the header in the channel.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public typealias Header = SBUGroupChannelListModule.Header

/// The module component that shows the list of message in the channel.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public typealias List = SBUGroupChannelListModule.List

/// The module component that shows the common view in the channel.
/// - Since: [NEXT_VERSION]
/// - Since: 3.26.0
public typealias Common = SBUGroupChannelListModule.Common
}
Loading

0 comments on commit f90bf31

Please sign in to comment.