WTV

0.1.1

👀 Where's The Variable?
0xLet/WTV

What's New

Support Arrays

2021-03-14T18:10:45Z

WTV

Where's The Variable?

struct Dictionary {
    var value = [
        "someValue": [
            "what...?": 999
        ]
    ]
}

struct Value {
    let somes = Dictionary()
}

struct RootValue {
    let child: Value = Value()
}

struct OuterValue {
    let root = RootValue()
}

func testExample() {
    guard let output = WTV(OuterValue()).variable(named: "what...?") else {
        XCTFail()
        return
    }
    
    print(output)
    
    XCTAssert(output.contains("FOUND"))
}

OuterValue - Inside: root - Inside: child - Inside: somes - Inside: value - Inside: someValue - Inside: someValue - Inside: what...? - FOUND: (label: Optional("what...?"), value: 999)

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Mar 24 2024 01:20:25 GMT-0900 (Hawaii-Aleutian Daylight Time)