CKBrowserSwitcherViewController overrides the -traitCollection getter
The answer is here:
The same thread was here and not specific to SwiftUI but this warning can be safely ignored according to Apple if it's a system class like "CKBrowserSwitcherViewController". However, if the class that produces is a custom class, then it's a legit warning to you.
By the way, it's a good idea to update Xcode to the latest version.
MFMessageComposeViewControllerDelegate not being called
It's crashing because your handler
object is getting released and deallocated right after the call to handler.sendMessage()
, and then a delegate callback is attempted on that now-deallocated object when you try to send or hit cancel. The object is getting released and deallocated because nothing is holding a strong reference to it anymore at the end of application:didReceiveRemoteNotification:
.
Since you are creating this object in your app delegate, I would suggest making a property in your app delegate to hold onto this object:
var handler: MyClass?
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {
// instance of class
handler = MyClass()
// call method
handler?.sendAMessage()
}
Related Topics
Creating a Countableclosedrange<Character>
How to Retrieve a Random Object from Firebase Using a Sequential Id
Swift Parsing Attribute Name for Given Elementname
How to Make Physics Bodies Stick to Nodes Anchor Points
What Does "Get" Mean in a Protocol's Property Declaration
Declaration Is Only Valid at File Scope (Extension)
How to Install Xcode on an External Hard Drive Along with the iPhone Simulator.App
How to Make the Memberwise Initialiser Public, by Default, for Structs in Swift
Swift Http Request Use Urlsession
Compare Textfield.Text to Firebase String Swift
Default Argument Not Permitted in a Tuple Type When Defining Function Type
How to Validate Dynamically Added Textfields on a Button Click in Swiftui
How to Use Keywords as Parameter Names in Swift
How Does Dictionary Use the Equatable Protocol in Swift
iOS 8 Beta Today Extension Widget Not Showing in a Swift App