File tree Expand file tree Collapse file tree
Sources/SmartCodable/Core/PropertyWrapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313Pod ::Spec . new do |s |
1414 s . name = 'SmartCodable'
15- s . version = '6.0.7 '
15+ s . version = '6.0.8 '
1616 s . summary = 'Swift数据解析库'
1717
1818 s . homepage = 'https://github.com/iAmMccc/SmartCodable'
Original file line number Diff line number Diff line change 66//
77
88import Foundation
9+ #if canImport(Combine)
910import SwiftUI
1011import Combine
1112
1213
1314/**
1415 A property wrapper that combines Combine's publishing functionality with Codable serialization.
15-
16+
1617 Key Features:
1718 - Simplifies property declaration with property wrapper syntax
1819 - Supports reactive programming through Combine publishers
@@ -120,13 +121,10 @@ extension SmartPublished: Codable {
120121 self . wrappedValue = value
121122 publisher = Publisher ( wrappedValue)
122123 }
123-
124+
124125 public func encode( to encoder: Encoder ) throws {
125126 var container = encoder. singleValueContainer ( )
126127 try container. encode ( self . wrappedValue)
127128 }
128129}
129-
130-
131-
132-
130+ #endif
You can’t perform that action at this time.
0 commit comments