Hey, thank you for open-sourcing such an excellent framework, which helped me achieve the effect I wanted. During use, I hope to switch to the next spotlight by clicking on the background or highlighted view, but it seems that there is no API support.
Can you provide a var nextAction: (() -> ())? { get set } property in the FlowChunk protocol to set the switch to the next spotlight?
Just like this, add a click event to the custom background:
var spotlightBackground: SpotlightBackground {
.custom {
Color.black.opacity(0.85)
.ignoresSafeArea()
.onTapGesture {
// next()
}
.anyView()
}
}
Hey, thank you for open-sourcing such an excellent framework, which helped me achieve the effect I wanted. During use, I hope to switch to the next spotlight by clicking on the background or highlighted view, but it seems that there is no API support.
Can you provide a
var nextAction: (() -> ())? { get set }property in theFlowChunkprotocol to set the switch to the next spotlight?Just like this, add a click event to the custom background: