An intuitive and customizable SwiftUI tooltip tailored to deliver a seamless user experience.With PlotlineTooltips, you can easily embed rich content, including images and icons, within interactive tooltips. This library is crafted with modern SwiftUI practices and emphasizes user configurability.
Features
- Dynamic Alignments: Set tooltip alignments with ease. Supports multiple orientations including leading, trailing, top, and bottom.
- Interactive Content: Seamlessly embed text, images, and system icons within tooltips.
- User-friendly Configuration: Context menus enable end-users to adjust tooltip properties directly, enhancing the customization experience.
- Adaptive Design: Built responsively for diverse SwiftUI views and device orientations

Screen 1 | Screen 2 |
---|---|
![]() |
![]() |
![]() |
![]() |
Screen.Recording.2023-08-21.at.8.02.29.PM.mov
.tooltip(isPresented: $data.isPresented[index], alignment: alignments[data.alignmentIndexes[index]], constant: data.constants[index], foreground: {
HStack {
Image(data.imageNames[index])
.resizable()
.scaledToFit()
.frame(width: 50, height: 50)
Label(data.tooltips[index], systemImage: "heart")
}
.frame(width: 200)
.padding(data.textPaddings[index])
.font(Font.system(size: data.textSizes[index]))
.foregroundColor(data.textColors[index])
.background(Color.black)
})