Skip to content

Commit

Permalink
Fixed assess
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Apr 13, 2024
1 parent 25a72b3 commit 0735d98
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Sources/DarockKit/UIExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,9 @@ public struct WebView: UIViewRepresentable {
}

public struct TextSelectView: View {
@usableFromInline var text: String
var text: String

@usableFromInline
init(text: String) {
public init(text: String) {
self.text = text
}

Expand All @@ -332,7 +331,7 @@ public struct CopyableView<V: View>: View {
var allowSelect: Bool
var view: () -> V
@State var present = false
init(_ content: String, allowSelect: Bool = true, view: @escaping () -> V) {
public init(_ content: String, allowSelect: Bool = true, view: @escaping () -> V) {
self.content = content
self.allowSelect = allowSelect
self.view = view
Expand Down Expand Up @@ -370,6 +369,9 @@ public extension View {
}
public struct ButtonStyleForPressAction: ButtonStyle {
var pressAction: (Bool) -> Void
public init(pressAction: @escaping (Bool) -> Void) {
self.pressAction = pressAction
}
public func makeBody(configuration: Configuration) -> some View {
configuration.label
.onChange(of: configuration.isPressed) { value in
Expand Down

0 comments on commit 0735d98

Please sign in to comment.