---
title: "Discussion on \"How to Take Screenshots of views in SwiftUI\" | Hashnode"
description: "Discussion on \"How to Take Screenshots of views in SwiftUI\". In this tutorial, you'll learn to convert a SwiftUI view into an UIImage/Image using only a few lines of swift code."
url: "https://hashnode.com/posts/how-to-take-screenshots-of-views-in-swiftui/645609936e301bec423681f9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Take Screenshots of views in SwiftUI](https://tnvmadhav.hashnode.dev/how-to-take-screenshots-of-views-in-swiftui?utm_source=hashnode&utm_medium=feed)

In this tutorial, you'll learn to convert a SwiftUI view into an UIImage/Image using only a few lines of swift code.

Mar 21, 2023 · 3 min read · tnvmadhav.hashnode.dev  
Read the article

-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#screenshot](https://hashnode.com/tag/screenshot)
-   [#iphone](https://hashnode.com/tag/iphone)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)
-   [#imagerenderer](https://hashnode.com/tag/imagerenderer)

## Written by

[TnvMadhav](https://hashnode.com/@tnvmadhav)

@tnvmadhav

  
[View profile](https://hashnode.com/@tnvmadhav)

Scribble. Design. Thoughts

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
