Skip to content

Commit

Permalink
[trello.com/c/sI4VXuJa] UI: Style info/message snackbar: added pull-d…
Browse files Browse the repository at this point in the history
…own separator
  • Loading branch information
IanaaDvlp committed Dec 23, 2024
1 parent 5acce50 commit d8a9c47
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ struct NotificationView: View {
let model: NotificationModel

var body: some View {
HStack(alignment: .top, spacing: 8) {
if let icon = model.icon {
makeIcon(image: icon)
VStack(alignment: .center, spacing: 5) {
HStack(alignment: .top, spacing: 10) {
if let icon = model.icon {
makeIcon(image: icon)
}
textStack
Spacer(minLength: .zero)
}
textStack
Spacer(minLength: .zero)

Image(systemName: isTextLimited ? pullDownIcon : pullUpIcon)
.font(.title)
.foregroundColor(.gray)
}
}
}
Expand Down Expand Up @@ -49,3 +55,6 @@ private extension NotificationView {
}
}
}

private let pullDownIcon = "chevron.compact.down"
private let pullUpIcon = "chevron.compact.up"

0 comments on commit d8a9c47

Please sign in to comment.