Skip to content

An intuitive and customizable SwiftUI tooltip tailored to deliver a seamless user experience.

Notifications You must be signed in to change notification settings

agrim-sri/PlotlineTooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlotlineTooltips: A Dynamic SwiftUI Tooltip Library

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

Memory Profiling

Screenshot 2023-08-20 at 4 03 31 PM

Screenshot

Screen 1 Screen 2
Screenshot 2023-08-20 at 4 29 55 PM Screenshot 2023-08-20 at 4 35 50 PM
Screenshot 2023-08-20 at 4 29 55 PM Screenshot 2023-08-20 at 4 34 38 PM

Screen Recording

Screen.Recording.2023-08-21.at.8.02.29.PM.mov

Usage

.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)
                    })

About

An intuitive and customizable SwiftUI tooltip tailored to deliver a seamless user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages