made icons all sizes

This commit is contained in:
Lumaa 2024-02-10 01:08:53 +01:00
parent 58a34b75c3
commit 770f22762f
2 changed files with 32 additions and 7 deletions

View File

@ -95,28 +95,40 @@ struct NotificationRow: View {
@ViewBuilder
private func notifIcon() -> some View {
let font: Font = .system(size: 12, weight: .regular, design: .monospaced)
let size: CGFloat = 60.0 / 4.0
ZStack {
switch (notif.supportedType) {
case .favourite:
Image(systemName: "heart.fill")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
case .follow:
Image(systemName: "person.fill.badge.plus")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
case .mention:
Image(systemName: "tag.fill")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
case .reblog:
Image(systemName: "bolt.horizontal.fill")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
case .status:
Image(systemName: "text.badge.plus")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
default:
Image(systemName: "questionmark")
.font(font)
.resizable()
.scaledToFit()
.frame(width: size, height: size)
}
}
.frame(minWidth: 30)

View File

@ -0,0 +1,13 @@
//Made by Lumaa
import SwiftUI
struct DiscoveryView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
DiscoveryView()
}