Comments (6)
Looking into it! Do you happen to have the view dimensions at hand? Feel free to send me a screenshot via email [email protected] if you don't want to post this here.
from pow.
Found a way to reproduce:
import SwiftUI
import Pow
struct ContentView: View {
@State
var isOn: Bool = true
var body: some View {
VStack {
GroupBox {
Toggle("Visible", isOn: $isOn.animation())
}
Spacer()
if isOn {
Color.blue
.frame(width: 200, height: 1)
.transition(.movingParts.anvil)
}
Spacer()
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
NavigationStack {
ContentView()
}
.environment(\.colorScheme, .dark)
}
}
from pow.
Apologies for the slow reply, yesterday was very busy for me! Thank you for addressing/reproducing so quickly!
from pow.
No worries, I think as a quick fix you can try to increase the size of the view the effect is installed on, as it seems to be related to the height/aspect ratio?
E.g. something like
myView
.padding(.vertical, 24)
.transition(.movingParts.anvil)
.padding(.vertical, -24)
might work?
from pow.
Will give this a go later and report back, thank you
from pow.
Fixed in #23
from pow.
Related Issues (20)
- Importing Pow conditionally on iOS 14 HOT 7
- Using Pow with CocoaPods. HOT 2
- 0.2.1 Crashes in macOS TestFlight Builds HOT 2
- Glow blocks input on buttons HOT 3
- Expose Custom WiggleRate HOT 1
- Idea: Composed Pow Effects Syntax HOT 2
- Expose Custom Parameters For .pulse
- Default "Up to major version" dependency rule in Xcode incompatible with Pow's 0.X versioning HOT 1
- Confused about license purchase requirement HOT 1
- Crash in `SmokeEffect` HOT 5
- Support CocoaPods
- visionOS Support
- My app does not compile after adding the package to my Xcode project. HOT 3
- Glow effect prevent the touch after version 0.3.1 HOT 3
- Global option to disable POW effects when voiceover is activated
- Feature Request: Support for Repeated Effect. HOT 4
- Use in UIKit HOT 1
- When HStack appears, there is no spring animation, which feels a bit abrupt. HOT 4
- Cancel conditional effect after duration HOT 2
- AttributeGraph: cycle detected through attribute xx on macOS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pow.