-
What’s new in App Clips
Explore the latest updates to App Clips. We'll show you how to build App Clips more easily using default App Clip links. Learn how you can take advantage of the increased App Clip size limit to build richer and more engaging experiences, and find out how you can launch App Clips directly from your app.
Capítulos
- 0:00 - Intro
- 1:00 - New size limit
- 2:17 - Default App Clip links
- 4:17 - Invoke from your app
- 5:42 - Wrap-up
Recursos
Videos relacionados
WWDC20
-
Buscar este video…
-
-
3:53 - Parsing URL parameters as components
ContentView(parameters: $parameters) .onContinueUserActivity(NSUserActivityTypeBrowsingWeb, perform: { userActivity in guard let inputURL = userActivity.webpageURL else { return } let components = NSURLComponents(url: inputURL, resolvingAgainstBaseURL: true) guard let parameters = components?.queryItems else { return } self.parameters = parameters } -
4:39 - Providing metadata to an LPLinkView
let provider = LPMetadataProvider() provider.startFetchingMetadata(for: url) { (metadata, error) in guard let metadata = metadata else { return } DispatchQueue.main.async { lpView.metadata = metadata } } -
5:00 - Launching App Clips from a SwiftUI app
var body: some View { let appClipURL = URL( string: "https://appclip.apple.com/id?p=com.example.naturelab.backyardbirds.Clip" )! Link("Backyard Birds", destination: appClipURL) } -
5:11 - Launching App Clips with UIApplication
func launchAppClip() { let appClipURL = URL( string: "https://appclip.apple.com/id?p=com.example.naturelab.backyardbirds.Clip" )! UIApplication.shared.open(appClipURL) }
-