Questions tagged [material-components-ios]

Modular and customizable Material Design UI components for iOS.

Modular and customizable Material Design UI components for iOS. https://github.com/material-components/material-components-ios

73 questions
0
votes
1 answer

how to remove place holder text from textfield using Google Material MDCOutlinedTextField in swift?

here is the code I wrote but when the user is in text field but there is no text still place holder appears in textfield in also showing in the floating label I just want to remove when I am inside this textfield func…
0
votes
0 answers

How to wrap ViewController content inside MDCTabBarView container?

I'm trying to implement a MDCBottomNavigationBar which contains a MDCTabBarView, which in turn contains 2 other views (shown as tabbed). In my main controller I create the 4 controllers for the menu items at the bottom and implement…
0
votes
2 answers

How to change MDCFilledTextField/MDCOutlinedTextField height?

Size of MDCFilledTextField/MDCOutlinedTextField is not changeable and it's fixed. Any idea to change Material TextFields height? FYI: I tested some ways like putting the textField in a view ...et cetera. non of them works.
Mehrdad
  • 1,050
  • 1
  • 16
  • 27
0
votes
0 answers

iOS 14.2+ MaterialComponents password field displays blank keyboard

I'm using pod 'MaterialComponents/TextControls+OutlinedTextFields'. For non-password text fields, keyboard normally shows when I tap on the text field. But for the password fields it's different, when I tap first, it shows completely grey keyboard,…
Emre Akcan
  • 982
  • 10
  • 27
0
votes
2 answers

MDC add between helper/counter view and border

Anyone know how to add a "space" between the border and the helper/counter view? I been searching over the net and can't find any answer. I'm using MaterialComponents 72.2.0 UPDATE var noteController: MDCTextInputControllerOutlined! ... override…
SquareBox
  • 823
  • 1
  • 10
  • 22
0
votes
0 answers

Memory Error, nil passed to a callee that requires a non-null first parameter

I have created an application that are readily to be published on Apple Store and the application already ran on build, but when i clicked the "Analyze" under "Product Tab" on XCode it generates an error on…
0
votes
1 answer

Swift Material Component Filled Text fields background color not work

i write these lines of codes to change background color of filled textfield, but it not work: import MaterialComponents ... @IBOutlet weak var textfield: MDCFilledTextField! let scheme = MDCContainerScheme() scheme.colorScheme.backgroundColor =…
Sajjad
  • 1,536
  • 2
  • 17
  • 31
0
votes
1 answer

How to change textColor or MDCTextInputControllerOutlined

I am using MDCTextInputControllerOutlined and I want change textColor to white I have tried many ways but I can not able to change textColor below is my code: var emailTextFieldController : MDCTextInputControllerOutlined? emailTextFieldController =…
Hussy
  • 23
  • 5
0
votes
1 answer

How to set the height of MDCMultilineTextField and MDCTextInputControllerOutlinedTextArea

I have already referenced this and tried the top answer. However I am still unable to expand the height of the MDCTextInputControllerOutlinedTextArea. Here is the code I am using: class CreateAnswerViewController: UIViewController,…
uioporqwerty
  • 1,068
  • 3
  • 12
  • 30
0
votes
1 answer

How to set width of Material Components tab bar on iOS with Xamarin

I'm using Material Components in iOS Xamarin app and would like to set width of MDCTabBar indicator to something larger like 8 dp. As I understand I should supply custom object implementing TabBarIndicatorTemplate to SelectionIndicatorTemplate. So…
Dominik Roszkowski
  • 2,715
  • 1
  • 19
  • 46
0
votes
1 answer

How to change MDCTextField placeholder text color?

I'm currently using it with MDCTextInputControllerOutlined. I already tried self.emailTextField.attributedPlaceholder = NSAttributedString(string: "Email", attributes: [.font: UIFont.ralewayFont(ofSize: 18.0, weight: .semibold), .foregroundColor:…
rad182
  • 85
  • 3
  • 10
0
votes
2 answers

MDC crashing with 'NSInvalidArgumentException', reason: '-[UIButton applyOutlinedThemeWithScheme:]: unrecognized selector sent to instance

I am trying to set a button property like this, When i add this code it crashes without even displaying the button i have in the main.storyboard. let containerScheme = MDCContainerScheme() cancelButton.applyOutlinedTheme(withScheme:…
0
votes
1 answer

Linking up a button through a segue when using material.io

Im a beginner in swift and I am creating a login screen using Material.io in Swift and my UI looks like this . However i dont see anything on my main.storyboard I am used to creating a segue manually and then using performSegue(withIdentifier:…
0
votes
0 answers

Has anyone installed material-components outside of CocoaPods?

I was wondering if anyone managed to setup material-components on Xcode, outside of using CocoaPods (i.e. Carthage). It seems to be heavily CP-dependent.
Doz
  • 7,009
  • 12
  • 61
  • 69
0
votes
2 answers

How to add Material Design Button in iOS swift app?

I have read the manual (https://material.io/develop/ios/components/buttons/), but still have not understood how to do it. class FloatingButtonController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let…