Code refactor by using URLForResource method instead of using the PathForResource method both in Obj-C and Swift

Currently, there are no code converters for converting Swift code into Obj-C code. If you have a project which is initially written in Obj-C and later a fork version of the same project is migrated into Swift. Code refactoring in both Obj-C and Swift can be quite tricky in case you started learning iOS app. development using Swift. In this article, I will be showing you how to refactor a code snippet both in Obj-C and swift.