Skip to content

➰ :: #3 make dropdown #4

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Sources/SunshijoDesign/Color/GrayScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public extension Color.GrayScale {
static let gray700: Color = #colorLiteral(red: 0.3019607663, green: 0.3019607663, blue: 0.3019607663, alpha: 1).color
static let gray800: Color = #colorLiteral(red: 0.1607843041, green: 0.1607843041, blue: 0.1607843041, alpha: 1).color
static let gray900: Color = #colorLiteral(red: 0.1019608006, green: 0.1019608006, blue: 0.1019608006, alpha: 1).color
static let gray10: Color = #colorLiteral(red: 0.178817153, green: 0.1396981776, blue: 0.1832496524, alpha: 1).color
}

// MARK: - White
Expand Down
25 changes: 25 additions & 0 deletions Sources/SunshijoDesign/DropDown/Preview/DropdownPreview.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import SwiftUI

struct DropdownPreview: View {
var body: some View {
VStack(alignment: .leading) {
Text("학사일정")
.sdText(type: .semiBold24, textColor: .GrayScale.gray900)
.padding(.top, 45)
HStack {
DropdownMenu(items: (1...12).map { index in
DropdownItem(id: index, title: "\(index)월", onSelect: {})
})
.padding(.leading, 44)
Spacer()
}
}
}

}

struct ContentView_Previews: PreviewProvider {
static var previews: some View {
DropdownPreview()
}
}