Skip to content

Commit

Permalink
Merge pull request #1054 from planetary-social/feature/discover-info-…
Browse files Browse the repository at this point in the history
…button

Use custom info icon for Discover tab
  • Loading branch information
joshuatbrown authored Apr 19, 2024
2 parents a61c551 + 864ea4e commit 020b7ec
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Nos/Assets/Assets.xcassets/discover-info.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "info.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
19 changes: 19 additions & 0 deletions Nos/Assets/Assets.xcassets/discover-info.imageset/info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Nos/Views/DiscoverView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ struct DiscoverView: View {
// TODO: actually show the popover. https://github.com/planetary-social/nos/issues/1025
showInfoPopover = true
} label: {
Image(systemName: "info.circle")
Image.discoverInfo
}
.foregroundColor(.secondaryTxt)
.foregroundStyle(Color.secondaryTxt)
}
}
.animation(.easeInOut, value: columns)
Expand Down

0 comments on commit 020b7ec

Please sign in to comment.