项目
在 GitHub 查看
jasudev/AxisTooltip
关于
A library that displays tooltips in the desired view. Supports iOS and macOS.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文AxisTooltip for SwiftUI
A library that displays tooltips in the desired view. Supports iOS and macOS.
Screenshot
| Top/Bottom | Leading/Trailing |
|---|---|
![]() |
![]() |
![]() |
![]() |
https://user-images.githubusercontent.com/1617304/156180887-8f9f5ece-c4d6-4218-ac9b-275ac76fa071.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.
探索相关项目
加载中…



