While using TipKit’s TipGroup I encountered what I believe to be a bug:
The second tip of the TipGroup is presented as a sheet.
I’ve watch the two WWDC sessions about TipKit and the implementation looks good.
Has anyone got this issue too ? And found a solution ?
You can reproduce it when running on iOS 18 with the code below. I have the issue on simulator using iOS 18.6 and on a device using the latest iOS 18.7.1, but so far I can’t reproduce on iOS 26.
import SwiftUI
import TipKit
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
TipKitTestView()
.task {
try? Tips.resetDatastore()
try? Tips.configure()
}
}
}
}
struct TipKitTestView: View {
@State
var tips = TipGroup {
Tip1()
Tip2()
}
var body: some View {
HStack {
Text("Hello")
.popoverTip(tips.currentTip as? Tip1)
Text("World")
.popoverTip(tips.currentTip as? Tip2)
}
}
}
struct Tip1: Tip {
var title: Text {
Text("tip #1")
}
var message: Text? {
Text("short message inside the tip")
}
var image: Image? {
Image(systemName: "eye")
}
}
struct Tip2: Tip {
var title: Text {
Text("tip #2")
}
var message: Text? {
Text("short message inside the tip")
}
var image: Image? {
Image(systemName: "trash")
}
}
