Giter VIP home page Giter VIP logo

Comments (6)

robb avatar robb commented on May 20, 2024 1

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.

robb avatar robb commented on May 20, 2024 1

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.

rehatkathuria avatar rehatkathuria commented on May 20, 2024

Apologies for the slow reply, yesterday was very busy for me! Thank you for addressing/reproducing so quickly!

from pow.

robb avatar robb commented on May 20, 2024

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.

rehatkathuria avatar rehatkathuria commented on May 20, 2024

Will give this a go later and report back, thank you

from pow.

robb avatar robb commented on May 20, 2024

Fixed in #23

from pow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.