Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use The New Transferable Type With a a SwiftUI PasteButton

Use The New Transferable Type With a a SwiftUI PasteButton

Daily Coding Tip 116

Millie Sturgeon's avatar
Millie Sturgeon
Jun 23, 2022
∙ Paid
1

Share this post

Type Safely
Type Safely
Use The New Transferable Type With a a SwiftUI PasteButton
Share
Image by ChiemSeherin from Pixabay

I’m going to create a type that stores a SwiftUI Image and makes it conform to Identifiable for the purpose of a ForEach that I’ll be adding later. I’ll be creating a Form that has every type of PasteButton in it, one that takes every Transferable type I can find.

To make is simpler to reuse code I’ve created a generic …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share