HomeiOS DevelopmentHow one can make Customized TipKit View with .popoverTip in iOS SwiftUI

How one can make Customized TipKit View with .popoverTip in iOS SwiftUI


I need like this "Subsequent" button to be on left facet and 4 indicators on proper facet type of TipKit view, which must be popover on the prevailing view the best way to obtain this please guid me

How one can make Customized TipKit View with .popoverTip in iOS SwiftUI

I’m able to create TipKit view like this

struct NewFeatureTip: Tip {
var title: Textual content {
    Textual content("Search!")
}

var message: Textual content? {
    Textual content("Get a fast overview of all the things necessary — greatest for monitoring and managing at a look.")
}

var picture: Picture? {
    Picture(systemName: "moon.stars")
}

var actions: [Action] {
    Motion(id: "subsequent") {
        //TODO:
        print("button tapped")
    } _: {
        Textual content("Subsequent")
            .foregroundStyle(.inexperienced)
    }
}
}

and utilizing like this

   let newFeatureTip = NewFeatureTip()
   Textual content("Search")
        .font(.system(measurement: 28, weight: .daring))
        .foregroundColor(.white)
        .popoverTip(newFeatureTip)

o/p: enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments