periphery
                                
                                 periphery copied to clipboard
                                
                                    periphery copied to clipboard
                            
                            
                            
                        Unused import false-positive for module that provides a conformance
When a file does not reference any declarations in a given module, but that module does provide a conformance that is required in the file, the import removal can result in a build failure. For example:
A/a.swift:
class Foo {}
B/b.swift:
import A
extension Foo: SomeProtocol {
  var someProperty: Int
}
C/c.swift:
import B
func someMethod(_ thing: SomeProtocol) {}
D/d.swift:
import A
import B // unused, yet required because it conforms Foo to SomeProtocol
import C
someMethod(Foo())