Hello,
I have a simple tip that im displaying, but want to change the tint color to something other than the default system blue tint. I tried different approaches that are common in changing image tint color but none seem to work. Is there a special call to achieve that?
Note: I'm using UIKit to display the tip.
Version 15.0 beta 8 (15A5229m)
Thank you!
example tip:
struct FavoriteTip: Tip {
var title: Text {
Text("Favorite This Car")
}
var message: Text? {
Text("Favorite this car to receive status updates and more!")
}
var image: Image? {
Image(systemName: "heart.fill")
}
}
If you're using a popover, try this:
let popoverController = TipUIPopoverViewController(sampleTip, sourceItem: sampleButton)
popoverController.view.tintColor = UIColor.orange
If you're using an inline tip style, try this:
let tipHostingView = TipUIView(sampleTip)
tipHostingView.tintColor = UIColor.orange
(Note that these examples are for UIKit, not SwiftUI)