-
Notifications
You must be signed in to change notification settings - Fork 0
/
CategoryDetailView.swift
35 lines (29 loc) · 1.01 KB
/
CategoryDetailView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// CategoryView.swift
// YFTP
//
// Created by Tjerk Dijkstra on 04/05/2021.
//
import SwiftUI
struct CategoryDetailView: View {
var title:String
var emoji:String
@State private var showView = "CategoryView"
var body: some View {
HStack(){
VStack(){
Text("\(emoji)").font(/*@START_MENU_TOKEN@*/.largeTitle/*@END_MENU_TOKEN@*/).multilineTextAlignment(.center)
Text("\(title)").font(/*@START_MENU_TOKEN@*/.subheadline/*@END_MENU_TOKEN@*/).fontWeight(.bold).foregroundColor(Color.black).multilineTextAlignment(.center)
}
.frame(width: 140, height: 140, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
.padding(10)
.background(Color.white)
.shadow(radius: 3)
}.background(Color.white)
}
}
struct CategoryDetailView_Previews: PreviewProvider {
static var previews: some View {
CategoryDetailView(title: "Something", emoji: "🚀")
}
}