NCMessageTextView.m 707 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import "NCMessageTextView.h"
  6. #import "NCAppBranding.h"
  7. @implementation NCMessageTextView
  8. - (instancetype)init
  9. {
  10. if (self = [super init]) {
  11. // Do something
  12. }
  13. return self;
  14. }
  15. - (void)willMoveToSuperview:(UIView *)newSuperview
  16. {
  17. [super willMoveToSuperview:newSuperview];
  18. self.keyboardType = UIKeyboardTypeDefault;
  19. self.backgroundColor = [NCAppBranding backgroundColor];
  20. self.placeholder = NSLocalizedString(@"Write message, @ to mention someone …", nil);
  21. self.placeholderColor = [NCAppBranding placeholderColor];
  22. }
  23. @end