Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Mar 11, 2024
1 parent bf72fda commit 8e8cdc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/OnboardingKit/PageView/PageIndicator.swift
Expand Up @@ -53,7 +53,9 @@ struct PageIndicator: View {
var body: some View {
HStack(spacing: style.dotSpacing) {
ForEach(0..<numberOfPages, id: \.self) { index in
Button(action: { setCurrentPage(index)}) {
Button {
setCurrentPage(index)
} label: {
Circle()
.aspectRatio(1, contentMode: .fit)
.frame(height: isCurrentPage(index) ? style.currentDotSize : style.dotSize)
Expand Down

0 comments on commit 8e8cdc3

Please sign in to comment.