Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Allow to remove the Image from Button #15624

Merged
merged 1 commit into from Jun 19, 2023
Merged

[iOS] Allow to remove the Image from Button #15624

merged 1 commit into from Jun 19, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Allow to remove the Image from iOS Button.

fix-15006

To validate the changes can use the Button samples from the .NET MAUI Gallery.

Issues Fixed

Fixes #15006

@jsuarezruiz jsuarezruiz added t/bug Something isn't working platform/iOS 🍎 area-controls-button Button, ImageButton labels Jun 14, 2023
@ghost ghost added the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jun 14, 2023
@@ -146,11 +146,6 @@ void OnSetImageSource(UIImage? image)

public static Task MapImageSourceAsync(IButtonHandler handler, IImage image)
{
if (image.Source == null)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. This prevents that once the image is set it can be updated with something null.

@rmarinho rmarinho merged commit c3f0b15 into main Jun 19, 2023
28 checks passed
@rmarinho rmarinho deleted the fix-15006 branch June 19, 2023 09:51
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
@Eilon Eilon removed the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-button Button, ImageButton platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS/Catalyst] Button ImageSource does not reset when setting to null.
3 participants