Skip to content

Instantly share code, notes, and snippets.

@floriangbh
Last active December 23, 2020 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floriangbh/aaa703c097faef708ed71c2bfb845821 to your computer and use it in GitHub Desktop.
Save floriangbh/aaa703c097faef708ed71c2bfb845821 to your computer and use it in GitHub Desktop.
p3exemple.swift
class Layout {
enum Kind {
case layout1
case layout2
case layout3
}
var kind: Kind = .layout1
var images: [UIImage?] = [nil, nil, nil, nil]
var imageGrid: [[UIImage] {
// reorder images in a two-dimensions grid here to be used in UIViewController for dynamically create image grid rendering
return []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment