<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Firoz Ansari</title>
    <description>Senior Mobile Engineer with deep Android expertise, exploring Kotlin Multiplatform (KMP).</description>
    <link>https://www.firozansari.info/</link>
    <atom:link href="https://www.firozansari.info/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Tue, 01 Dec 2026 10:17:06 +0000</pubDate>
    <lastBuildDate>Tue, 01 Dec 2026 10:17:06 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Swift Struct equivalent in Kotlin</title>
        <description>What is the best possible equivalent of Swift Struct in Kotlin? Until recently I have used data class in Kotlin whenever I need to convert a Swift struct into a Kotlin equivalent in Android project. It works fine but it is not a perfect solution. Both struct and data class are simplified versions of a class. Data class is still a class. It is a reference type. On the other hand, struct is a value type. Let’s have a look at some examples. First an example of Swift struct: struct Person { let name: String var age: Int } let...</description>
        <pubDate>Thu, 10 Feb 2022 00:06:31 +0000</pubDate>
        <link>https://www.firozansari.info/swift-struct-in-kotlin.html</link>
        <guid isPermaLink="true">https://www.firozansari.info/swift-struct-in-kotlin.html</guid>
        
        <category>Swift</category>
        
        <category>Kotlin</category>
        
        
        <category>Kotlin</category>
        
      </item>
    
  </channel>
</rss>
