Giter VIP home page Giter VIP logo

Comments (7)

andreamazz avatar andreamazz commented on June 5, 2024 1

It's always tricky getting the right position in the navigation bar. You can add some hardcoded offsets, it's not pretty, but it'll get the job done.

I'm closing this issue if you don't mind, since it's not directly related to the library.

from bubbletransition.

kiwo12345 avatar kiwo12345 commented on June 5, 2024 1

@andreamazz this worked out perfect:

transition.startingPoint = CGPoint(x: bubbleBtn.center.x, y: bubbleBtn.center.y + 20)

from bubbletransition.

andreamazz avatar andreamazz commented on June 5, 2024

is it a UIButton or a UIBarButtonItem?

from bubbletransition.

kiwo12345 avatar kiwo12345 commented on June 5, 2024

@andreamazz UIButton :)

Right bar button -> bar button items -> UIButton

from bubbletransition.

andreamazz avatar andreamazz commented on June 5, 2024

Ok, so it's inside a navigation bar. It's always tricky finding the right position for those buttons. Take a look at this SO thread

from bubbletransition.

kiwo12345 avatar kiwo12345 commented on June 5, 2024

@andreamazz look like someone else was asking the same thing I will try to convert the answer into swift 3 and see if it works

from bubbletransition.

kiwo12345 avatar kiwo12345 commented on June 5, 2024

@andreamazz That didnt work : / I also added a image to my btn and tried to use the image center which did not work. Do you think I could wrap the btn inside a uiview and use the center of that view? running out of ideas now

from bubbletransition.

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.