FLEXArgumentInputNotSupportedView.m 743 B

1234567891011121314151617181920212223242526
  1. //
  2. // FLEXArgumentInputNotSupportedView.m
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 6/18/14.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXArgumentInputNotSupportedView.h"
  9. #import "FLEXColor.h"
  10. @implementation FLEXArgumentInputNotSupportedView
  11. - (instancetype)initWithArgumentTypeEncoding:(const char *)typeEncoding {
  12. self = [super initWithArgumentTypeEncoding:typeEncoding];
  13. if (self) {
  14. self.inputTextView.userInteractionEnabled = NO;
  15. self.inputTextView.backgroundColor = [FLEXColor secondaryGroupedBackgroundColorWithAlpha:0.5];
  16. self.inputPlaceholderText = @"nil (type not supported)";
  17. self.targetSize = FLEXArgumentInputViewSizeSmall;
  18. }
  19. return self;
  20. }
  21. @end