Reputation: 693
I have a separate Singleton class containing LocalNotification registration and Action setup code. I am getting
Use of unresolved identifier error
Added all classes to XCTest target as well.
Upvotes: 3
Views: 747
Reputation: 23882
Just import the UIKit
framework
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let mutNotification = UIMutableUserNotificationAction()
mutNotification.identifier = "Y"
}
}
Upvotes: 2