weixin_39538877
weixin_39538877
2020-12-26 10:20

Review ShortcutRecorder API under Swift

One should test whether current API is usable in Swift applications.

  • Rewrite collections to use generics
  • Annotate methods with nullability constants
  • Annotate designated initializers
  • NS_ENUM / NS_OPTIONS
  • NS_STRING_ENUM / NS_EXTENSIBLE_STRING_ENUM
  • NS_NOESCAPE
  • Clang Modules

该提问来源于开源项目:Kentzo/ShortcutRecorder

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39662721 weixin_39662721 4月前

    Hello,

    I try to use ShortcutRecorder with Swift 2.1 + Carthage. The Framework was built and Header's looks fine. But no matter how I try, I cannot import the frameworks in Swift. And I have no idea how to solve the problem.

    Is there any solution?

    点赞 评论 复制链接分享
  • weixin_39538877 weixin_39538877 4月前

    Can you upload a demo project somewhere?

    点赞 评论 复制链接分享
  • weixin_39662721 weixin_39662721 4月前

    Here you go. I use an Objective-C Framework 'ZipZap' which works.

    http://d.pr/f/1aeVh

    Thanks.

    点赞 评论 复制链接分享
  • weixin_39538877 weixin_39538877 4月前

    Relevant documentation https://developer.apple.com/documentation/swift/objective-c_and_c_code_customization

    点赞 评论 复制链接分享
  • weixin_39538877 weixin_39538877 4月前

    3.0 is designed with Swift in mind.

    点赞 评论 复制链接分享

相关推荐