79497816

Date: 2025-03-10 11:25:47
Score: 0.5
Natty:
Report link

Yes, it can affect performance since using any introduces runtime dynamic dispatch. If you want to avoid it, use generics for your ViewModel too:

public final class SplashViewModel<UseCase: CheckRemoteConfigUseCaseProtocol>: ViewModel {
    private let checkRemoteConfigUseCase: UseCase
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kiryl Famin