-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] BezierProgressBarExample 추가
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Examples/SwiftUIExample/SwiftUIExample/Examples/BezierProgressBarExample.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// BezierProgressBarExample.swift | ||
// SwiftUIExample | ||
// | ||
// Created by Tom on 9/17/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
import BezierSwift | ||
|
||
struct BezierProgressBarExample: View { | ||
@State var progress: CGFloat = 0 | ||
|
||
var body: some View { | ||
BezierProgressBar(progress: self.progress, size: .medium, variant: .primary) | ||
.onTapGesture { | ||
self.progress += 0.3 | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
BezierProgressBarExample() | ||
} |