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
Create README.md #30
Create README.md #30
Conversation
|
||
## Overview | ||
|
||
### defining the logic of your app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd start with a very basic snippet that users can copy/paste and try katana (the UI probably).
20 lines max, something very simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use Katana elements of course
you can ask the `Store` to be notified for every change in the app state | ||
|
||
```swift | ||
store.addListener() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd avoid to use this example. It is really something we don't want to see in applications :)
|
||
## Overview | ||
|
||
### defining the logic of your app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd start with the UI, since it is the thing you see first.
It is also easier to explain. "this is how you can create the UI, need the logic? ok let's add it"
after a discussion with @bolismauro we decided the things to change for the next iteration:
|
after a discussion with @lucaquerella we decided that:
|
bf4f292
to
b79139e
Compare
b79139e
to
5533403
Compare
Add sample project
|
Some feedback
|
|
|
Updates on the copy
Suggestions for roadmap:
Besides these points, SGTM |
@smaramba I'd also remove the StackOverflow thing at least at the beginning. |
Great job here. <3 Suggestions:
|
@marcopaz (aka Paz) make me notice that the logo is not high resolution. can we fix it?
|
yeah I'm asking tomasz to give us the @2x version |
TODO:
|
|
||
## Contribute | ||
|
||
- If you __found a bug__, open an issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you found -> If you've found (once again, it doesn't say when the bug was found)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments and fixes.
| :muscle: | Use support for middleware like Logging | | ||
| :tophat: | Automatically update the UI when your app state changes | | ||
| :triangular_ruler: | Automatically scale your UI to every size and aspect ratio | | ||
| :horse_racing: | Animate all the UI changes | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Easily animate UI changes
?
I'd also add something about the one way data flow. I think it is important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
labelProps.key = CounterScreen.Keys.label.rawValue | ||
labelProps.textAlignment = .center | ||
labelProps.backgroundColor = .mediumAquamarine | ||
labelProps.text = NSAttributedString(string: "Count: \(props.count)", attributes: nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just use labelProps.text = NSAttributedString(string: "Count: \(props.count)")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Move Logo inside Assets
# Conflicts: # Demo/Actions/DecrementCounter.swift # Demo/Actions/IncrementCounter.swift # Demo/AppDelegate.swift # Demo/Assets.xcassets/AppIcon.appiconset/Contents.json # Demo/Info.plist # Demo/State/CounterState.swift # Katana.xcodeproj/project.pbxproj
@bolismauro @lucaquerella here the first draft of the readme.
I've looked at pretty much every readme of every significant swift framework, this is (excluding the copy that is work in progress) my best summary of what a readme should contain.
feel free to suggest or question everything.
my suggestion on how to improve this: