diff --git a/AuthenticatorShared/UI/Platform/Application/Views/ExpandableHeaderView.swift b/BitwardenKit/UI/Platform/Application/Views/ExpandableHeaderView.swift similarity index 90% rename from AuthenticatorShared/UI/Platform/Application/Views/ExpandableHeaderView.swift rename to BitwardenKit/UI/Platform/Application/Views/ExpandableHeaderView.swift index 76a4dc5bb5..e9f8d5955f 100644 --- a/AuthenticatorShared/UI/Platform/Application/Views/ExpandableHeaderView.swift +++ b/BitwardenKit/UI/Platform/Application/Views/ExpandableHeaderView.swift @@ -1,4 +1,3 @@ -import BitwardenKit import BitwardenResources import SwiftUI @@ -6,7 +5,7 @@ import SwiftUI /// A wrapper around some content which can be expanded to show the content or collapsed to hide it. /// -struct ExpandableHeaderView: View { +public struct ExpandableHeaderView: View { // MARK: Properties /// The accessibility identifier for the button to expand or collapse the content. @@ -29,7 +28,7 @@ struct ExpandableHeaderView: View { // MARK: View - var body: some View { + public var body: some View { VStack(spacing: 8) { expandButton @@ -52,11 +51,11 @@ struct ExpandableHeaderView: View { SectionHeaderView("\(title) (\(count))") SharedAsset.Icons.chevronDown16.swiftUIImage - .imageStyle(.accessoryIcon(scaleWithFont: true)) + .imageStyle(.accessoryIcon16(scaleWithFont: true)) .rotationEffect(isExpanded ? Angle(degrees: 180) : .zero) } .multilineTextAlignment(.leading) - .foregroundStyle(Asset.Colors.textSecondary.swiftUIColor) + .foregroundStyle(SharedAsset.Colors.textSecondary.swiftUIColor) } .accessibilityAddTraits(.isHeader) .accessibilityIdentifier(buttonAccessibilityIdentifier) @@ -74,7 +73,7 @@ struct ExpandableHeaderView: View { /// - buttonAccessibilityIdentifier: The accessibility identifier for the button to expand or /// collapse the content. /// - content: The content that is shown when the section is expanded or hidden otherwise. - init( + public init( title: String, count: Int, buttonAccessibilityIdentifier: String = "ExpandSectionButton", @@ -103,6 +102,6 @@ struct ExpandableHeaderView: View { } .padding() .frame(maxHeight: .infinity, alignment: .top) - .background(Asset.Colors.backgroundPrimary.swiftUIColor) + .background(SharedAsset.Colors.backgroundPrimary.swiftUIColor) } #endif