@@ -2193,24 +2193,33 @@ static void OnEnablePasswordTogglePropertyChanged(BindableObject bindable, objec
2193
2193
}
2194
2194
}
2195
2195
2196
- static void OnIsHintFloatedPropertyChanged ( BindableObject bindable , object oldValue , object newValue )
2197
- {
2198
- if ( bindable is SfTextInputLayout inputLayout && newValue is bool value )
2199
- {
2200
- if ( inputLayout . Content is InputView || inputLayout . Content is Microsoft . Maui . Controls . Picker )
2201
- {
2202
- inputLayout . Content . Opacity = value ? 1 : ( DeviceInfo . Platform == DevicePlatform . iOS ? 0.00001 : 0 ) ;
2203
- }
2204
- else if ( inputLayout != null && inputLayout . Content is SfView numericEntry && numericEntry . Children . Count > 0 )
2205
- {
2206
- if ( numericEntry . Children [ 0 ] is Entry numericInputView )
2207
- {
2208
- numericInputView . Opacity = value ? 1 : ( DeviceInfo . Platform == DevicePlatform . iOS ? 0.00001 : 0 ) ;
2209
- }
2210
- }
2211
- }
2212
-
2213
- }
2196
+ static void OnIsHintFloatedPropertyChanged ( BindableObject bindable , object oldValue , object newValue )
2197
+ {
2198
+ if ( bindable is SfTextInputLayout inputLayout && newValue is bool value )
2199
+ {
2200
+ double minOpacity = DeviceInfo . Platform . ToString ( ) switch
2201
+ {
2202
+ nameof ( DevicePlatform . MacCatalyst ) => 0.011 ,
2203
+ nameof ( DevicePlatform . iOS ) => 0.00001 ,
2204
+ nameof ( DevicePlatform . Android ) => 0.00001 ,
2205
+ _ => 0
2206
+ } ;
2207
+
2208
+ double targetOpacity = value ? 1 : minOpacity ;
2209
+
2210
+ if ( inputLayout . Content is InputView || inputLayout . Content is Microsoft . Maui . Controls . Picker )
2211
+ {
2212
+ inputLayout . Content . Opacity = targetOpacity ;
2213
+ }
2214
+ else if ( inputLayout . Content is SfView numericEntry && numericEntry . Children . Count > 0 )
2215
+ {
2216
+ if ( numericEntry . Children [ 0 ] is Entry numericInputView )
2217
+ {
2218
+ numericInputView . Opacity = targetOpacity ;
2219
+ }
2220
+ }
2221
+ }
2222
+ }
2214
2223
2215
2224
static void OnInputViewPaddingPropertyChanged ( BindableObject bindable , object oldValue , object newValue )
2216
2225
{
0 commit comments