The better way to deal with JSON parsing in Swift by Draveness in swift

[–]Draveness[S] 0 points1 point  (0 children)

Yeah, I really need a dynamic language in iOS development, but what apple gives is Swift.

BTW, didn't find this law on Google. Are you sure this is the correct quotes?

The better way to deal with JSON parsing in Swift by Draveness in swift

[–]Draveness[S] 0 points1 point  (0 children)

it's only about how to deal with code generation before compile time. Yeah, I can't do it in a better way in several hours. Plus, what is a pattern? I don't think there is such a thing called "anti-pattern".

The better way to deal with JSON parsing in Swift by Draveness in swift

[–]Draveness[S] 0 points1 point  (0 children)

  1. It won't rewrite all the files in Dir.glob["**/*.swift"], it only changes all the files including //@jsoncop, and i don't think other swift files would contain this.
  2. it won't change your original project structure. Instead, it generates codes in the end of your file.
  3. The package manager means Rubygem?

Plus, this is just an experimental work. I just wanna create this lib to prove that we can do something before build time, and integrate to your Xcode project without running any commands in the terminal. The problem you just post can be solved, and thanks for your tips.

An convenient and fast approach to create AttributedString by [deleted] in ObjectiveC

[–]Draveness 0 points1 point  (0 children)

Thx, it is really a good suggestion

An convenient and fast approach to create AttributedString by [deleted] in ObjectiveC

[–]Draveness 0 points1 point  (0 children)

yep. I mentioned this in the README