Post

Replies

Boosts

Views

Activity

Reply to TipKit popover inside ForEach Loop
Thank you very much, that example is exactly my scenario, what I want to implement, but even in the sample code I ran into the same problem. As long as there is more than one FoodEventTip.Item in the list, the tip is not shown. Based on the rules, the tip should be displayed with the fifth favorite, but it is not. More than one item, no tip will be shown: Array has only one item, the tip will be shown: Also, if you move the popoverTip view modifier onto the HStack it will be shown, but then it's not on the button. Seems that there is some bug with popoverTip inside a ForEach loop. Xcode Version 16.4 (16F6) and iPad Simulator with iPadOS 18.5
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’25
Reply to TipKit popover inside ForEach Loop
Thank you very much, that example is exactly my scenario, what I want to implement, but even in the sample code I ran into the same problem. As long as there is more than one FoodEventTip.Item in the list, the tip is not shown. Based on the rules, the tip should be displayed with the fifth favorite, but it is not. More than one item, no tip will be shown: Array has only one item, the tip will be shown: Also, if you move the popoverTip view modifier onto the HStack it will be shown, but then it's not on the button. Seems that there is some bug with popoverTip inside a ForEach loop. Xcode Version 16.4 (16F6) and iPad Simulator with iPadOS 18.5
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25