https://github.com/noppefoxwolf/floatupeffect
https://github.com/noppefoxwolf/floatupeffect
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noppefoxwolf/floatupeffect
- Owner: noppefoxwolf
- Created: 2024-02-11T12:37:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T03:18:56.000Z (over 2 years ago)
- Last Synced: 2025-03-27T05:41:30.387Z (about 1 year ago)
- Language: Swift
- Size: 1.84 MB
- Stars: 24
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FloatUpView
FloatUpView is a simple and easy to use library for creating floating up effect for any view in iOS. You can easily customize the floating up effect by changing the duration, distance, and direction of the floating up effect.
## Demo

## Usage
```swift
FloatUpView(
content: {
Button(action: $0, label: {
Image(systemName: "heart.circle")
.resizable()
.frame(width: 44, height: 44)
})
},
floatUpContent: {
Image(systemName: "heart.fill")
.resizable()
.foregroundStyle(.pink)
.frame(width: 44, height: 44)
.shadow(radius: 10)
}
)
```
## Installation
FloatupEffect is available through Swift Package Manager. To install it, simply add the following line to your Package.swift file:
```swift
dependencies: [
.package(url: "https://github.com/noppefoxwolf/FloatUpEffect", .upToNextMajor(from: "0.0.1"))
]
```
## License
FloatUpEffect is available under the MIT license. See the LICENSE file for more info.