Skip to content

Commit

Permalink
Adjust UI
Browse files Browse the repository at this point in the history
  • Loading branch information
intitni committed Mar 27, 2024
1 parent 4f1b05c commit 7991c9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Sources/SuggestionWidget/Styles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ struct XcodeLikeFrame<Content: View>: View {
RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
.fill(Material.bar)
)
.overlay(
RoundedRectangle(cornerRadius: max(0, cornerRadius), style: .continuous)
.stroke(Color.black.opacity(0.1), style: .init(lineWidth: 1))
) // Add an extra border just incase the background is not displayed.
.overlay(
RoundedRectangle(cornerRadius: max(0, cornerRadius - 1), style: .continuous)
.stroke(Color.white.opacity(0.2), style: .init(lineWidth: 1))
Expand Down

0 comments on commit 7991c9d

Please sign in to comment.