Skip to content

LearnWithTung/InstagramGridLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Instagram grid layout using Compositional Layout.

I also posted an article about introduction to Compositional Layout. You can read here: https://medium.com/@tungvuduc2805/compositional-layout-in-uicollectionview-432f942249b6

Images source: https://unsplash.com/

//   +---------------------------------------------------+
//   | +-------------------------------+  +-----------+  |
//   | |                               |  |           |  |
//   | |                               |  |           |  |
//   | |                               |  |     1     |  |
//   | |                               |  |           |  |
//   | |                               |  +-----------+  |
//   | |               0               |                 |
//   | |                               |  +-----------+  |
//   | |                               |  |           |  |
//   | |                               |  |           |  |
//   | |                               |  |     2     |  |
//   | |                               |  |           |  |
//   | +-------------------------------+  +-----------+. |
//   | +--------------+----------------+--------------+  |
//   | |              |                |              |  |
//   | |     1        |       2        |     3        |  |
//   | |              |                |              |  |
//   | |              |                |              |  |
//   | +--------------+----------------+--------------+  |
//   | +--------------+----------------+--------------+  |
//   | |              |                |              |  |
//   | |     4        |       5        |     6        |  |
//   | |              |                |              |  |
//   | |              |                |              |  |
//   | +--------------+----------------+--------------+  |
//   | +--------------+  +----------------------------+  |
//   | |              |  |                            |  |
//   | |      1       |  |                            |  |
//   | |              |  |                            |  |
//   | |              |  |                            |  |
//   | +--------------+  |                            |  |
//   |                   |            0               |  |
//   | +--------------+  |                            |  |
//   | |              |  |                            |  |
//   | |      2       |  |                            |  |
//   | |              |  |                            |  |
//   | |              |  |                            |  |
//   | +--------------+  +----------------------------+  |
//   +---------------------------------------------------+

Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages