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
{{ message }}
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.
I am trying to get nested model parsing to work, but without any success. The Xcode keeps hanging and crashing. :(
I tried to move the mapping block to separate class method like:
extensionLocation:JSONDecodable{staticfunc create(lat:Double)(lon:Double)->Location{returnLocation(lat: lat, lon: lon)}publicstaticfunc mapper(d:JSONObject)->Location?{returnLocation.create
<^> d <|"lat"<*> d <|"lon"}}
and then in parent model trying to parse it:
extensionPost:JSONDecodable{staticfunc create(id:Int)(subject:String)(location:Location)->Post2{returnPost2(id: id, subject: subject, location: location)}publicstaticfunc mapper(d:JSONObject)->Post2?{returnPost2.create
<^> d <|"id"<*> d <|"subject"<*>(d <|"location")>>>Location.mapper
}}
after that when I hit Build, the SourceKit crashes, switfc compiler hangs and after a while, Xcode too (using Xcode 6.0.1)
The text was updated successfully, but these errors were encountered:
I am trying to get nested model parsing to work, but without any success. The Xcode keeps hanging and crashing. :(
I tried to move the mapping block to separate class method like:
and then in parent model trying to parse it:
after that when I hit
Build
, the SourceKit crashes, switfc compiler hangs and after a while, Xcode too (using Xcode 6.0.1)The text was updated successfully, but these errors were encountered: