mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-12-03 14:04:48 +00:00
consolidated emptycollectionview
updated emptycollectionview added a no results view and a hint to start searching downloadedview doesnt work atm emojicollectionview representable and the bare uikit reorging searchview some stuff in emojicollectionview i forgor
This commit is contained in:
15 files changed
+376
-340
No files matched your search
@@ -13,29 +13,37 @@ struct EmptyCollectionView: View {
|
||||
@State var systemImage: String
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Color.accentColor
|
||||
.opacity(0.4)
|
||||
.padding(.horizontal, -15)
|
||||
.padding(.vertical, -15)
|
||||
.blur(radius: 5)
|
||||
VStack {
|
||||
HStack {
|
||||
Image(systemName: systemImage)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 25)
|
||||
.padding(.horizontal, 5)
|
||||
Text(title)
|
||||
.bold()
|
||||
.font(.title3)
|
||||
}
|
||||
HStack {
|
||||
Spacer()
|
||||
Text(details)
|
||||
.multilineTextAlignment(.center)
|
||||
.foregroundStyle(.gray)
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
.listRowSeparator(.hidden)
|
||||
HStack {
|
||||
Spacer()
|
||||
Text(details)
|
||||
.multilineTextAlignment(.center)
|
||||
Spacer()
|
||||
.transition(.scale)
|
||||
.multilineTextAlignment(.center)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding()
|
||||
.background {
|
||||
Color.accentColor.opacity(0.2)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 10))
|
||||
.blur(radius: 5)
|
||||
.shadow(color: .accentColor, radius: 5)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||