Skip to content

Add a SwiftUI Calendar sample for iOS - #749

Open
rksharma-owg wants to merge 7 commits into
google:mainfrom
rksharma-owg:codex/swift-calendar-sample
Open

rksharma-owg wants to merge 7 commits into
google:mainfrom
rksharma-owg:codex/swift-calendar-sample

Conversation

@rksharma-owg

@rksharma-owg rksharma-owg commented Oct 12, 2026 •

Copy link
Copy Markdown

The existing Calendar example uses Objective-C and AppKit. Add a small iOS example showing how Swift can use the Calendar service with AppAuth/GTMAppAuth and read-only authorization.

The sample reads upcoming primary-calendar events, loads pages on demand, preserves earlier results after a page error, and clears pending/visible state on sign-out. It includes OAuth client and callback setup instructions, a checked-in Xcode project/shared scheme, offline XCTest coverage, and Debug/Release simulator coverage in the Examples workflow.

Validation at 1972c1b: 18 offline XCTest cases passed on macOS and in Debug/Release iOS simulator runs; both simulator builds and all four existing examples in Debug/Release passed. Fork preflight. Offline tests cover query settings, paging/error/refresh/cancellation behavior, all-day date display, callback configuration, PKCE/read-only request construction, saved-session errors, and accepted/rejected callback handling. Live OAuth, actual Keychain operations, and Google Calendar access have not been tested with a configured client/account.

The changed Examples workflow pins checkout to v7.0.1, limits its token to repository reading, and disables persisted checkout credentials. A zizmor 1.25.2 cloud preflight passed for the workflow.

Related to #234.

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.

1 participant