Skip to content

Commit

Permalink
Add UIButtonConfiguration.RoundCorners extension (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxerdan authored Jun 26, 2023
1 parent 130e27a commit c4bbfda
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4bbfda

Please sign in to comment.