# KotlinDoubleArray to native

**URL:** <https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353>\
**Category:** Native\
**Created:** [July 3, 2019, 4:22pm UTC](https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353 "2019-07-03T16:22:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshigenari](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rshigenari](https://discuss.kotlinlang.org/u/rshigenari)\
**Post date:** [July 3, 2019, 4:22pm UTC](https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353/1 "2019-07-03T16:22:33Z")

</div>

Hello,  
I have a method that has an array as parameter, which syntax I should use to declare? If use Array or ArrayDouble I can’t use this method in swift language with kotlin Multiplatform, I need a class with common “tag” (blue).

Help me please

 ![33](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/5/57e4280df09a8d69f48b9d4f452048d34e03f429.png)

---

<div class="post-metadata">

**Author:** ![SackCastellon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sackcastellon/32/4553_2.png) [@SackCastellon](https://discuss.kotlinlang.org/u/SackCastellon)\
**Post date:** [July 3, 2019, 4:39pm UTC](https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353/2 "2019-07-03T16:39:14Z")

</div>

You can use anything with the Native tag, it doesn’t necessarily have to have the Common tag.

Moreover, `DoubleArray` is indeed available in Common

 ![Screenshot_20190703-183434_Chrome](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/b/be8e795feb54bc7a8a1e0a07f5bc2bbbef191015.jpeg)

The buttons with the tag names are used to toggle the tags, so only the properties/methods avalible in the active _tags_ are shown.  
What happened is that you disabled the Common tag.

---

<div class="post-metadata">

**Author:** ![rshigenari](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rshigenari](https://discuss.kotlinlang.org/u/rshigenari)\
**Post date:** [July 3, 2019, 5:27pm UTC](https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353/3 "2019-07-03T17:27:58Z")

</div>

But this class don’t work in swift when I use a framework

 ![59](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/8/8813c9c64b70f6adf476f8717772e2b66c12bdb7.png)

---

<div class="post-metadata">

**Author:** ![SackCastellon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sackcastellon/32/4553_2.png) [@SackCastellon](https://discuss.kotlinlang.org/u/SackCastellon)\
**Post date:** [July 3, 2019, 6:14pm UTC](https://discuss.kotlinlang.org/t/kotlindoublearray-to-native/13353/4 "2019-07-03T18:14:05Z")

</div>

That’s because the Swift array is equivalent to a Kotlin list, so you’ll have to use `List<Double>`

 ![Screenshot_20190703-200955_Chrome](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/4/49de48bd70dbc676f4b6900dc191a7c4a7c199ae.jpeg)

See [https://kotlinlang.org/docs/tutorials/native/apple-framework.html#kotlinnative-runtime-declarations](https://kotlinlang.org/docs/tutorials/native/apple-framework.html#kotlinnative-runtime-declarations)
