Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to loop a single value #113

Closed
samskiter opened this issue May 18, 2017 · 1 comment
Closed

Is there a way to loop a single value #113

samskiter opened this issue May 18, 2017 · 1 comment
Labels

Comments

@samskiter
Copy link

samskiter commented May 18, 2017

I'm using Sourcery and annotations are returned as an array if there are many or as a single value if there is just one. (see: https://github.com/krzysztofzablocki/Sourcery/blob/4e920792664029203820fba1a63ba4ba925f552e/SourceryTests/Parsing/AnnotationsParserSpec.swift)

Is there any way from a template to either 'loop' over a single value or declare an array containing just my single value that I could then loop over?

@kylef
Copy link
Collaborator

kylef commented Sep 7, 2017

Looks like this was solved in SwiftGen/StencilSwiftKit#44

@kylef kylef closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants