Giter Club home page Giter Club logo

sqreorderablestackview's People

Contributors

digabriel avatar markedwardmurray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sqreorderablestackview's Issues

No programmatic initializer

The only initializer expects interface builder to be used, but this isn't a requirement of the class but rather an oversight. The existing internals of init(coder: Coder) can be moved to a private commonInit() func called from a each of the complete set of UIStackView's initiliazers

Shadows

hey, could the temporary view also have the shadow of the actual view or how to do that?

i have this code for each element in the SQReorderableStackView (which is inside a Cell), because otherwise the TablevVew would lag terribly

self.layer.shadowPath = UIBezierPath(roundedRect:self.bounds, cornerRadius: self.layer.cornerRadius).cgPath
self.layer.shouldRasterize = true
self.layer.rasterizationScale = UIScreen.main.scale

Otherwise really love this library, soo easy!!

Warning on console after reorder

Hello, thanks for this awesome library,
I have small issue, I'm getting this warning "<CATransformLayer: 0x1450cf050> - changing property masksToBounds in transform-only layer, will have no effect every time I reorder stackViews"
Thanks,

Ghost view

sometimes (dont know why) the original view stays visible and the temporaryView seems like a ghost view, its not always though, i think after a few clicks (i reorder buttons)

Memory Leak on delegate

First of all, thank you for your work, It saved me some hours of implementation ;)
Just to inform that there is a memory leak regarding the reorderDelegate.

public var reorderDelegate: SQReorderableStackViewDelegate?
should be declared with a weak ref
public weak var reorderDelegate: SQReorderableStackViewDelegate?

reordered

The delegate methods need the indexes of the reordering, in order to update the model (= the real list/array) so a swapAt can be applied.

I'm planing to make a PR and fix the few bugs I've found

Does not work when using insertArrangedSubview

I cannot move subviews that are inserted using insertArrangedSubview(_:at:).
Only works when subviews are added using addArrangedSubview.
But in my case, I need to use insertArrangedSubviews.

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.