From 423bda2a987bc481430d0e6f94671bfb30e5e450 Mon Sep 17 00:00:00 2001 From: kirtidhwajpatra Date: Thu, 16 Oct 2025 14:09:07 +0530 Subject: [PATCH] Add TestView.swift for learning contribution workflow This is a simple SwiftUI view test file added as part of learning the GitHub contribution workflow. The TestView demonstrates basic SwiftUI components including Text, VStack, and Button. --- TestView.swift | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 TestView.swift diff --git a/TestView.swift b/TestView.swift new file mode 100644 index 0000000..ddc7140 --- /dev/null +++ b/TestView.swift @@ -0,0 +1,39 @@ +// +// TestView.swift +// SwiftUI Test Contribution +// +// Created for learning GitHub workflow +// + +import SwiftUI + +struct TestView: View { + var body: some View { + VStack(spacing: 20) { + Text("Test View") + .font(.largeTitle) + .fontWeight(.bold) + + Text("This is a simple test contribution") + .font(.body) + .foregroundColor(.secondary) + + Button(action: { + print("Test button tapped") + }) { + Text("Test Button") + .padding() + .background(Color.blue) + .foregroundColor(.white) + .cornerRadius(10) + } + } + .padding() + } +} + +struct TestView_Previews: PreviewProvider { + static var previews: some View { + TestView() + } +}