     case composeMessage
     
     
-    var service: NSSharingService? {
-        
-        return NSSharingService(named: self.name)
-    }
-    
-    
-    private var name: String {
+    var name: String {
         
         switch self {
         case .addToNotes: return "com.apple.Notes.SharingExtension"

        self.addItem(labelItem)
        
        // create services to skip
        let excludingServices = excludingServiceTypes.flatMap { type in type.service }
        
        // add menu items dynamically
        for service in NSSharingService.sharingServices(forItems: [item]) {

 
 ------------------------------------------------------------------------------
 
 © 2015-2017 1024jp
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
