From 7d5711760ec2730f10452b72295b32c4335a12b9 Mon Sep 17 00:00:00 2001 From: hhhello Date: Sun, 21 Jul 2024 23:15:00 +0900 Subject: [PATCH] fix: SegmentedButton to public --- Source/DDS/Component/Button/SegmentedButton.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DDS/Component/Button/SegmentedButton.swift b/Source/DDS/Component/Button/SegmentedButton.swift index e5b35c0..10c2cde 100644 --- a/Source/DDS/Component/Button/SegmentedButton.swift +++ b/Source/DDS/Component/Button/SegmentedButton.swift @@ -1,7 +1,7 @@ import SwiftUI import Combine -struct SegmentedButton: View { +public struct SegmentedButton: View { private let labels: [String] @@ -21,7 +21,7 @@ struct SegmentedButton: View { @State private var selected: Int @State private var animatedSelection: Int - var body: some View { + public var body: some View { HStack(spacing: 8) { ForEach(Array(labels.enumerated()), id: \.offset) { idx, label in let isSelected = animatedSelection == idx