when i try to create app clips target ,i found it only provide swift language option, no object-c lanuage option. does it means we just only can use swift to develop app clips?
Does only can use swift to develop app clips?
After creating your App Clip target, you can still add Objective-C file to your App Clip target. So you can use Objective-C in your code
Don't forget to add one or more of the following as needed:
#import <AppClip/APBase.h>
#import <AppClip/AppClip.h>
#import <AppClip/APActivationPayload.h>
#import <AppClip/NSUserActivity+AppClip.h>
#import <AppClip/APBase.h>
#import <AppClip/AppClip.h>
#import <AppClip/APActivationPayload.h>
#import <AppClip/NSUserActivity+AppClip.h>
Thanks. Choose storyboard instead of swiftui for "interface" when create app clips target, i see the Object-C language option, ^_^
You can build app clips in Objective-C, Objective-C++, or Swift using either UIKit or SwiftUI.