SfTextInputLayout stopped working on iOS when use LeadingView or TrailingView properties

Hi,


I'm using SfTextInputLayout with TrailingView property, but it stopped working on iOS when you access the page where it contains the control.


I have the version 8.0.60 of Maui installed and I'm using version 26.1.35 of the control.


I get this debug messages in Visual Studio.


2024-06-13 15:48:51.598205+0200 NNSalesApp.Maui[65761:6468361] [LayoutConstraints] Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want. 

Try this: 

(1) look at each constraint and try to figure out which you don't expect; 

(2) find the code that added the unwanted constraint or constraints and fix it. 

(

    "<NSLayoutConstraint:0x600002e73c50 UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.leading >= UILayoutGuide:0x60000371f560'UIViewLayoutMarginsGuide'.leading   (active)>",

    "<NSLayoutConstraint:0x600002e73ed0 _UINavigationBarTitleControl:0x7fea577dbc30.leading >= UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.leading   (active)>",

    "<NSLayoutConstraint:0x600002e64d70 H:|-(0)-[_UINavigationBarTitleControl:0x7fea577dbc30]   (active, names: '|':_UINavigationBarContentView:0x7fea523c9620 )>",

    "<NSLayoutConstraint:0x600002db1400 'UIView-leftMargin-guide-constraint' H:|-(20)-[UILayoutGuide:0x60000371f560'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UINavigationBarContentView:0x7fea523c9620 )>"

)


Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x600002e73ed0 _UINavigationBarTitleControl:0x7fea577dbc30.leading >= UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.leading   (active)>


Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

2024-06-13 15:48:51.598662+0200 NNSalesApp.Maui[65761:6468361] [LayoutConstraints] Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want. 

Try this: 

(1) look at each constraint and try to figure out which you don't expect; 

(2) find the code that added the unwanted constraint or constraints and fix it. 

(

    "<NSLayoutConstraint:0x600002e73ca0 UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.trailing <= UILayoutGuide:0x60000371f560'UIViewLayoutMarginsGuide'.trailing   (active)>",

    "<NSLayoutConstraint:0x600002e73f20 _UINavigationBarTitleControl:0x7fea577dbc30.trailing <= UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.trailing   (active)>",

    "<NSLayoutConstraint:0x600002e64dc0 _UINavigationBarTitleControl:0x7fea577dbc30.trailing == _UINavigationBarContentView:0x7fea523c9620.trailing   (active)>",

    "<NSLayoutConstraint:0x600002db14a0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x60000371f560'UIViewLayoutMarginsGuide']-(20)-|(LTR)   (active, names: '|':_UINavigationBarContentView:0x7fea523c9620 )>"

)


Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x600002e73f20 _UINavigationBarTitleControl:0x7fea577dbc30.trailing <= UILayoutGuide:0x60000370e3e0'TitleViewGuide(0x7fea577db410)'.trailing   (active)>


Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.



Thanks.


Best Regards,

Rafael.




1 Reply

SN Sivaranjith Nagaraj Syncfusion Team June 14, 2024 01:23 PM UTC

Hi Rafael Rodriguez,

We have investigated your query based on your update. We have prepared a sample of SfTextInputLayout with Leading and Trailing view properties being set. We have deployed the sample with MAUI Nuget of version 8.0.60 and Syncfusion Core Nuget of version 26.1.35. The SfTextInputLayout works fine as expected on our end.

We have shared the tested sample and video recording for your reference.

 

So, We request you to make the necessary modifications in the sample to replicate the reported issue and share it with us. This will help us guide you to resolve the issue at your end.

 

Regards,

Sivaranjith N.


Attachment: SfTextInputLayoutDemo_76bc4c8d.zip

Loader.
Up arrow icon