Install Homebrew prereqs:
xcode-select --install
Install Homebrew
import Foundation | |
// Diff values for better test assertions. | |
// | |
// Enums and collections left as an exercise for the reader. | |
// A difference between two values | |
struct Difference: CustomStringConvertible { | |
let path: String | |
let actual: String |
// | |
// Example of Using AVAudioPlayer | |
// to play a buffer of (synthesized) audio samples from memory | |
// by converting a [Float] buffer into an in-memory WAV file | |
// | |
// Copyright © 2019 Ronald H Nicholson Jr. All rights reserved. | |
// (re)Distribution permitted under the 3-clause New BSD license. | |
// | |
import Foundation |
example("Crash") { | |
let scrollView = UIScrollView() | |
scrollView.rx.observe(CGSize.self, "contentSize").subscribe() | |
scrollView.rx.methodInvoked(#selector(UIScrollView.layoutSubviews)).subscribe() | |
// --- Unhandled error happened: Collision between RxCocoa interception mechanism and KVO. To resolve this conflict please use this interception mechanism first. example --- | |
// Unhandled error happened: Collision between RxCocoa interception mechanism and KVO. To resolve this conflict please use this interception mechanism first. | |
// Target: <UIScrollView: 0x7fa397810600; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60c000042820>; layer = <CALayer: 0x60c00002d660>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}> | |
// subscription called from: |
// | |
// RecordAudio.swift | |
// | |
// This is a Swift class (updated for Swift 5) | |
// that uses the iOS RemoteIO Audio Unit | |
// to record audio input samples, | |
// (should be instantiated as a singleton object.) | |
// | |
// Created by Ronald Nicholson on 10/21/16. | |
// Copyright © 2017,2019 HotPaw Productions. All rights reserved. |