TipKit; only for SwiftUI or also for Swift?

I liked the TipKit presentation -- nice and short and to the point, great introduction!

All the code snippets were in SwiftUI. Will TipKit be available for regular UIKit / AppKit apps as well, or is it restricted to only being used within SwiftUI apps?

thanks

Answered by in 761769022

Apple's official documentation is at https://developer.apple.com/documentation/TipKit, which covers UIKit and SwiftUI. In addition, here are a couple of external resources that go into a lot more detail, especially for the UIKit support:

  • https://bendodson.com/weblog/2023/07/26/tipkit-tutorial/
  • https://www.youtube.com/watch?v=0F9EXcQ1nw0&t=2108s

Yes, TipKit will work with UIKit and AppKit apps as well as SwiftUI. The code to make TipKit work with UIKit and AppKit will be slightly more verbose than SwiftUI, but functionally it will work the same way. Once TipKit is available in upcoming betas, we plan to share code samples to add TipKit to your UIKit and AppKit apps. Stay tuned!

Are the code samples for using TipKit with UIKit ready yet and if so where can we find them?

Accepted Answer

Apple's official documentation is at https://developer.apple.com/documentation/TipKit, which covers UIKit and SwiftUI. In addition, here are a couple of external resources that go into a lot more detail, especially for the UIKit support:

  • https://bendodson.com/weblog/2023/07/26/tipkit-tutorial/
  • https://www.youtube.com/watch?v=0F9EXcQ1nw0&t=2108s
TipKit; only for SwiftUI or also for Swift?
 
 
Q