diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5378de --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# Inqbarna tech blog source + +Source of contents at [iqb-tech-blog|(https://inqbarna.github.io/iqb-tech-blog/)] + +## Setup + +Install needed dependencies: + +```sh +gem install jekyll bundler +bundle install +``` + +Uou may need brew and some gem environment selector? Please see [(https://jekyllrb.com/docs/installation/macos/)] + +And... you may install Visual Studio Code, which is nice for markdown editing. + +## Contributing + +Add your new posts to the `_posts` folder. + +You can debug your results running +```sh +bundle exec jekyll serve --livereload +``` + +#### More Info + +More info at [Jekyll|(https://jekyllrb.com/docs/)] + +## Deploy + +Pushing to main automatically depoys to [iqb-tech-blog|(https://inqbarna.github.io/iqb-tech-blog/)]. diff --git a/_posts/2024-09-04-decoupling-views-from-viewmodels-in-swiftui.markdown b/_posts/2024-09-04-decoupling-views-from-viewmodels-in-swiftui.markdown index 27950ec..37877eb 100644 --- a/_posts/2024-09-04-decoupling-views-from-viewmodels-in-swiftui.markdown +++ b/_posts/2024-09-04-decoupling-views-from-viewmodels-in-swiftui.markdown @@ -5,6 +5,8 @@ date: 2024-09-04 21:31:41 +0200 categories: swiftui --- +![Image]({{ site.baseurl }}/assets/images/decouple-swiftui-views-viewmodels.webp) + SwiftUI has revolutionized the way we build user interfaces for Apple platforms, offering a declarative syntax that’s both intuitive and powerful. However, as with any UI framework, it's crucial to maintain a clean architecture that separates the concerns of UI, business logic, and data management. This article will walk you through the best practices for decoupling your views from their view models in SwiftUI. ### **Why Decouple Views from ViewModels?** diff --git a/assets/images/decouple-swiftui-views-viewmodels.webp b/assets/images/decouple-swiftui-views-viewmodels.webp new file mode 100644 index 0000000..8691e2d Binary files /dev/null and b/assets/images/decouple-swiftui-views-viewmodels.webp differ