by Luiz Mello
@luizmellodevA customizable accordion component with smooth animations, multiple expansion modes, and custom styling options perfect for FAQs and collapsible content
public struct AccordionItem: Identifiable {
public let id = UUID()
let title: String
let content: String
let icon: String?
let accessibilityLabel: String?
public init(
title: String,
content: String,
icon: String? = nil,
accessibilityLabel: String? = nil
) {
self.title = title
self.content = content
self.icon = icon
self.accessibilityLabel = accessibilityLabel
}
}