Apple Swift is primarily designed for iOS and macOS development with a focus on modern syntax and safety features, while D is a general-purpose programming language that emphasizes performance and system programming capabilities, making it suitable for a broader range of applications.