Skip to content

Commit 9444c18

Browse files
committed
Initial Commit
0 parents  commit 9444c18

File tree

12 files changed

+795
-0
lines changed

12 files changed

+795
-0
lines changed

ToDoList.xcodeproj/project.pbxproj

+563
Large diffs are not rendered by default.

ToDoList.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>ToDoList.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"platform" : "ios",
6+
"size" : "1024x1024"
7+
},
8+
{
9+
"appearances" : [
10+
{
11+
"appearance" : "luminosity",
12+
"value" : "dark"
13+
}
14+
],
15+
"idiom" : "universal",
16+
"platform" : "ios",
17+
"size" : "1024x1024"
18+
},
19+
{
20+
"appearances" : [
21+
{
22+
"appearance" : "luminosity",
23+
"value" : "tinted"
24+
}
25+
],
26+
"idiom" : "universal",
27+
"platform" : "ios",
28+
"size" : "1024x1024"
29+
}
30+
],
31+
"info" : {
32+
"author" : "xcode",
33+
"version" : 1
34+
}
35+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

ToDoList/ContentView.swift

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// ContentView.swift
3+
// ToDoList
4+
//
5+
// Created by Muhammad Usman on 04/12/2024.
6+
//
7+
8+
import SwiftUI
9+
10+
struct ContentView: View {
11+
var body: some View {
12+
VStack {
13+
Image(systemName: "globe")
14+
.imageScale(.large)
15+
.foregroundStyle(.tint)
16+
Text("Hello, world!")
17+
}
18+
.padding()
19+
}
20+
}
21+
22+
#Preview {
23+
ContentView()
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

ToDoList/ToDoListApp.swift

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// ToDoListApp.swift
3+
// ToDoList
4+
//
5+
// Created by Muhammad Usman on 04/12/2024.
6+
//
7+
8+
import SwiftUI
9+
10+
@main
11+
struct ToDoListApp: App {
12+
var body: some Scene {
13+
WindowGroup {
14+
ContentView()
15+
}
16+
}
17+
}

ToDoListTests/ToDoListTests.swift

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// ToDoListTests.swift
3+
// ToDoListTests
4+
//
5+
// Created by Muhammad Usman on 04/12/2024.
6+
//
7+
8+
import XCTest
9+
@testable import ToDoList
10+
11+
final class ToDoListTests: XCTestCase {
12+
13+
override func setUpWithError() throws {
14+
// Put setup code here. This method is called before the invocation of each test method in the class.
15+
}
16+
17+
override func tearDownWithError() throws {
18+
// Put teardown code here. This method is called after the invocation of each test method in the class.
19+
}
20+
21+
func testExample() throws {
22+
// This is an example of a functional test case.
23+
// Use XCTAssert and related functions to verify your tests produce the correct results.
24+
// Any test you write for XCTest can be annotated as throws and async.
25+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
26+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
27+
}
28+
29+
func testPerformanceExample() throws {
30+
// This is an example of a performance test case.
31+
self.measure {
32+
// Put the code you want to measure the time of here.
33+
}
34+
}
35+
36+
}

ToDoListUITests/ToDoListUITests.swift

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//
2+
// ToDoListUITests.swift
3+
// ToDoListUITests
4+
//
5+
// Created by Muhammad Usman on 04/12/2024.
6+
//
7+
8+
import XCTest
9+
10+
final class ToDoListUITests: XCTestCase {
11+
12+
override func setUpWithError() throws {
13+
// Put setup code here. This method is called before the invocation of each test method in the class.
14+
15+
// In UI tests it is usually best to stop immediately when a failure occurs.
16+
continueAfterFailure = false
17+
18+
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
19+
}
20+
21+
override func tearDownWithError() throws {
22+
// Put teardown code here. This method is called after the invocation of each test method in the class.
23+
}
24+
25+
@MainActor
26+
func testExample() throws {
27+
// UI tests must launch the application that they test.
28+
let app = XCUIApplication()
29+
app.launch()
30+
31+
// Use XCTAssert and related functions to verify your tests produce the correct results.
32+
}
33+
34+
@MainActor
35+
func testLaunchPerformance() throws {
36+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
37+
// This measures how long it takes to launch your application.
38+
measure(metrics: [XCTApplicationLaunchMetric()]) {
39+
XCUIApplication().launch()
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// ToDoListUITestsLaunchTests.swift
3+
// ToDoListUITests
4+
//
5+
// Created by Muhammad Usman on 04/12/2024.
6+
//
7+
8+
import XCTest
9+
10+
final class ToDoListUITestsLaunchTests: XCTestCase {
11+
12+
override class var runsForEachTargetApplicationUIConfiguration: Bool {
13+
true
14+
}
15+
16+
override func setUpWithError() throws {
17+
continueAfterFailure = false
18+
}
19+
20+
@MainActor
21+
func testLaunch() throws {
22+
let app = XCUIApplication()
23+
app.launch()
24+
25+
// Insert steps here to perform after app launch but before taking a screenshot,
26+
// such as logging into a test account or navigating somewhere in the app
27+
28+
let attachment = XCTAttachment(screenshot: app.screenshot())
29+
attachment.name = "Launch Screen"
30+
attachment.lifetime = .keepAlways
31+
add(attachment)
32+
}
33+
}

0 commit comments

Comments
 (0)