---
layout: "default"
title: "type"
description: "Swift documentation for 'type': Returns the dynamic type of a value."
keywords: "type,func,swift,documentation"
root: "/v3.1"
---

<div class="declaration" id="func-type-type-metatype_-type">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-type-type-metatype_-type">func type&lt;Type, Metatype&gt;(<wbr>_: Type)</a>
        
<div class="comment collapse" id="comment-func-type-type-metatype_-type"><div class="p">
    <p>Returns the dynamic typ