OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/showcase/core/showcase_model.h" |
| 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 11 @implementation ShowcaseModel |
| 12 |
| 13 // Insert additional rows in this array. All rows will be sorted upon |
| 14 // import into Showcase. |
| 15 // |kShowcaseClassForDisplayKey| and |kShowcaseClassForInstantiationKey| are |
| 16 // required. |kShowcaseUseCaseKey| is optional. |
| 17 + (NSArray<showcase::ModelRow*>*)model { |
| 18 return @[ |
| 19 @{ |
| 20 showcase::kClassForDisplayKey : @"SettingsViewController", |
| 21 showcase::kClassForInstantiationKey : @"SettingsCoordinator", |
| 22 showcase::kUseCaseKey : @"Main settings screen", |
| 23 }, |
| 24 @{ |
| 25 showcase::kClassForDisplayKey : @"MenuViewController", |
| 26 showcase::kClassForInstantiationKey : @"MenuViewController", |
| 27 showcase::kUseCaseKey : @"Tools menu", |
| 28 }, |
| 29 @{ |
| 30 showcase::kClassForDisplayKey : @"UITableViewCell", |
| 31 showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController", |
| 32 showcase::kUseCaseKey : @"UIKit Table Cells", |
| 33 }, |
| 34 @{ |
| 35 showcase::kClassForDisplayKey : @"TabGridViewController", |
| 36 showcase::kClassForInstantiationKey : @"SCTabGridCoordinator", |
| 37 showcase::kUseCaseKey : @"Tab grid", |
| 38 }, |
| 39 ]; |
| 40 } |
| 41 |
| 42 @end |
OLD | NEW |