mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-12-03 14:04:48 +00:00
purple accent colour
This commit is contained in:
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")
|
||||
}
|
||||
}
|
||||