Post

Replies

Boosts

Views

Activity

Reply to Cannot find type "..." in scope
Declare your QRScannerController class first... ...then add the extension code, like this: class QRScannerController: UIViewController { var video = AVCaptureVideoPreviewLayer() var qrcodeFrameView = UIView() // this needs to be initialized to something override func viewDidLoad() { super.viewDidLoad() // creating session let session = AVCaptureSession() } } extension QRScannerController: AVCaptureMetadataOutputObjectsDelegate { // add delegate methods here... }
Topic: Code Signing SubTopic: Notarization Tags:
Feb ’22
Reply to iOS app Family Sharing flag
So our users think they can share our subscription in their family. but I'm talking about Family sharing for the app itself, not for in-app subscriptions It's a free app, so anyone can download it, for free. "Family Sharing" is for sharing the subscription. Apple say: You can now enable Family Sharing for auto-renewable subscriptions and non-consumable in-app purchases, allowing users to share their purchases with up to five family members
Feb ’22
Reply to Insert Image into RoundedRectangle()
There are a number of ways you could do this... I would drop the RoundedRectangle, and use the Image as the navigation link Give it some padding Set the background color Set the corner radius NavigationLink(destination: EmptyView()) { Image(systemName: "heart.fill") .padding(100) .background(Color.red) .cornerRadius(25) } Alternatively, if you want to keep the RoundedRectangle (for some other reason) use a ZStack, like this: NavigationLink(destination: EmptyView()) { ZStack { RoundedRectangle(cornerRadius: 25) .fill(Color.red) Image(systemName: "heart.fill") } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22