在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):google/GoogleSignIn-iOS开源软件地址(OpenSource Url):https://github.com/google/GoogleSignIn-iOS开源编程语言(OpenSource Language):Objective-C 92.7%开源软件介绍(OpenSource Introduction):Google Sign-In for iOS and macOSGet users into your apps quickly and securely, using a registration system they already use and trust—their Google account. Visit our developer site for integration instructions, documentation, support information, and terms of service. Getting StartedTry either the Objective-C or Swift sample app. For example, to demo the Objective-C sample project, you have three options:
Note, this will default to providing you with the Objective-C sample app.
If you would like to see a Swift example, take a look at Samples/Swift/DaysUntilBirthday.
Google Sign-In on macOSGoogle Sign-In allows your users to sign-in to your native macOS app using their Google account
and default browser. When building for macOS, the Mac CatalystGoogle Sign-In also supports iOS apps that are built for macOS via Mac Catalyst. In order for your Mac Catalyst app to store credientials via the Keychain on macOS, you will need to sign your app. Using the Google Sign-In ButtonThere are several ways to add a 'Sign in with Google' button to your app, which path you choose will depend on your UI framework and target platform. SwiftUI (iOS and macOS)Creating a 'Sign in with Google' button in SwiftUI can be as simple as this:
This example takes advantage of the initializer's default argument for the
view model.
The default arguments for the view model will use the light scheme, the
standard button style, and the normal button state.
You can supply an instance of UIKit (iOS)If you are not using SwiftUI to build your user interfaces, you can either
create
AppKit (macOS)Given that
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论