nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Sep 2, 2021·6 min read40

A Kotlin Style .copy Function for Swift Structs - Shopify

Swift’s struct isn’t as convenient as Kotlin’s data class because it doesn't have a similar copy function. Learn how to adopt this pattern in Swift.

Mobile
Read original on shopify.engineering

Discussion around the web

  • Hacker News6 · 0 💬

Score breakdown

  • Technical depth42
  • Practical value30
  • Originality100
  • Writing quality84
  • Source reputation0
  • Recency0
  • External engagement10
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

The GitHub Blog

GitHub Package Registry will support Swift packages

Simina Pasat·Jun 3, 2019·9 min read
Shopify Engineering

Migrating Shop app from React Native to native (2026) - Shopify

Sep 10, 2026·8 min read
Shopify Engineering

Maintaining a Swift and Objective-C Hybrid Codebase - Shopify

Jun 15, 2017·8 min read
Shopify Engineering

Helix: The internal tool powering our Shopify app's native migration (2026) - Shopify

23 days ago·10 min read