Skip to content

Instantly share code, notes, and snippets.

@alfianlosari
Created July 21, 2020 12:43
Show Gist options
  • Select an option

  • Save alfianlosari/79f0b16c0371140b41c4c6908aa855e4 to your computer and use it in GitHub Desktop.

Select an option

Save alfianlosari/79f0b16c0371140b41c4c6908aa855e4 to your computer and use it in GitHub Desktop.
extension Item {
static var stubs: [Item] {
[
Item(title: "Computers", children: [
Item(title: "Desktops", children: [
Item(title: "iMac", children: nil),
Item(title: "Mac Mini", children: nil),
Item(title: "Mac Pro", children: nil)
]),
Item(title: "Laptops", children: [
Item(title: "MacBook Pro", children: nil),
Item(title: "MacBook Air", children: nil),
])
]),
Item(title: "Smartphones", children: [
Item(title: "iPhone 11", children: nil),
Item(title: "iPhone XR", children: nil),
Item(title: "iPhone XS Max", children: nil),
Item(title: "iPhone X", children: nil)
]),
Item(title: "Tablets", children: [
Item(title: "iPad Pro", children: nil),
Item(title: "iPad Air", children: nil),
Item(title: "iPad Mini", children: nil),
Item(title: "Accessories", children: [
Item(title: "Magic Keyboard", children: nil),
Item(title: "Smart Keyboard", children: nil)
])]),
Item(title: "Wearables", children: [
Item(title: "Apple Watch Series 5", children: nil),
Item(title: "Apple Watch Series 3", children: nil),
Item(title: "Bands", children: [
Item(title: "Sport Band", children: nil),
Item(title: "Leather Band", children: nil),
Item(title: "Milanese Band", children: nil)
])
])
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment