Skip to content

Add Sign in with Apple login page#38

Draft
muvaf wants to merge 2 commits into
mainfrom
cursor/login-with-apple-id-ded9
Draft

Add Sign in with Apple login page#38
muvaf wants to merge 2 commits into
mainfrom
cursor/login-with-apple-id-ded9

Conversation

@muvaf

@muvaf muvaf commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements LIM-277: a Sign in with Apple login page for the sample iOS app.

  • Adds LoginView using SwiftUI's SignInWithAppleButton and AuthenticationServices.
  • Requests fullName and email scopes; surfaces the returned ASAuthorizationAppleIDCredential via a small AppleIDCredential value type.
  • Adds a "signed in" landing view showing the returned name / email / user identifier with a sign-out button.
  • Adds the Sign in with Apple entitlement (sample-native-app.entitlements) and wires CODE_SIGN_ENTITLEMENTS into the Debug & Release configurations.
  • Surfaces real sign-in failures as an in-app error banner that auto-dismisses after 4s. User-canceled and "unknown" auth errors (which the iOS simulator returns when the user dismisses the sheet) are filtered out so they don't show up as scary error banners.

Files

  • sample-native-app/LoginView.swift — login UI + AppleIDCredential wrapper.
  • sample-native-app/ContentView.swift — routes between login and signed-in states with auto-dismissing error banner.
  • sample-native-app/sample-native-app.entitlements — Sign in with Apple entitlement.
  • sample-native-app.xcodeproj/project.pbxprojCODE_SIGN_ENTITLEMENTS for Debug/Release.

Testing

Built and ran on the Limrun iOS simulator (lim xcode build .). Verified end-to-end that:

  • The login page renders cleanly with the Apple logo, "Welcome", subtitle, "Sign in with Apple" button, and the full "By continuing you agree to our Terms and Privacy Policy." footer.
  • Tapping the button invokes the system AuthenticationServices flow and presents the iOS "Sign in to your Apple Account" sheet (the simulator has no Apple Account configured, so it prompts to go to Settings — expected behavior).
  • Dismissing the sheet returns to a clean login page with no error banner.

Preview

You can install this build on a Limrun simulator: Open in console.limrun.com

Screenshots & video

Login page

Apple sign-in sheet

login_with_apple_demo.mp4

To show artifacts inline, enable in settings.

Linear Issue: LIM-277

Open in Web Open in Cursor 

Co-authored-by: muvaffak <me@muvaf.com>
@github-actions

github-actions Bot commented May 11, 2026

Copy link
Copy Markdown

Limrun Preview

Platform Commit Preview
iOS d7c5adc Open Preview →

Reviewer must be a member of the organization on Limrun.

…ix footer padding

Co-authored-by: muvaffak <me@muvaf.com>
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