<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf" -->

---
title: Sealed Generics and SKIE | daily.dev
description: SKIE is a Kotlin Multiplatform plugin that bridges the gap between Kotlin&#x27;s sealed classes with generics and Swift. Without SKIE, sealed classes lose their...
canonical: https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Sealed Generics and SKIE | daily.dev
og:description: SKIE is a Kotlin Multiplatform plugin that bridges the gap between Kotlin&#x27;s sealed classes with generics and Swift. Without SKIE, sealed classes lose their...
og:url: https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf
og:image: https://api.daily.dev/og/posts/YQExRG1Wf.png
og:image:alt: Sealed Generics and SKIE
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sealed Generics and SKIE

**[Touchlab](https://daily.dev/sources/touchlab)** · 5 min read · 0 upvotes · 0 comments

## Summary

SKIE is a Kotlin Multiplatform plugin that bridges the gap between Kotlin's sealed classes with generics and Swift. Without SKIE, sealed classes lose their generic type information when passing through the Objective-C layer, requiring unsafe casts and a default branch in Swift switch statements. With SKIE, sealed classes become exhaustive Swift enums via the `onEnum(of:)` helper, preserving generic type safety and integrating natively with Swift concurrency. A practical example using a `Flow<ApiResult<Flight>>` demonstrates how SKIE enables type-safe, exhaustive pattern matching on generic sealed results while also supporting async/await iteration over Kotlin flows.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://touchlab.co/sealed-generics-and-skie>

## Similar posts on daily.dev

- [Consuming SKIE Flows in SwiftUI](https://daily.dev/posts/consuming-skie-flows-in-swiftui-nxkwmuyhl) · Touchlab · 0 upvotes · 0 comments
- [The Clean Line: Swift Export for KMP \| KMP Bits](https://daily.dev/posts/the-clean-line-swift-export-for-kmp-kmp-bits-dvq0zxygg) · ProAndroidDev · 0 upvotes · 0 comments
- [Kotlin : Sealed Classes and Interface](https://daily.dev/posts/kotlin-sealed-classes-and-interface-dtu0kurmx) · droidcon · 0 upvotes · 0 comments
- [Kotlin Weekly \#484](https://daily.dev/posts/kotlin-weekly-484-k13jz5pcy) · Kotlin Weekly · 0 upvotes · 0 comments
- [5 Kotlin Features Every Android Developer Should Actually Be Using part 1](https://daily.dev/posts/5-kotlin-features-every-android-developer-should-actually-be-using-part-1-puwyfdeef) · Medium · 3 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#kotlin](https://daily.dev/tags/kotlin)

[View this post on daily.dev](https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Sealed Generics and SKIE","url":"https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf"},"datePublished":"2026-08-02T07:15:28.031Z","dateModified":"2026-08-02T07:40:06.941Z","description":"SKIE is a Kotlin Multiplatform plugin that bridges the gap between Kotlin's sealed classes with generics and Swift. Without SKIE, sealed classes lose their...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/52e02243f8e267c76343f7596e777014?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/52e02243f8e267c76343f7596e777014?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Touchlab","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Touchlab","logo":"https://media.daily.dev/image/upload/s--CQ0u6GwB--/f_auto,q_auto/v1785654902/logos/touchlab?_a=BAMAMicg0","url":"https://daily.dev/sources/touchlab"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/sealed-generics-and-skie-yqexrg1wf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift,kotlin","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Touchlab","item":"https://daily.dev/sources/touchlab"},{"@type":"ListItem","position":3,"name":"Sealed Generics and SKIE"}]}
```

