Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions StudyHallOrg/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// ContentView.swift
// StudyHallOrg
//
// Created by Steve Sloan on 9/21/24.
//

import SwiftUI
import SwiftData

Expand Down Expand Up @@ -33,6 +26,11 @@ struct ContentView: View {
Label("Add Item", systemImage: "plus")
}
}
ToolbarItem {
Button(action: callSandboxAPI) {
Label("Call Sandbox API", systemImage: "network")
}
}
}
} detail: {
Text("Select an item")
Expand Down
6 changes: 5 additions & 1 deletion StudyHallOrg/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
<array>
<string>remote-notification</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
11 changes: 4 additions & 7 deletions StudyHallOrg/StudyHallOrgApp.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
//
// StudyHallOrgApp.swift
// StudyHallOrg
//
// Created by Steve Sloan on 9/21/24.
//

import SwiftUI
import SwiftData
import Foundation

@main
struct StudyHallOrgApp: App {
Expand All @@ -28,5 +22,8 @@ struct StudyHallOrgApp: App {
ContentView()
}
.modelContainer(sharedModelContainer)
.onAppear {
callSandboxAPI()
}
}
}