Skip to content

Commit

Permalink
Updated some files
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Jul 26, 2024
1 parent 2c120c9 commit c36f40d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/DarockKit/UIExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public extension View {
.padding(.vertical, paddings[0])
.padding(.horizontal, paddings[1])
}
@_disfavoredOverload
@ViewBuilder public func NeuButton(action: @escaping () -> Void, label: String, icon: String? = nil, cornerRadius: CGFloat = 18, paddings: [CGFloat] = [5, 20], fontSize: CGFloat = 22, fontWeight: Font.Weight = .bold, width: CGFloat? = nil) -> some View {
Button(action: {
action()
Expand Down Expand Up @@ -150,6 +151,7 @@ public extension View {
.font(.system(size: fontSize, weight: .bold))
.foregroundColor(.Neumorphic.secondary)
}
@_disfavoredOverload
@ViewBuilder public func NeuText(_ text: String, fontSize: CGFloat = 22) -> some View {
Text(text)
.font(.system(size: fontSize, weight: .bold))
Expand All @@ -176,6 +178,7 @@ public extension View {
.softSwitchToggleStyle(tint: tint, labelsHidden: true)
}
}
@_disfavoredOverload
@ViewBuilder public func NeuToggle(isOn: Binding<Bool>, label: () -> some View, tint: Color = .green) -> some View {
HStack {
label()
Expand Down

0 comments on commit c36f40d

Please sign in to comment.