Yes, iOS app development, Swift, Foundation, UIKit, Xcode, etc are often confounded with each other, because they overlap a lot. It is common to refer to an iOS app developer as a Swift developer. It's not exactly wrong, but it isn't very precise either.
Swift is a programming language with a corresponding compiler and a fairly small standard library. Swift is a general purpose programming language, that can be used for both systems programming and application programming. And even scripting and used with an interactive interpreter on the command line.
Swift interoperates seamlessly with Objective-C and C and allows you to import any Objective-C framework. Since both the iOS, tvOS and macOS SDKs are just a bunch of Objective-C frameworks, it is easy to use Swift with these SDK. In fact, Apple encourages you to do so. Therefore, Swift has rapidly become the de-facto programming language for iOS app development.
Nonetheless, Swift is really independent from all of that. In fact, most of the functions and types you'll use with Swift, aren't really even Swift features. They're only available if you either import UIKit or import Foundation, which are Apple frameworks.
This forum, for the most part, is about Swift-the-language, and not Swift-the-app-developement-tool.
And Xcode is an entirely different beast, independent from all of this.
Again, you probably want to check out the Apple Developer Forums, or maybe even Stack Overflow, for questions regarding app development.