Post

Replies

Boosts

Views

Activity

How to mock scan QR UI testcases without opening Camera view in Swift iOS?
I have created application which having the Scan QR functionality, which will scan the QR and once scanning done will show the next screen. I want to write the UI test case for scanning QR code without opening the Camera. I have explore and found the launchArguments option, but still not satisfied my requirement. Is there any way to do this?
0
0
1k
Nov ’20
How to add the target specific files in package.swift of Swift Package Manager?
I am adopting to the Swift Package Manager in my project, which consists of various targets having lots of Swift files, some of the files are commons across the targets. My project structure is : A Target - file1.swift file2.swift file3.swift (Common file) B Target - file3.swift (Common file) file4.swift file5.swift C Target - file3.swift (Common file) file5.swift (Common file) file6.swift file7.swift As per Swift PM Apple documentation - https://swift.org/getting-started/#using-the-package-manager you have to manually entered the files path into sources of package.swift in Swift PM. I don't want to change the project structure for Swift PM as my project contains lots of file. Is there any way to include the target specific files? So that the newly added files add automatically into the sources which will reduces the developer effort of putting the newly added file path into sources.
0
0
541
Sep ’20