Library Modulepointfreeco.swift-perception 1.5.0PerceptionCore
PerceptionCore
import PerceptionCore
Module information
- Declarations
- 50
- Symbols
- 52
import PerceptionCore
var isPerceptionCheckingEnabled: Bool { get set }
Globally enable or disable perception checks.
func _withoutPerceptionChecking<T>(_ apply: () -> T) -> T
func withObservationTracking<T>(_ apply: () -> T, didSet: @escaping (ObservationTracking) -> Void) -> T
func withObservationTracking<T>(_ apply: () -> T, onChange: @autoclosure () -> () -> Void) -> T
func withObservationTracking<T>(_ apply: () -> T, willSet: @escaping (ObservationTracking) -> Void) -> T
func withObservationTracking<T>(_ apply: () -> T, willSet: @escaping (ObservationTracking) -> Void, didSet: @escaping (ObservationTracking) -> Void) -> T
func withPerceptionTracking<T>(_ apply: () -> T, onChange: @autoclosure () -> () -> Void) -> T
Tracks access to properties.
protocol Observable
protocol Perceptible
A type that emits notifications to observers when underlying data changes.
struct ObservationRegistrar
struct ObservationTracking
struct PerceptionRegistrar
Provides storage for tracking and access to data changes.
struct PerceptionTracking
enum _PerceptionLocals
@attached(member, names: named(_$observationRegistrar), named(access), named(withMutation)) @attached(memberAttribute) @attached(extension, conformances: Observable) macro Observable()
@attached(accessor, names: named(willSet)) macro ObservationIgnored()
@attached(accessor, names: named(init), named(get), named(set), named(_modify)) @attached(peer, names: prefixed(`_`)) macro ObservationTracked()
import Perception
import PerceptionMacros