diff --git a/src/iOS.Essentials/BasicViewExtensions/UIButtonConfigurationExtensions.cs b/src/iOS.Essentials/BasicViewExtensions/UIButtonConfigurationExtensions.cs index fa35e52..d904b53 100644 --- a/src/iOS.Essentials/BasicViewExtensions/UIButtonConfigurationExtensions.cs +++ b/src/iOS.Essentials/BasicViewExtensions/UIButtonConfigurationExtensions.cs @@ -50,6 +50,12 @@ public static UIButtonConfiguration SetTitleAsBold(this UIButtonConfiguration co return configuration; } + public static UIButtonConfiguration RoundCorners(this UIButtonConfiguration configuration, int cornerRadius) + { + configuration.Background.CornerRadius = cornerRadius; + return configuration; + } + public static UIButton ToUIButton(this UIButtonConfiguration configuration) => new() { Configuration = configuration