Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOB-945] 체크박스 컴포넌트 구현 #79

Open
wants to merge 14 commits into
base: feature/redesign_bezier
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Etc] 체크박스 예시 뷰 추가
  • Loading branch information
bonoogi committed Dec 11, 2024
commit 73548d71a71c235bfe741b36eb3de7517bebda7e
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
5C699E5D2CA3F2D20051F9E2 /* BezierCheckboxExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C699E5C2CA3F2D20051F9E2 /* BezierCheckboxExample.swift */; };
5C83DBDF2C21673300B3135B /* BezierSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 5C83DBDE2C21673300B3135B /* BezierSwift */; };
E220176D2C75D67900578E64 /* BezierIconButtonExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E220176C2C75D67900578E64 /* BezierIconButtonExample.swift */; };
E22017702C75E09900578E64 /* BezierFloatingButtonExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = E220176F2C75E09900578E64 /* BezierFloatingButtonExample.swift */; };
Expand All @@ -24,6 +25,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
5C699E5C2CA3F2D20051F9E2 /* BezierCheckboxExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierCheckboxExample.swift; sourceTree = "<group>"; };
E220176C2C75D67900578E64 /* BezierIconButtonExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierIconButtonExample.swift; sourceTree = "<group>"; };
E220176F2C75E09900578E64 /* BezierFloatingButtonExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierFloatingButtonExample.swift; sourceTree = "<group>"; };
E22017712C75E0A400578E64 /* BezierFloatingIconButtonExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BezierFloatingIconButtonExample.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -70,6 +72,7 @@
E2EF05FB2C5A4CDC00C57676 /* BezierLoaderExample.swift */,
E2A392B62C958A540015FA6F /* BezierAvatarExample.swift */,
E2A392B82C98169D0015FA6F /* BezierAvatarGroupExample.swift */,
5C699E5C2CA3F2D20051F9E2 /* BezierCheckboxExample.swift */,
);
path = Examples;
sourceTree = "<group>";
Expand Down Expand Up @@ -200,6 +203,7 @@
E28D19602C365557009B34A2 /* AppDelegate.swift in Sources */,
E28212342A4B32F700018327 /* ContentView.swift in Sources */,
E28212322A4B32F700018327 /* SwiftUIExampleApp.swift in Sources */,
5C699E5D2CA3F2D20051F9E2 /* BezierCheckboxExample.swift in Sources */,
E28D19612C365557009B34A2 /* SceneDelegate.swift in Sources */,
E22017702C75E09900578E64 /* BezierFloatingButtonExample.swift in Sources */,
E2A392B72C958A540015FA6F /* BezierAvatarExample.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 {
BezierCheckboxExample()
} label: {
Text("Checkbox")
}
} header: {
Text("Status")
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// BezierCheckboxExample.swift
// SwiftUIExample
//
// Created by 구본욱 on 9/25/24.
//

import SwiftUI

import BezierSwift

struct BezierCheckboxExample: View {
var body: some View {
VStack {
BezierPrimaryCheckbox(
label: "Hello",
color: .blue,
checked: .indeterminate,
showRequired: true
) {
BezierSecondaryCheckbox(
label: "Secondary",
color: .blue,
checked: false
)
}
BezierPrimaryCheckbox(
label: "Hello",
color: .green,
checked: .indeterminate,
showRequired: true
)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(
BezierColor.bgWhiteNormal.color
.ignoresSafeArea()
)

}
}

#Preview {
BezierCheckboxExample()
}