Skip to content

Conversation

@aknnmobven
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new SwiftUI tooltip library called TooltipKitUI, complementing the existing UIKit-based ToolTipKit. The implementation provides a declarative API for adding customizable tooltips to SwiftUI views with features like automatic positioning, highlight effects, and extensive styling options.

Key Changes

  • Added complete TooltipKitUI module with SwiftUI-based tooltip implementation supporting iOS 14+
  • Implemented custom shape rendering for tooltips with dynamic arrow positioning
  • Created comprehensive documentation with usage examples and configuration parameters in README

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
Sources/TooltipKitUI/Views/TooltipOverlay.swift Core positioning logic for tooltips with automatic placement above/below targets
Sources/TooltipKitUI/Views/TooltipKitUI.swift Main tooltip view component with title/description rendering
Sources/TooltipKitUI/Views/TooltipContainer.swift Container wrapper that manages tooltip presentation and overlay
Sources/TooltipKitUI/Utils/TooltipPreferenceKey.swift SwiftUI preference key for passing tooltip data up the view hierarchy
Sources/TooltipKitUI/Shapes/TooltipShape.swift Custom shape drawing rounded rectangles with directional arrows
Sources/TooltipKitUI/Modifiers/TooltipModifier.swift View modifier extension providing .tooltip() API for any SwiftUI view
Sources/TooltipKitUI/Models/TooltipPreferenceData.swift Data model for tooltip preference values with frame and config
Sources/TooltipKitUI/Models/TooltipConfig.swift Configuration struct with customization options and ArrowDirection enum
Sources/TooltipKitUI/Manager/TooltipManager.swift State manager for tooltip dismissal coordination
Sample/Sample/ViewController.swift Added button to navigate to SwiftUI preview screen
Sample/Sample/SwiftUI/TooltipPreviewScreen.swift Interactive demo screen for testing tooltip customization
Sample/Sample.xcodeproj/project.pbxproj Project file updates to include new SwiftUI files and TooltipKitUI dependency
README.md Comprehensive documentation for TooltipKitUI with API reference and examples
Package.swift Added TooltipKitUI library target to Swift package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Rashidium
Rashidium previously approved these changes Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants