purple accent colour

This commit is contained in:
neon443 committed 2026-04-10 22:02:35 +01:00
1 parent 5ec663af69
commit a304122b43
9 files changed
+87 -15

No files matched your search

@@ -0,0 +1,46 @@
//
// EmptyCollectionView.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import SwiftUI
struct EmptyCollectionView: View {
@State var title: String
@State var details: String
@State var systemImage: String
var body: some View {
ZStack {
Color.accentColor
.opacity(0.4)
.padding(.horizontal, -15)
.padding(.vertical, -15)
.blur(radius: 5)
HStack {
Image(systemName: systemImage)
.resizable()
.scaledToFit()
.frame(width: 25)
Text(title)
.bold()
.font(.title3)
}
}
.listRowSeparator(.hidden)
HStack {
Spacer()
Text(details)
.multilineTextAlignment(.center)
Spacer()
}
}
}
#Preview {
List {
EmptyCollectionView(title: "details.title", details: "details.body", systemImage: "gear")
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.