iOS 0.5.0: hand-built editors (Tape Delay, Tape Engine, Mix Tightener, Granular scope, Wavetable tables, Grain Cloud source)
Effect visualisation through the C++ effect, engine and AU; custom wavetables and grain sources load and persist with the song; the app's slot editor hosts the file picker for bespoke views. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3b035d6a7d
commit
435305e42a
@@ -36,6 +36,20 @@ extension DeviceDataSource {
|
||||
func setHiddenValue(_ value: String, key: String) {}
|
||||
}
|
||||
|
||||
/// A host's file picker for bespoke views (the app's slot editor provides one: on
|
||||
/// iOS 15 a .fileImporter nested inside another one may not present). A view
|
||||
/// calls it with what to do with the picked URL; without one (the plugins) it
|
||||
/// uses its own .fileImporter.
|
||||
private struct DeviceFilePickerKey: EnvironmentKey {
|
||||
static let defaultValue: ((@escaping (URL) -> Void) -> Void)? = nil
|
||||
}
|
||||
extension EnvironmentValues {
|
||||
var deviceFilePicker: ((@escaping (URL) -> Void) -> Void)? {
|
||||
get { self[DeviceFilePickerKey.self] }
|
||||
set { self[DeviceFilePickerKey.self] = newValue }
|
||||
}
|
||||
}
|
||||
|
||||
/// Hand-built pieces of device editors (the Android app's bespoke editors), by
|
||||
/// device. DeviceEditor asks here first and falls back to the card layout. Each
|
||||
/// device's views live in their own file in this folder.
|
||||
|
||||
Reference in New Issue
Block a user