`
struct AAA: Codable {
var totalMoveGoalsMet: Int
}
class BB: HostContext {
var aaa: AAA
func computedProperty(name: String, args: String, callback: ResultCallback) {
callback.onResult(result: aaa.totalMoveGoalsMet.string)
}
func deviceProperty(name: String, args: String, callback: ResultCallback) {
callback.onResult(result: "")
}
}
func test() {
let str = evaluateWithContext(definition: "totalMoveGoalsMet == 3500", context: BB(aaa: AAA(totalMoveGoalsMet: 4000)))
}
`
New issue checklist
General information
Superwall version:
- iOS version(s):
- CocoaPods/Carthage version (if applicable):
- Xcode version:
- Devices/Simulators affected:
- Reproducible in the demo project? (Yes/No):
- Related issues:
Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue.
Steps to reproduce
Please also include a description of expected vs. actual behaviour
Other Information
e.g. stacktraces, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.
`
`
New issue checklist
READMEand documentationGeneral information
Superwallversion:Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue.
Steps to reproduce
Please also include a description of expected vs. actual behaviour
Other Information
e.g. stacktraces, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.