You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
868 B
40 lines
868 B
//
|
|
// TitlePageFrame.swift
|
|
// DouShouQi_App
|
|
//
|
|
// Created by Rémi REGNAULT on 16/05/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct TitlePageFrame: View {
|
|
|
|
// Text Params
|
|
var Text: String
|
|
|
|
// Image Params
|
|
var ImageWidth: CGFloat = 200
|
|
var ImageHeight: CGFloat = 200
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
ZStack {
|
|
Image(AppImages.TitleImage)
|
|
.resizable()
|
|
.aspectRatio(contentMode: .fit)
|
|
.frame(width: ImageWidth, height: ImageHeight)
|
|
|
|
SwiftUI.Text(self.Text)
|
|
.textStyle(CustomTextStyles.Title)
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
struct TitlePageFrame_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
TitlePageFrame(Text: "DouShouQi")
|
|
}
|
|
}
|