WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

QR code and Playing Cards

Forums > SwiftUI

Code Scanner code - On Ipad there is no vibrate function. How can I add a beep or sound? Vibrate works perfect on Iphone

Can I adjust the scan window to show the tabItem at the bottom of the screen. Or put the tabItem at the top of the screen? I added a TabView(badge) to make sure all cards are scanned. I can slide view down to see value but it resets scanner when its closed

   

For the beep / sound you could add import AVFoundation, and use AudioServicesPlaySystemSound.

   

Thanks for the reply. Ill add that

   

Save 50% in my Black Friday sale.

SAVE 50% To celebrate WWDC22, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

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.