Local audio transcription experiment and UI fixes

This commit is contained in:
Ali
2022-05-17 23:21:11 +04:00
parent f6190e347d
commit 54788f60de
27 changed files with 892 additions and 183 deletions

View File

@@ -10,11 +10,14 @@ public let nullAction = NullActionClass()
open class SimpleLayer: CALayer {
public var didEnterHierarchy: (() -> Void)?
public var didExitHierarchy: (() -> Void)?
public private(set) var isInHierarchy: Bool = false
override open func action(forKey event: String) -> CAAction? {
if event == kCAOnOrderIn {
self.isInHierarchy = true
self.didEnterHierarchy?()
} else if event == kCAOnOrderOut {
self.isInHierarchy = false
self.didExitHierarchy?()
}
return nullAction