{"id":28524940,"url":"https://github.com/microsoftgraph/msgraph-sample-ios-swift","last_synced_at":"2025-06-29T23:38:24.771Z","repository":{"id":36140055,"uuid":"155634422","full_name":"microsoftgraph/msgraph-sample-ios-swift","owner":"microsoftgraph","description":"This sample demonstrates how to use the Microsoft Graph Objective-C SDK with Swift to access data in Office 365 from native mobile iOS applications.","archived":false,"fork":false,"pushed_at":"2024-05-17T18:19:34.000Z","size":5153,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-09T11:13:13.240Z","etag":null,"topics":["devxsample","ios","microsoft-graph","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoftgraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-31T23:08:18.000Z","updated_at":"2025-05-07T12:47:47.000Z","dependencies_parsed_at":"2024-05-17T19:31:15.919Z","dependency_job_id":"0e274687-550d-4b18-9f0a-c22ebdd28300","html_url":"https://github.com/microsoftgraph/msgraph-sample-ios-swift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/microsoftgraph/msgraph-sample-ios-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sample-ios-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sample-ios-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sample-ios-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sample-ios-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoftgraph","download_url":"https://codeload.github.com/microsoftgraph/msgraph-sample-ios-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sample-ios-swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685443,"owners_count":23348420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devxsample","ios","microsoft-graph","swift"],"created_at":"2025-06-09T11:12:26.975Z","updated_at":"2025-06-29T23:38:24.763Z","avatar_url":"https://github.com/microsoftgraph.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\npage_type: sample\ndescription: This sample demonstrates how to use the Microsoft Graph Objective-C SDK to access data in Office 365 from iOS Swift apps.\nproducts:\n- ms-graph\n- microsoft-graph-calendar-api\n- office-exchange-online\nlanguages:\n- swift\n---\n\n# Microsoft Graph sample iOS Swift app\n\n[![Xcode - Build and Analyze](https://github.com/microsoftgraph/msgraph-training-ios-swift/actions/workflows/xcode.yml/badge.svg)](https://github.com/microsoftgraph/msgraph-training-ios-swift/actions/workflows/xcode.yml) ![License.](https://img.shields.io/badge/license-MIT-green.svg)\n\nThis sample demonstrates how to use the Microsoft Graph Objective-C SDK with Swift to access data in Office 365 from native mobile iOS applications.\n\n\u003e **NOTE:** This sample was originally built from a tutorial published on the [Microsoft Graph tutorials](https://docs.microsoft.com/graph/tutorials) page. That tutorial has been removed.\n\n## Prerequisites\n\nTo run the completed project in this folder, you need the following:\n\n- [Xcode](https://developer.apple.com/xcode/) installed on your development machine.\n- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.\n\nIf you don't have a Microsoft account, there are a couple of options to get a free account:\n\n- You can [sign up for a new personal Microsoft account](https://signup.live.com/signup?wa=wsignin1.0\u0026rpsnv=12\u0026ct=1454618383\u0026rver=6.4.6456.0\u0026wp=MBI_SSL_SHARED\u0026wreply=https://mail.live.com/default.aspx\u0026id=64855\u0026cbcxt=mai\u0026bk=1454618383\u0026uiflavor=web\u0026uaid=b213a65b4fdc484382b6622b3ecaa547\u0026mkt=E-US\u0026lc=1033\u0026lic=1).\n- You can [sign up for the Microsoft 365 Developer Program](https://developer.microsoft.com/microsoft-365/dev-program) to get a free Office 365 subscription.\n\n## Register a web application with the Azure Active Directory admin center\n\n1. Open a browser and navigate to the [Azure Active Directory admin center](https://aad.portal.azure.com) and login using a **personal account** (aka: Microsoft Account) or **Work or School Account**.\n\n1. Select **Azure Active Directory** in the left-hand navigation, then select **App registrations** under **Manage**.\n\n1. Select **New registration**. On the **Register an application** page, set the values as follows.\n\n    - Set **Name** to `iOS Swift Graph Sample`.\n    - Set **Supported account types** to **Accounts in any organizational directory and personal Microsoft accounts**.\n    - Leave **Redirect URI** empty.\n\n1. Select **Register**. On the **iOS Swift Graph Sample** page, copy the value of the **Application (client) ID** and save it, you will need it in the next step.\n\n1. Select **Authentication** under **Manage**. Select **Add a platform**, then **iOS / macOS**.\n\n1. Enter `com.contoso.GraphTutorial` in **Bundle ID** and select **Configure**, then select **Done**.\n\n## Configure the sample\n\n1. Rename the `AuthSettings.plist.example` file to `AuthSettings.plist`.\n1. Edit the `AuthSettings.plist` file and make the following changes.\n    1. Replace `YOUR_APP_ID_HERE` with the **Application (client) ID** you got from the App Registration Portal.\n1. Open Terminal in the **GraphTutorial** directory and run the following command.\n\n    ```Shell\n    pod install\n    ```\n\n## Run the sample\n\nIn Xcode, select the **Product** menu, then select **Run**.\n\n## Code of conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Disclaimer\n\n**THIS CODE IS PROVIDED _AS IS_ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sample-ios-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sample-ios-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sample-ios-swift/lists"}