mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 13:13:33 +01:00
30 lines
569 B
Swift
30 lines
569 B
Swift
//
|
|
// CoreStoreObject+DataSources.swift
|
|
// CoreStore iOS
|
|
//
|
|
// Created by John Estropia on 2019/10/04.
|
|
// Copyright © 2019 John Rommel Estropia. All rights reserved.
|
|
//
|
|
|
|
#if canImport(UIKit) || canImport(AppKit)
|
|
|
|
#if canImport(Combine)
|
|
import Combine
|
|
|
|
// MARK: - LiveList: ObservableObject
|
|
|
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
extension CoreStoreObject: ObservableObject {
|
|
|
|
// MARK: ObservableObject
|
|
|
|
public var objectWillChange: ObservableObjectPublisher {
|
|
|
|
return self.cs_toRaw().objectWillChange
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|