You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested using Ono with Swift, and there seems to be a problem with getting the stringValue of elements. I have created a minimal example here to try:
Calling stringValue on an element produces (Function) in Swift.
Could it be that stringValue has a namespace problem in swift? Adding a breakpoint to my test project directly inside its implementation shows that it doesn't get called even!
In another project I use it with Alamofire to parse XML from a server and it produces nil The function stringValue does get called there, returns the correct value, but that value somehow ends up nil after the call anyway... (No idea how that happens)
Scratch that, I'm an idiot. Of course stringValue is a function in Swift and needs to be called stringValue()
The text was updated successfully, but these errors were encountered:
tkrajacic
changed the title
stringValue does not return string when using Swift
~~stringValue does not return string when using Swift~~
Nov 5, 2014
tkrajacic
changed the title
~~stringValue does not return string when using Swift~~
stringValue does not return string when using Swift (not true, my mistake)
Nov 5, 2014
I have tested using Ono with Swift, and there seems to be a problem with getting the stringValue of elements. I have created a minimal example here to try:https://github.com/tkrajacic/OnoTest.git
CallingstringValue
on an element produces(Function)
in Swift.Could it be thatstringValue
has a namespace problem in swift?Adding a breakpoint to my test project directly inside its implementation shows that it doesn't get called even!In another project I use it with Alamofire to parse XML from a server and it producesnil
The functionstringValue
does get called there, returns the correct value, but that value somehow ends upnil
after the call anyway... (No idea how that happens)Scratch that, I'm an idiot. Of course
stringValue
is a function in Swift and needs to be calledstringValue()
The text was updated successfully, but these errors were encountered: