Skip to content

Commit

Permalink
Made stuff public
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Sep 11, 2022
1 parent 7511884 commit 7b9646a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sources/AudioKitUI/Controls/ADSRWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import AudioKit
import AVFoundation
import SwiftUI

struct ADSRWidget: UIViewRepresentable {
typealias UIViewType = ADSRView
public struct ADSRWidget: UIViewRepresentable {
public typealias UIViewType = ADSRView
var callback: (AUValue, AUValue, AUValue, AUValue) -> Void

func makeUIView(context _: Context) -> ADSRView {
public func makeUIView(context _: Context) -> ADSRView {
let view = ADSRView(callback: callback)
view.bgColor = .systemBackground
return view
}

func updateUIView(_: ADSRView, context _: Context) {
public func updateUIView(_: ADSRView, context _: Context) {
//
}
}
4 changes: 2 additions & 2 deletions Sources/AudioKitUI/Controls/ParameterSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import AVFoundation
import Controls
import SwiftUI

struct ParameterSlider: View {
public struct ParameterSlider: View {
var text: String
@Binding var parameter: AUValue
var range: ClosedRange<AUValue>
var format: String = "%0.2f"
var units: String = ""

var body: some View {
public var body: some View {
VStack {
Text(text)
if units == "" || units == "Generic" {
Expand Down
4 changes: 2 additions & 2 deletions Sources/AudioKitUI/Visualizations/DryWetMixView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AudioKit
import AVFoundation
import SwiftUI

struct DryWetMixView: View {
public struct DryWetMixView: View {
var dry: Node
var wet: Node
var mix: Node
Expand All @@ -21,7 +21,7 @@ struct DryWetMixView: View {
}
}

var body: some View {
public var body: some View {
VStack(spacing: 30) {
plot(dry, label: "Input", color: .red)
plot(wet, label: "Processed Signal", color: .blue)
Expand Down

0 comments on commit 7b9646a

Please sign in to comment.