Skip to content

Commit

Permalink
[Feature] BezierProgressBarExample 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
solchan87 committed Sep 19, 2024
1 parent d790f37 commit a5b0949
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
E28D19612C365557009B34A2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E28D195F2C365557009B34A2 /* SceneDelegate.swift */; };
E2A392B72C958A540015FA6F /* BezierAvatarExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2A392B62C958A540015FA6F /* BezierAvatarExample.swift */; };
E2A392B92C98169D0015FA6F /* BezierAvatarGroupExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2A392B82C98169D0015FA6F /* BezierAvatarGroupExample.swift */; };
E2A392BB2C98A0FB0015FA6F /* BezierProgressBarExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2A392BA2C98A0FB0015FA6F /* BezierProgressBarExample.swift */; };
E2EF05FC2C5A4CDC00C57676 /* BezierLoaderExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2EF05FB2C5A4CDC00C57676 /* BezierLoaderExample.swift */; };
/* End PBXBuildFile section */

Expand All @@ -37,6 +38,7 @@
E28D195F2C365557009B34A2 /* SceneDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
E2A392B62C958A540015FA6F /* BezierAvatarExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierAvatarExample.swift; sourceTree = "<group>"; };
E2A392B82C98169D0015FA6F /* BezierAvatarGroupExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierAvatarGroupExample.swift; sourceTree = "<group>"; };
E2A392BA2C98A0FB0015FA6F /* BezierProgressBarExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierProgressBarExample.swift; sourceTree = "<group>"; };
E2EF05FB2C5A4CDC00C57676 /* BezierLoaderExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierLoaderExample.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -70,6 +72,7 @@
E2EF05FB2C5A4CDC00C57676 /* BezierLoaderExample.swift */,
E2A392B62C958A540015FA6F /* BezierAvatarExample.swift */,
E2A392B82C98169D0015FA6F /* BezierAvatarGroupExample.swift */,
E2A392BA2C98A0FB0015FA6F /* BezierProgressBarExample.swift */,
);
path = Examples;
sourceTree = "<group>";
Expand Down Expand Up @@ -193,6 +196,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E2A392BB2C98A0FB0015FA6F /* BezierProgressBarExample.swift in Sources */,
E258E6BE2C3D8D9C00F69680 /* BezierButtonExample.swift in Sources */,
E2EF05FC2C5A4CDC00C57676 /* BezierLoaderExample.swift in Sources */,
E2A392B92C98169D0015FA6F /* BezierAvatarGroupExample.swift in Sources */,
Expand Down
5 changes: 5 additions & 0 deletions Examples/SwiftUIExample/SwiftUIExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ struct ContentView: View {
} label: {
Text("Loader")
}
NavigationLink {
BezierProgressBarExample()
} label: {
Text("ProgressBar")
}
} header: {
Text("Status")
}
Expand Down
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()
}

0 comments on commit a5b0949

Please sign in to comment.