GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

Accessing app functions from a widget

Forums > SwiftUI

Hi all, I'm working on a voice recorder app and I want to make a widget that the user can record something through. Basically, just this interface but in a widget (without the toolbar): https://imgur.com/a/W0g76Nr

However, I'm not sure how the widget can gain access to the recording functions of the main app. Will I have to put them in the same app group? Thanks for any help!

   

Hacking with Swift is sponsored by Essential Developer.

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until February 9th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.