Point-Free Pointers
Read post

“Trait-ifying” our libraries to reduce transitive dependencies

Point-Free is adopting SwiftPM traits across their Swift libraries to let users opt out of transitive dependencies they don't need. Using SwiftNavigation as a test bed, developers can now specify traits like `CasePaths` and `Perception` in Package.swift to avoid pulling in libraries like CustomDump, IssueReporting, and Sharing. The Dependencies library also supports traits to omit clock/Combine scheduler registrations and even Foundation/FoundationNetworking for Wasm and Android targets. Xcode provides a new UI for managing these traits. More libraries, including ComposableArchitecture 2.0, are getting the same treatment.

    #swift
Jun 24•3m read time•From pointfree.co
Post cover image
681 Impressions
Point-Free Pointers's image
Point-Free Pointers

PointFree's platform is a resource for Swift developers, offering insights into functional programmi...

16 Followers

•

69 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard