Made visual improvements to the RecordingView view in the Recording package target.
This commit is contained in:
@@ -108,13 +108,8 @@ extension RecordingView {
|
||||
state == .processing
|
||||
}
|
||||
|
||||
/// Whether the discard button should be visible.
|
||||
var shouldShowDiscard: Bool {
|
||||
state == .paused
|
||||
}
|
||||
|
||||
/// Whether the send button should be visible.
|
||||
var shouldShowSend: Bool {
|
||||
/// Whether the action buttons (send and discard) should be visible.
|
||||
var shouldShowActions: Bool {
|
||||
state != .notRecording
|
||||
&& state != .recording
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user