You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,15 +19,15 @@ class ShareViewController: SLComposeServiceViewController {
19
19
config.title ="Voltage"
20
20
config.value =self.voltage
21
21
config.tapHandler ={
22
-
[weak self]in
23
-
// should be able to get rid of sself at this point
24
-
iflet sself =self{ // one, two, cha-cha-cha
22
+
[unowned self]in
23
+
// // should be able to get rid of sself at this point
24
+
// if let sself = self { // one, two, cha-cha-cha
25
25
// I tried to give VoltageChooser an init override but this caused a crash
26
26
// so we set the delegate separately instead
27
27
letvc=VoltageChooser()
28
-
vc.delegate =sself
29
-
sself.pushConfigurationViewController(vc)
30
-
}
28
+
vc.delegate =self
29
+
self.pushConfigurationViewController(vc)
30
+
// }
31
31
}
32
32
return[config]
33
33
}
@@ -43,7 +43,7 @@ class ShareViewController: SLComposeServiceViewController {
43
43
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
44
44
45
45
// I don't actually run an "Electrocute" server so we just return without networking :)
0 commit comments