Someone could even implement the feature in a dynamic language like Python or Lisp for a particular application. Does that mean the application is infringing the patent because they didn't use Swift?
Also, "using Swift" isn't in the claims ¯\_(ツ)_/¯
When drafting the claims writer (patent attorney or agent usually) will add clauses to work around prior art. You can't just add unrelated features though, the features need to have synergy to represent a single invention.
[I've read a lot on USA patents but only worked directly with UK and EU patents.
This is not legal advice.]
Companies that are mere consumers of IT have been sued by patent trolls, and paid up.