initial commit

This commit is contained in:
Vicnet
2023-09-16 14:09:49 +02:00
parent 1e42dd4891
commit 2ebc420451
41 changed files with 1495 additions and 83 deletions

View File

@@ -0,0 +1,36 @@
//
// CategoryCardView.swift
// Nextcloud Cookbook iOS Client
//
// Created by Vincent Meilinger on 15.09.23.
//
import Foundation
import SwiftUI
struct CategoryCardView: View {
@State var category: Category
var body: some View {
ZStack {
Image("CookBook")
.aspectRatio(1, contentMode: .fit)
.overlay(
VStack {
Spacer()
Color.clear
.background(
.ultraThickMaterial
)
.overlay(
Text(category.name)
.font(.headline)
)
.frame(maxHeight: 30)
}
)
.clipShape(RoundedRectangle(cornerRadius: 10))
.padding()
}
}
}