Giter VIP home page Giter VIP logo

swifttindercards's Introduction

swifttindercards's People

Contributors

grantkemp avatar lgandecki avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

swifttindercards's Issues

Creating DraggableViewBackground in Storyboard

Instead of using code to addSubview in ViewController, how would I connect a Storyboarded View to the DraggableViewBackground class?

I would like to have more control over it size/shape and relation to other items in ViewController.

// is there a way to define the array with UIView elements so I don't have to cast?

yes,
instead of: var loadedCards = NSMutableArray()

replace with: var loadedCards = UIView

from documentation:
"Swift bridges between the array type and the NSArray class. When you bridge from an NSArray object with a parameterised type to a Swift array, the resulting Array is of type [ObjectType]."

If you create an array, a set, or a dictionary, and assign it to a variable, the collection that is created will be mutable

The problem the methods in NSMutableArray are not the same syntax as an hence need to be replaced with Swift Array methods and not the Cocoa/ Objective C methods.

Awesome work btw. just reading through and saw your comment so i thought id answer it for you :)

Highlight the icons when swiped

Hi

I tried to use the Overlay drag to highlight The Checkbutton and XButton in the Pan Gesture, but I can't seem to get it working.

Do you have an approach I can use that when I drag to the left it will show the overlay icons over the Check button and when I drag to the right it will show the overlay icon over the rejected button?

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.