iOSabhishek's profile picture. Eat Swift,Think Swift,Love Swift!

Abhishek Dhiman

@iOSabhishek

Eat Swift,Think Swift,Love Swift!

Skill aren’t always be needed, sometimes its dependent how disgraced human you can be


Abhishek Dhiman reposted

Just want to let #twitter devs know, you have built an amazing platform and your contributions are deeply appreciated. If you are based out of #Bengaluru and you are looking for opportunities. My DM is open for all, will try to connect as much as I can.


Abhishek Dhiman reposted

A common question asked during interviews for Mid-Level & Senior iOS developers is: "What are SOLID principles?" Here's how you should answer:


Happy Diwali to all clean coders ! Have a good one .


Abhishek Dhiman reposted

For any iOS developer , this is a clarification about the bad practice going around regarding SwiftUI. As an example from Apple Docs, note that viewModel is a separate component and is not view itself. Please read more about it here in this example : developer.apple.com/documentation/…

NirajTiwari_'s tweet image. For any iOS developer , this is a clarification about the bad practice going around regarding SwiftUI.

As an example from Apple Docs, note that viewModel is a separate component and is not view itself.

Please read more  about  it here in this example :
developer.apple.com/documentation/…

Hey iOS developer , Finally, the truth has been spoken out loud by the apple team that Views are not ViewModels in SwiftUI.

codecat15's tweet image. Hey iOS developer ,
Finally, the truth has been spoken out loud by the apple team that
Views are not ViewModels in SwiftUI.


Abhishek Dhiman reposted

Hey iOS developer , Finally, the truth has been spoken out loud by the apple team that Views are not ViewModels in SwiftUI.

codecat15's tweet image. Hey iOS developer ,
Finally, the truth has been spoken out loud by the apple team that
Views are not ViewModels in SwiftUI.

Abhishek Dhiman reposted

@NirajTiwari_ and @iOSabhishek conducted a great session on the modern collection view layout and using the modern APIs they constructed the App Store UI. Here’s the session recording. youtu.be/ToLA91doe-g

cafe_ios's tweet card. Building app store UI using modern collection view | iOS Cafe event

youtube.com

YouTube

Building app store UI using modern collection view | iOS Cafe event


Abhishek Dhiman reposted

When I am looking at an online tutorial, I ask myself ✅ Does it make sense and fit my use-case? ✅ Is it following good design and decoupled structure? ✅ Is it testable? If anyone of those boxes are unchecked I simply stop then and there coz it won’t add any value.

codecat15's tweet image. When I am looking at an online tutorial, I ask myself 

✅ Does it make sense and fit my use-case? 

✅ Is it following good design and decoupled structure?

✅ Is it testable?

If anyone of those boxes are unchecked I simply stop then and there coz it won’t add any value.

Hard to believe reality, but you need to accept it.


Abhishek Dhiman reposted

I like how #ViewInspector (github.com/nalexn/ViewIns…) lets us unit test the SwiftUI Views. It has good coverage of different view types, modifiers, etc that are held inside a SwiftUI view. Here is a sample of a very basic test. P.S: It needs some boilerplate setup to use.

NirajTiwari_'s tweet image. I like how #ViewInspector (github.com/nalexn/ViewIns…) lets us unit test the SwiftUI Views.  It has good coverage of different view types, modifiers, etc that are held inside a SwiftUI view. Here is a sample of a very basic test.

P.S: It needs some boilerplate setup to use.
NirajTiwari_'s tweet image. I like how #ViewInspector (github.com/nalexn/ViewIns…) lets us unit test the SwiftUI Views.  It has good coverage of different view types, modifiers, etc that are held inside a SwiftUI view. Here is a sample of a very basic test.

P.S: It needs some boilerplate setup to use.

Abhishek Dhiman reposted

A common question asked in iOS interviews is "What do you use to store data in iOS apps?" If you're a Jr. or Mid-level developer, here's how you should answer it.


Abhishek Dhiman reposted

I came across an approach known as the model view approach in the developer forum It suggests how MVVM shouldn’t be used for SwiftUI apps I analyzed the approach from a clean code perspective and am sharing my findings in the video Do check it out 🧑‍💻 youtu.be/RVyTzq7WQkA

codecat15's tweet card. The Model View Approach in SwiftUI

youtube.com

YouTube

The Model View Approach in SwiftUI


Abhishek Dhiman reposted

When it comes to unit testing, most devs make mistakes by always calling a test double a "Mock". A test double is a generic term. There are other types of test doubles that are useful. Dummy, fake, spy, stub, and mock are all different test doubles, so choose them as per need.


Abhishek Dhiman reposted

XCTest framework has provided this useful overload for the XCTAssert method where it captures the #filename and the #line number to report exactly from where the error occurred. Give it a try and make errors more meaningful. developer.apple.com/documentation/…

developer.apple.com

XCTAssert(_:_:file:line:) | Apple Developer Documentation

Asserts that an expression is true.


Abhishek Dhiman reposted

Thanks, @codecat15 for hosting an amazing session for junior and Senior iOS developers.

VishalMalvi_'s tweet image. Thanks, @codecat15 for hosting an amazing session for junior and Senior iOS developers.
VishalMalvi_'s tweet image. Thanks, @codecat15 for hosting an amazing session for junior and Senior iOS developers.

Abhishek Dhiman reposted

Hi all, I am Niraj, an iOS Developer with 6 years of experience. I love to develop, learn & explore technologies, design patterns, & new architecture trends. If you have any queries, you can reach out 2 me anytime & I'll be happy to help. Looking 4ward 2 connecting with you all.


Abhishek Dhiman reposted

Native > Hybrid/cross platform

Your mobile app just got a (well-deserved 😅) upgrade. It’s now: - faster — 2× on iOS, 3× on Android - redesigned using native components - easier to navigate, with a new home tab And we’re just getting started!



Abhishek Dhiman reposted

A question is where would the business calculations, validations be placed? Should it be in the web service class? If yes then it not only breaks separation of concern but also gives rise of a massive service file just like massive view controllers.


Loading...

Something went wrong.


Something went wrong.