dominikbutz / minimizableview Goto Github PK
View Code? Open in Web Editor NEWSwiftUI view that minimizes to the bottom of the screen similar to the mini-player in Apple Music or Spotify.
License: MIT License
SwiftUI view that minimizes to the bottom of the screen similar to the mini-player in Apple Music or Spotify.
License: MIT License
On playing any music and opening notification bar from anywhere in app it dismiss player window and miniplayer.
I'm using your library in my project and it's currently working fine on mobile.
I need to implement an effect now, but I need to update the value of the sliding state object in "DragGesture() .updating($...)", I would like to ask if there is a way to extend your DragGesture configuration?
like⬇️
.gesture(
DragGesture(minimumDistance: 0)
.updating($dynamics) { value, state, _ in
if state.translation > 0 {
state.delta = value.translation.height - state.translation
state.translation = value.translation.height
}
else {
state.translation = value.translation.height
}
}
.onChanged({ value in
...
})
.onEnded({ value in
...
})
)
The compactview() is never detected
Hi, thanks for your library.
I reported some issues with swipe gestures before, and it works fine now.
Right now I'm getting a project to work on an ipad and have run into a couple of tricky issues.
In the Mini state, use stage manage to adjust the zoom app, the miniView will be offset downward (so that it may not be visible). (appears in a floating state or when stage manage is enabled and not full screen)
In the expanded state and the App is not full screen, there will be some gaps at the top of the Expand View. (It is normal in regular split screen, open stage manage to appear)
In the full screen state, there will be a little gap at the bottom of the Mini View, just a little bit. (Any situation will occur, whether it is landscape or portrait)
My screen recording---->https://drive.google.com/file/d/1c0IzJTdrOnbllNE-osjXOidhzbzlEvyx/view?usp=sharing
Device: iPad Pro 2020 11-inch
OS: iPadOS 16.1
It's worth noting that everything works fine on my ipad Mini 5th generation (of course it doesn't support stage manage)
I have been MinimizableView in my project for several months with no issues. Once I updated to iOS 15 I be gan to have problems where dragOnChange is called continually and it freezes the app. If I comment out the dragOnChange function the app works normally just with out the blur animation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.