Our designer Dmitry Goncharov chose to create a cartoon you to follows Tinder’s pattern

Our designer Dmitry Goncharov chose to create a cartoon you to follows Tinder’s pattern


I named the Tinder-design card-created animation Koloda that is an effective Ukrainian word towards deck (out of notes). The fresh part may be used in almost any regional enjoy apps, and also inside Tinder whether it contributes a possibility to prefer dating urban centers. The concept developed by Dmitriy was adopted from the Eugene Andreyev, the ios creator.

KolodaView try a class made to make clear the newest utilization of Tinder particularly cards into ios. They adds simpler capabilities such a beneficial UITableView-concept dataSource/subcontract software having packing views dynamically, and efficient evaluate packing, unloading .

  • Offered generate address – apple’s ios 11.0 (Xcode 9)

KolodaView was subclassed out of UIView and you may – as with escort in Oceanside every UIKit parts – it should just be utilized in the chief thread. You may also wish to play with threads to possess packing or upgrading KolodaView material otherwise issues, however, usually guarantee that when your posts features loaded, you option returning to the main bond just before updating the latest KolodaView.

The designer developed the mock-upwards when you look at the Photoshop and used Pixate having prototyping Koloda. This new model we written reproduced the latest behavior regarding notes just how we wished it.

An element of the Pixate toolset has levels, an action equipment, and animated graphics. Pursuing the possessions is loaded and you will located on the artboard, you could start focusing on levels, then proceed to replicate relationships.

In the beginning, i generated the brand new cards disperse horizontally and fly-away throughout the display once they mix a certain vertical range. The latest developer also made the brand new cards change the visibility and you will twist some time during connections.

Initiating Visual Studio Password

Up coming, we needed seriously to generate a unique cards appear in a way since if they gathers alone about history, therefore we must increase and measure they. I place a size on the prototype out-of step three.5x (the dimensions, when a card has been to the background) to 1x.

Having a better perception, we additional a number of bounce animations and this was it! The fresh new model try ready getting creativity.

We need the brand new cartoon getting as easy and smoother due to the fact viewpoints such UITableView. For this reason, we authored a personalized component into the cartoon. It consists of the three fundamental pieces:

  1. DraggableCardView – a credit that displays blogs.
  2. OverlayView – an active view one change according to in which a person drags a card (to the left or to ideal).
  3. KolodaView – a view that controls loading and you will relations ranging from cards.

The newest overlay becomes current with each circulate. They changes openness in the process of cartoon ( 5% – hardly viewed, 100% – obviously viewed).

We’d to look at good reset problem and this goes just after a great credit doesn’t get to the step margin (finish part) and you will return into initial county. We used the Facebook Pop music design for this situation, and also for the “undo” step.

OverlayView try a viewpoint that’s extra near the top of an effective card throughout the animation. It offers singular changeable named overlayState that have several solutions: whenever a person drags a credit to the left, the brand new overlayState adds a reddish tone to your cards, while a credit was relocated to the right, brand new varying spends additional substitute for make UI getting eco-friendly.

To make usage of individualized steps into overlay, we want to inherit off OverlayView , and you will reload brand new operation didSet on the overlayState :

Brand new KolodaView group do a cards packing and card government jobs. You may either use they regarding the password or in the fresh new Screen Creator. Then, you need to indicate a repository and you can incorporate a good subcontract (optional). Next, you will want to apply the second types of the latest KolodaViewDataSource method in the information and knowledge provider-class:

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

سوالی دارید؟
مکالمه را شروع کنید
سلام! چگونه می توانیم با پشتیبانی تیم نی نی شینا کمکتون کنیم؟
لطفا برای دریافت پاسخ پشتیبان صبر کنید...