UICollectionView effective drag and drop

This might help https://github.com/lxcid/LXReorderableCollectionViewFlowLayout This is extends the UICollectionView to allow each of the UICollectionViewCells to be rearranged manually by the user with a long touch (aka touch-and-hold). The user can drag the Cell to any other position in the collection and the other cells will reorder automatically. Thanks go to lxcid for this.

Angular 2 Scroll to bottom (Chat style)

I had the same problem, I’m using a AfterViewChecked and @ViewChild combination (Angular2 beta.3). The Component: import {…, AfterViewChecked, ElementRef, ViewChild, OnInit} from ‘angular2/core’ @Component({ … }) export class ChannelComponent implements OnInit, AfterViewChecked { @ViewChild(‘scrollMe’) private myScrollContainer: ElementRef; ngOnInit() { this.scrollToBottom(); } ngAfterViewChecked() { this.scrollToBottom(); } scrollToBottom(): void { try { this.myScrollContainer.nativeElement.scrollTop = this.myScrollContainer.nativeElement.scrollHeight; } … Read more