diff --git a/DouShouQi_App/DouShouQi_App/Components/TitlePageFrame.swift b/DouShouQi_App/DouShouQi_App/Components/TitlePageFrame.swift index e492471..7f6be9c 100644 --- a/DouShouQi_App/DouShouQi_App/Components/TitlePageFrame.swift +++ b/DouShouQi_App/DouShouQi_App/Components/TitlePageFrame.swift @@ -9,6 +9,9 @@ import SwiftUI struct TitlePageFrame: View { + // Text Params + var Text: String + // Image Params var ImageWidth: CGFloat var ImageHeight: CGFloat @@ -21,8 +24,10 @@ struct TitlePageFrame: View { .aspectRatio(contentMode: .fit) .frame(width: ImageWidth, height: ImageHeight) - Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) - .textStyle(T: TextStyles.ViewTitle) + SwiftUI.Text(self.Text) + .foregroundColor(Colors.TitleText) + .fontWeight(.bold) + .font(.title) } } @@ -31,6 +36,6 @@ struct TitlePageFrame: View { struct TitlePageFrame_Previews: PreviewProvider { static var previews: some View { - TitlePageFrame(ImageWidth: 200, ImageHeight: 200) + TitlePageFrame(Text: "DouShouQi", ImageWidth: 200, ImageHeight: 200) } }