Chromium Code Reviews| Index: ios/showcase/text_badge_view/text_badge_view_view_controller.mm |
| diff --git a/ios/showcase/text_badge_view/text_badge_view_view_controller.mm b/ios/showcase/text_badge_view/text_badge_view_view_controller.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b030c04929169434f9309b91f8ff3cb76310dfcb |
| --- /dev/null |
| +++ b/ios/showcase/text_badge_view/text_badge_view_view_controller.mm |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import "ios/showcase/text_badge_view/text_badge_view_view_controller.h" |
| + |
| +#import "ios/chrome/browser/ui/reading_list/text_badge_view.h" |
| + |
| +#if !defined(__has_feature) || !__has_feature(objc_arc) |
| +#error "This file requires ARC support." |
| +#endif |
| + |
| +@implementation TextBadgeViewViewController |
| + |
| +- (void)viewDidLoad { |
| + [super viewDidLoad]; |
| + self.view.backgroundColor = [UIColor whiteColor]; |
|
edchin
2017/07/07 04:38:04
I suggest that you set this view to another color,
helenlyang
2017/07/07 16:31:13
Done.
|
| + TextBadgeView* textBadge = [[TextBadgeView alloc] initWithText:@"TEXT"]; |
| + [self.view addSubview:textBadge]; |
|
edchin
2017/07/07 04:38:04
You'll need to set the frame of the badge
otherwis
helenlyang
2017/07/07 16:31:13
Done.
|
| +} |
| + |
| +@end |