Skip to content

Commit

Permalink
fix: SegmentedButton to public
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Jul 21, 2024
1 parent 43890ea commit 7d57117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DDS/Component/Button/SegmentedButton.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftUI
import Combine

struct SegmentedButton: View {
public struct SegmentedButton: View {

private let labels: [String]

Expand All @@ -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
Expand Down

0 comments on commit 7d57117

Please sign in to comment.