Skip to content

Conversation

@sosloan
Copy link
Owner

@sosloan sosloan commented Jan 22, 2025

Add functionality to call a sandbox API from the Swift app.

  • StudyHallOrgApp.swift

    • Import Foundation module.
    • Add callSandboxAPI() function call in StudyHallOrgApp's body within the .onAppear modifier.
  • ContentView.swift

    • Add a button to call callSandboxAPI() in the NavigationSplitView toolbar.
  • Info.plist

    • Add NSAppTransportSecurity key with NSAllowsArbitraryLoads set to true.

Add functionality to call a sandbox API from the Swift app.

* **StudyHallOrgApp.swift**
  * Import `Foundation` module.
  * Add `callSandboxAPI()` function call in `StudyHallOrgApp`'s `body` within the `.onAppear` modifier.

* **ContentView.swift**
  * Add a button to call `callSandboxAPI()` in the `NavigationSplitView` toolbar.

* **Info.plist**
  * Add `NSAppTransportSecurity` key with `NSAllowsArbitraryLoads` set to `true`.
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants