Git Product home page Git Product logo

revealingtableviewcell's People

Contributors

sovata8 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

revealingtableviewcell's Issues

Swift 4 support

I used RevealingTableViewCell for swift 4 project and got only one error during build time:

Pods/RevealingTableViewCell/RevealingTableViewCell/RevealingTableViewCell.swift:158:75: Argument of '#selector' refers to instance method 'selector_panGesture' that is not exposed to Objective-C

By adding @objc modifier to selector_panGesture this error was fixed. So it is pretty easy to make this library support swift 4, let's do this!

Disable when < iOS10 instead of the strict DeploymentTarget

Hi @sovata8 , my App needs iOS9 support, but because of this package I can set the Deployment target to lower then iOS10.

For this Module I already implemented:

@available(iOS 10, *)
// use RevealingTableViewCell things

But it's not working, because of this error:
schermafdruk 2017-11-13 15 45 40_preview

Module file's minimum deployment target is ios10.0 v10.0

Error compiling in xCode 11

When opens the library on xCode 11 beta 4.0, appears a warning saying that needs to update to swift 4.
Any solution?
Thanks in advance!

The cell's subviews start jumping everywhere when dragging starts.

With some AutoLayout setups (it seems especially with nested views and constraints), when the cell is being dragged sideways, the layout 'falls apart'. It does not return to normal. This surely has to do with how we temporary disable AutoLayout when the view is dragged. Look for clues here:

  AutoLayoutTools.removeAllConstraints(inSuperview: self.contentView, relatingTo: self.uiView_mainContent)
  self.constraintsToTemporaryDisable = self.uiView_mainContent.constraints
  self.uiView_mainContent.removeConstraints(self.constraintsToTemporaryDisable)

The library would not work if storyaboards/xibs are not used

You are using awakeFromNib for logic, but that method is only called when a storyboard/xib is used. You should instead support cases where UI is built in code.

There are other issues with your code. You are adding a gesture recognizer to (terribly named) uiView_mainContent, but the setter of that property is public. If the user replaces that view during runtime, your logic would be broken.

Rename properties to something coherent

What is uiView_revealedContent_left? Why not leftView?
Same for the other names.

Do those names look like anything from UIKit to you? When creating frameworks to be used in iOS, you should strive to give similar patterns and naming conventions as Apple's iOS frameworks.

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.