Skip to content

Releases: 0xLeif/KPEdit

Basic Key Path Edit

21 Aug 22:14
c2ac906
Compare
Choose a tag to compare

Basic Example

XCTAssertEqual((DumbStruct() + \.string - "Hello!").string, "Hello!")
XCTAssertEqual((DumbClass() + \.string - "Hello!").string, "Hello!")

Struct Example

let dumb = DumbStruct()
        
dumb + \.string - "Hello!"
        
XCTAssertEqual(dumb.string, "Hello, World!")

Class Example

let dumb = DumbClass()
        
dumb + \.string - "Hello!"
        
XCTAssertEqual(dumb.string, "Hello!")