Skip to content
0:00 / 0:00

#namespacing#swift#modules

4 ways to fix name collisions in Swift

Swift and Tips

13K subscribers • 12 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Pedro Rojas
  • Linked in the descriptionpitt500/swift-and-tips

Intermediate. Assumes working knowledge.

1.3K views4 years ago1 recommendation

Programming languagesSwift

Pedro Rojas explains namespacing in Swift and demonstrates four techniques to resolve naming collisions between modules.

Hello everyone, in today's video we will see some techniques to fix name collisions in Swift. We also going to learn about namespacing and why NS or UI prefixes exist in the Apple's API. Content: - Intro - What is a namespace? - A type name already taken - Fixing name collisions - Do you want to learn more? ------ Source code shown in the video: github.com/pitt500/swift-and-tips/tree/main/NameCollisions ------ Resources: * Swift.org: docs.swift.org/swift-book/LanguageGuide/AccessControl.html#I… * Swift Forums: forums.swift.org/t/package-module-name-collisions/1277 * Import: nshipster.com/import/ * Namespacing: vadimbulavin.com/the-power-of-namespacing-in-swift/ ------ Other videos in the channel: * A mini-game with collisions in SwiftUI: youtu.be/ylcEQHYev1U * Why can't you use Int indices in a String?: youtu.be/k35T7E1hxeQ * Gestures and Animations: youtube.com/playlist?list=PLHWvYoDHvsOXZH7A7S06P0MIaeLis7CVe * GeometryReader and apple Watch animations: youtu.be/ma4LP8RnyI0 * What's new in SwiftUI 3.0: youtu.be/ewIeL1Trd5o * Swift Concurrency: youtube.com/playlist?list=PLHWvYoDHvsOUsGazZVW_ZdehusA0diIxs ----- Don't forget to subscribe to the channel, like it, and follow me on social media: Twitter: twitter.com/swiftandtips twitter.com/pitt500 Finally, ask me for a video you would like to see next 😄! Credits: - Music by Wataboi from pixabay.com/ - Video edited with Final Cut Pro

Why it's here

1 person recommends this

What people say. Recommended as a helpful guide to understanding namespacing and resolving name collisions in Swift.

u/pitt500in r/swift • Recommends

4 ways to fix name collisions in Swift