Usage of MVVM in iOS
I’m an iOS developer and I’m guilty of having Massive View Controllers in my projects so I’ve been searching for a better way to structure my projects and came across the MVVM (Model-View-ViewModel) architecture. I’ve been reading a lot of MVVM with iOS and I have a couple of questions. I’ll explain my issues with an example.
Using the optional ‘self’ reference in instance methods in Swift as a matter of style
Swift allows optional prefixing of method calls and property references to the current object instance via self
. Removing these prefixes can declutter code but, depending on the length of the method and number of parameters and local variables, it can also make variable scope ambiguous.
Workaround for unit testing Core Data in Swift
I am still pretty new to programming, but my first app was recently approved and is now for sale on the App Store. My app uses Core Data and is written in Swift. After some initial difficulties, I decide to write the app without unit tests. Now I’d like to implement unit tests to prevent regression.
Workaround for unit testing Core Data in Swift
I am still pretty new to programming, but my first app was recently approved and is now for sale on the App Store. My app uses Core Data and is written in Swift. After some initial difficulties, I decide to write the app without unit tests. Now I’d like to implement unit tests to prevent regression.
Ways to do callback, when and where
I’ve recently started to do some more complicated programming with network-related work on iOS with Swift.
This introduced a lot of asynchronous code not only in networking but also some exchange of information between view controllers.
Ways to do callback, when and where
I’ve recently started to do some more complicated programming with network-related work on iOS with Swift.
This introduced a lot of asynchronous code not only in networking but also some exchange of information between view controllers.
Decorator design pattern in swift
I’m reading “Head first design patterns” (here you can find exact example mentioned in book)
Would I rather use Core Data or save files to the system?
I’m developing an iOS app which basically fetches a JSON from a remote location, parses it and instantiates classes for a couple of its elements. For some visualization, this should give you a basic idea of what my json looks like:
Would I rather use Core Data or save files to the system?
I’m developing an iOS app which basically fetches a JSON from a remote location, parses it and instantiates classes for a couple of its elements. For some visualization, this should give you a basic idea of what my json looks like:
Static properties and implicit “self” property in structures and enumerations vs classes in Swift
I am currently reading the Swift language documentation and came across these sentences in the chapter about methods: