Skip to content

Commit

Permalink
Delete preview because Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBucher12 committed Jan 12, 2024
1 parent 71032aa commit 0491a29
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions Sources/RichTextKit/Colors/RichTextColorPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,44 +148,3 @@ private struct ColorButtonStyle: ButtonStyle {
.shadow(radius: 1, x: 0, y: 1)
}
}

#Preview {

struct Preview: View {

@State
private var foregroundColor = Color.black

@State
private var backgroundColor = Color.white

var body: some View {
VStack(alignment: .leading, spacing: 10) {
Text("Preview")
.foregroundStyle(foregroundColor)
.padding()
.background(backgroundColor)
.frame(maxWidth: .infinity)
.border(Color.black)
.background(Color.red)
.padding()

RichTextColorPicker(
type: .foreground,
value: $foregroundColor,
quickColors: [.white, .black, .red, .green, .blue]
)
.padding(.leading)

RichTextColorPicker(
type: .background,
value: $backgroundColor,
quickColors: [.white, .black, .red, .green, .blue]
)
.padding(.leading)
}
}
}

return Preview()
}

0 comments on commit 0491a29

Please sign in to comment.