Skip to content

Commit

Permalink
feat: 🎸 [JIRA:HCPSDKFIORIUIKIT-2717] Feedback Patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyi-zhang committed Sep 19, 2024
1 parent d60c886 commit e3efd0a
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ public struct BannerMultiMessageSheet: View {
@Binding private var bannerMultiMessages: [BannerMessageListModel]

@StateObject private var categorySelect = CategorySelect()
@State private var dimensionSelector: DimensionSelector
@State private var dimensionSelector: DimensionSelector = {
let all = NSLocalizedString("All", tableName: "FioriSwiftUICore", bundle: Bundle.accessor, comment: "")
return DimensionSelector(segmentTitles: [all], selectedIndex: 0)
}()

@State private var timer: Timer?
@State private var cancellableSet: Set<AnyCancellable> = []

Expand All @@ -95,9 +99,6 @@ public struct BannerMultiMessageSheet: View {
turnOnSectionHeader: Bool = true,
bannerMultiMessages: Binding<[BannerMessageListModel]>)
{
let all = NSLocalizedString("All", tableName: "FioriSwiftUICore", bundle: Bundle.accessor, comment: "")
self.dimensionSelector = DimensionSelector(segmentTitles: [all], selectedIndex: 0)

self.closeAction = closeAction
self.removeAction = removeAction
self.viewDetailAction = viewDetailAction
Expand All @@ -123,9 +124,6 @@ public struct BannerMultiMessageSheet: View {
bannerMultiMessages: Binding<[BannerMessageListModel]>,
@ViewBuilder messageItemView: @escaping ((UUID) -> any View))
{
let all = NSLocalizedString("All", tableName: "FioriSwiftUICore", bundle: Bundle.accessor, comment: "")
self.dimensionSelector = DimensionSelector(segmentTitles: [all], selectedIndex: 0)

self.closeAction = closeAction
self.removeAction = removeAction
self.turnOnSectionHeader = turnOnSectionHeader
Expand Down

0 comments on commit e3efd0a

Please sign in to comment.