Post

Replies

Boosts

Views

Activity

Reply to StoryBoard View Backgrounds Black instead of gradient after updating Mac and Xcode
It turns out that the errors were related to a class setup for view with gradient background. The class which seems to be unstable in the current xcode was as follows: import UIKit @IBDesignable class GradientView: UIView {   @IBInspectable var FirstColor: UIColor = UIColor.clear {     didSet{     updateView()     }}   @IBInspectable var SecondColor: UIColor = UIColor.clear {     didSet{       updateView()     }}     override class var layerClass: AnyClass {     get {       return CAGradientLayer.self     }   }   override func awakeFromNib() {     super.awakeFromNib()     self.layer.cornerRadius = 12     self.clipsToBounds = true     self.layer.borderWidth = 0.5  }   func updateView() {     let layer = self.layer as! CAGradientLayer     layer.colors = [FirstColor.cgColor, SecondColor.cgColor]     layer.startPoint = CGPoint(x:0.5,y:1.0)     layer.endPoint = CGPoint(x:0.5,y:0.0)   } } Using a different method for a gradient view class works fine. There seem to be many other issues with displaying storyboard graphics from the previous version of xcode, but none that produce errors, only lack of defintion of the view controllers... The gradient view class that worked is as follows: class viewGradient: UIView {   override func awakeFromNib() {     super.awakeFromNib()     let gradientLayer = CAGradientLayer()     gradientLayer.frame = self.bounds     gradientLayer.colors = [UIColor.white.cgColor,UIColor.lightGray.cgColor,UIColor.systemTeal.cgColor]     self.layer.insertSublayer(gradientLayer, at: 0)   }   }
Jul ’20
Reply to Receipt missing older non-consumable IAPs
I have the same issue but with either non-comsumable or subscription when trying to restore products. I have been through Apples sample code here - https://developer.apple.com/documentation/storekit/in-app_purchase/offering_completing_and_restoring_in-app_purchases . This sample project works fine except when restoring it only identifies the original purchase, so if there is an upgrade in the subscription it cannot be restored. I can only get one transaction out of it which contains the latest transaction number, latest transaction date, original purchased item ID and original purchase date (nothing in between). I am simulating it on xcode StoreKit only. Any help would be appreciated. I can't get the app on the store without a Restore button.
Jan ’21
Reply to Xcode 14 repeatedly and frequently crashes
Same here. Getting more frequent. Mine is a MacBook Air early 2015. It starts heating up, then the fan goes on. I usually hold the power button down to stop it for fear of the the crash cycle damaging the computer. The update to 12.6 and Xcode 14 is definitely the problem. I am curious about the devices. Are all devices crashing or just older ones?
Mar ’23