CustomButton in SwiftUI
Overview
CustomButton is a SwiftUI component for creating a button with a custom style. It provides customization for the button’s action and label while adapting to the current color scheme.
Preview

Button (light mode)

Button (dark mode)
Installation
Include theCustomButton.swift file in your SwiftUI project. File Link
Properties
action: () -> Void(Required) - The closure that gets called when the button is tapped.label: String(Required) - The label displayed on the button.
Note:fontWeightis internally set to.mediumas a default, and the color scheme is automatically detected.
Usage
Basic Usage
Here’s how you can use theCustomButton component:

