Skip to content

Commit

Permalink
Good-looking preview in both Color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Chapliuk committed Feb 23, 2023
1 parent 9419683 commit 68b4324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/WrappingStack/WrappingHStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,13 @@ struct WrappingHStack_Previews: PreviewProvider {
ForEach(["Cat 🐱", "Dog 🐶", "Sun 🌞", "Moon 🌕", "Tree 🌳"], id: \.self) { element in
Text(element)
.padding()
.background(Color.gray.opacity(0.1))
.background(Color.secondary.opacity(0.2))
.cornerRadius(6)
.fixedSize()
}
}
.padding()
.frame(width: 300)
.background(Color.white)
}
}

Expand Down

0 comments on commit 68b4324

Please sign in to comment.