Skip to content

Instantly share code, notes, and snippets.

@AmitaiB
Last active December 22, 2020 15:10
Show Gist options
  • Select an option

  • Save AmitaiB/6491dbd12de896e515bc65b77cd35d7a to your computer and use it in GitHub Desktop.

Select an option

Save AmitaiB/6491dbd12de896e515bc65b77cd35d7a to your computer and use it in GitHub Desktop.

Revisions

  1. AmitaiB revised this gist Dec 22, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion JWDelayedCastingCall.swift
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    func onConnected(to device: JWCastingDevice) {
    DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
    castController.cast()
    self.castController.cast()
    }
    }
  2. AmitaiB created this gist Dec 22, 2020.
    5 changes: 5 additions & 0 deletions JWDelayedCastingCall.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    func onConnected(to device: JWCastingDevice) {
    DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
    castController.cast()
    }
    }