Implement Apple watch Apps Screen like layout in iOS apps.

Sanchit Goel
1 min readOct 8, 2020

--

Do you want to implement a honeycomb collection view layout which looks and behaves just like the app screen of Apple watch? If no, look at some other cool things you can implement here.

Import the file HoneycombLayout.swift into your project.

Set the class of collection view layout as HoneycombLayout. Then in the viewDidLoad method get the instance of layout and set its element width as shown below.

Add the collection view delegate methods

For animating cells near the edges add these properties and call the following method in scrollViewDidScroll as shown below.

If you would like to dig deeper into the implementation, checkout the github repo here.

--

--