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

ccios improvements #25

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

ccios improvements #25

wants to merge 10 commits into from

Conversation

alexandre-pod
Copy link
Member

Here what has been changed in this PR:

  • Target variable is now optional, an empty string or an unset value will use the first target of the project. This change allows templates to not overrides global target settings in .ccios.yml
  • When multiple targets are provided for a file, {{project_name}} will now be replaced by the name of the project instead of the name of the first target
  • @MainActor has been added to relevent files in Coordinator and Presenter templates to improve Swift 6 support
  • dependency provider snippets has been updated to handle Swift 6 issue (see this issue for why this is required)

@@ -19,4 +19,7 @@ class {{name}}ViewController: SharedViewController, {{name}}ViewContract {

// MARK: - {{name}}ViewContract

func configure(with viewModel: {{name}}ViewModel) {
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en soit optionnel, mais dans les autres on n'a pas de ligne en rab après la dernière fonction, on pourrait l'enlever

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d'ailleurs autre question

  • est-ce qu'on passerait pas {{name}}ViewContract dans une extension ?
  • je sais pas si ca vaut le coup de rajouter ou non le mark UIViewController avant le viewDidload

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Je vais enlever le retour à la ligne en trop, il ne sert pas en effet.
  • Pour le ViewContract, je ne suis pas fan de le mettre dans une extension car ce view controller a comme principale fonction de conformer a ce protocole. Après c'est bien qu'on soit tous d'accord sur ce point.
  • C'est vrai qu'un MARK UIViewController ou alors un simple Lifecycle serait bien

@@ -19,4 +19,7 @@ class {{name}}ViewController: SharedViewController, {{name}}ViewContract {

// MARK: - {{name}}ViewContract

func configure(with viewModel: {{name}}ViewModel) {
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d'ailleurs autre question

  • est-ce qu'on passerait pas {{name}}ViewContract dans une extension ?
  • je sais pas si ca vaut le coup de rajouter ou non le mark UIViewController avant le viewDidload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants