AxisTooltip for SwiftUI

Overview

AxisTooltip for SwiftUI

A library that displays tooltips in the desired view. Supports iOS and macOS.

Platforms iOS macOS instagram SPM MIT

Screenshot

Top/Bottom Leading/Trailing
AxisTooltip.mov

Example

https://fabulaapp.page.link/232

Usages

Text("AxisTooltip")
  .bold()
  .padding()
  .onTapGesture {
      isPresented.toggle()
  }
  .axisToolTip(isPresented: $isPresented, constant: constant, foreground: {
      Label("Contrary to popular belief, Lorem Ipsum is not simply random text.", systemImage: "heart")
          .padding()
          .frame(width: 200)
  })
  // or - Custom background settings.
  // .axisToolTip(isPresented: $isPresented, constant: constant, background: {
  //  Color.blue
  //}, foreground: {
  //    Label("Contrary to popular belief, Lorem Ipsum is not simply random text.", systemImage: "heart")
  //        .padding()
  //        .frame(width: 200)
  //})

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding AxisTooltip as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/jasudev/AxisTooltip.git", .branch("main"))
]

Contact

instagram : @dev.fabula
email : [email protected]

License

AxisTooltip is available under the MIT license. See the LICENSE file for more info.

You might also like...
SwiftUI native-like onboarding sheets
SwiftUI native-like onboarding sheets

Welcome Sheet Welcome sheet for swiftUI enables incredibly easy way for creating onboarding screens, update notes, or whatever you imagine! The main i

JAlert - This is "Alert View" project for UIKit + SwiftUI. you can use easily

JAlert Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation JAlert is a

DataDrivenAlert - Extension for SwiftUI.Alert for data driven configuration
DataDrivenAlert - Extension for SwiftUI.Alert for data driven configuration

Data driven alert and confirmation dialog Based on Composable Architecture Alert

Animated Alert written in SwiftUI.
Animated Alert written in SwiftUI.

TransactionAlert Animated Alert written in SwiftUI. Easy to use Get Started Add a TAViewModel instance as an environment object to your Root View in y

PageSheet - Customizable sheets using UISheetPresentationController in SwiftUI

PageSheet Customizable sheet presentations in SwiftUI. Using UISheetPresentation

AxisSheet for SwiftUI
AxisSheet for SwiftUI

It is a library that handles the sheet view in 4 directions (.top, .bottom, .leading, .trailing) according to the axis mode. It supports iOS and macOS.

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.
DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.

DropView is a SwiftUI-based library to display alerts inspired by the Apple Pencil and pasteboard stock ones.

TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.
TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.

TextFieldAlert A SwiftUI alert with text field(s) for iOS 13 and greater. As Apple is going to introduce text field(s) as an alert actions in iOS 16,

Comments
  • How to align text to top

    How to align text to top

    I'm trying to understand how to apply the Axis Text to appear at the top of where axisToolTip is being applied.

    Code:

     .axisToolTip(isPresented: $tooltip, alignment: .bottomTrailing, constant: constant, foreground:  {
                                        Label("Contrary to popular belief, Lorem Ipsum is not simply random text.", systemImage: "heart")
                                            .padding()
                                            .frame(width: 200)
                                    })
    

    Result

    image

    Expected

    image

    opened by arbyruns 1
Releases(0.5.0)
Owner
jasu
jasu
BottomSheet makes it easy to take advantage of the new UISheetPresentationController in SwiftUI with a simple .bottomSheet modifier on existing views.

BottomSheet makes it easy to take advantage of the new UISheetPresentationController in SwiftUI with a simple .bottomSheet modifier on existing views.

Adam Foot 341 Dec 15, 2022
BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps.

BottomSheet About BottomSheet BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps. The result can look like this...or completel

Daniel Saidi 174 Jan 2, 2023
Easily create different alerts in SwiftUI

AlertWizard ????‍♂️ This package lets you easily create different alerts in SwiftUI with the call of a single function. As this is my first package th

null 3 Jun 3, 2021
Bursts πŸ”₯ A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI

Bursts ?? A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI Features iOS 10+ Can be used in UIKit and SwiftUI applications Lig

Jovins 11 Apr 22, 2022
Create Apple-like alerts & toasts using SwiftUI

AlertToast-SwiftUI Present Apple-like alert & toast in SwiftUI ?? Example ?? Overview Currently in SwiftUI, the only way to inform the user about some

Elai Zuberman 1.1k Dec 29, 2022
an extension library for SwiftUI sheets.

SheetKit SheetKit is an extension library for SwiftUI sheets. δΈ­ζ–‡η‰ˆθ―΄ζ˜Ž with Picture What is SheetKit SheetKit is a library of extensions for SwiftUI moda

δΈœε‘θ‚˜ε­ 65 Dec 31, 2022
SwiftUI Draggable Bottom Sheet

SwiftUI Draggable Bottom Sheet

paigeshin 2 Mar 3, 2022
A SwiftUI Partial Sheet fully customizable with dynamic height

A SwiftUI Partial Sheet fully customizable with dynamic height

Andrea Miotto 1.4k Jan 5, 2023
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. Support SwiftUI.

SPAlert Popup from Apple Music & Feedback in AppStore. Contains Done, Heart, Error and other presets. Supports Dark Mode. I tried to recreate Apple's

Ivan Vorobei 1.4k Dec 10, 2021
A SwiftUI wrapper of the new UIKit sheetPresentationController's capabilities in iOS15.

BottomSheet Bring to SwiftUI the UIKit bottom sheet capabilities that came with iOS15. Usage Show the bottom sheet Button(action: { show.toggle() }) {

Kaww 8 Dec 29, 2022