ImageRenderer iOS 16

preview_player
Показать описание
In this video we dive into the iOS ImageRenderer frameworks for SwiftUI.
Learn how to generate images from your views and share them using the new ShareLink method introduced in iOS 16
We will be looking at generating images from our views and I will be using 2 different examples

One will be to generate an image from a view that has a fixed frame size and the other where the view's size is determined by the amount of space made available by the device screen and layout.

We will look at some best practices for avoiding issues with transparency and resolution.

If you want to support my work, you can buy me a coffee :)

Table of Contents:
0:00 Introduction
2:00 Example 1
16:00 Example 2

Starter Project Files:

Completed Project:

References mentioned in video:
CPhotosPicker:

Charts Framework 1:

Charts Framework 2:

How to read a view size in SwiftUI: Five Stars Blog

Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
Рекомендации по теме
Комментарии
Автор

Stewart, thanks a lot! I've been looking for a solution like that for a long time. Your videos and samples are very clear and helpful :)

NikolayMihaylovD
Автор

Aweome video! Just clicked on the ad as gratitude 😂

arturo
Автор

Excellent lessons Stewart… thank you ✨✨

andrejkling
Автор

Thank you for your work and passion. You inspire me to become an iOS developer.

tigran.zakaryan
Автор

Hi, this is amazing. Thanks for your excellent work, teaching and share your knowledge.

DatafoxSoftware
Автор

Thank you for your videos. I’m learning so much. Definitely gonna use this size reader on my projects.

AdrianoVieiraDev
Автор

Another awesome video Stewart! Five stars!

holycrosscv
Автор

wonderful tutorial, thank you for sharing!

rasheshbosamiya
Автор

I realised that setting a value for "Privacy - Photo Library Additions Usage Description" key in info.plist will make the "Save Image" option appear in the share sheet.

tobiomotayo
Автор

Great Tutorial, but I find that the Geometry Reader is unnecessary when I run in a simulator every a small iPhone SE, or to my iPhone 13. The rendered image is small and fits into the image template. Has Apple fixed something or am I misunderstanding something?

jamesallison
Автор

So awesome, thank you so much for this video!

mkhasson
Автор

Great lesson Stewart. Had one issue though, when rendering the image, the image showed flipped along the horizontal axis. When I saved the share, the image was okay. Went over the coding again but could find nothing wrong. I downloaded your completed version, and it produced the same results. It might be related the to the Xcode version. my version is 14.2 and i was running the simulator with an iPhone 14 pro.

pat
Автор

Can you leverage view that fits for bar chart?

savagedirk