0 Replies
      Latest reply on Mar 26, 2019 2:00 AM by MiladBigle
      MiladBigle Level 1 Level 1 (0 points)

        I have one Broadcast I want to add UIImage as Icon and add Name for Showing I find this code but How can I use it

        here is code I found it but how can I add the icon and app name ?https://stackoverflow.com/questions/55352390/add-icon-and-app-name-and-bundle-id-to-broadcast-swift-4

        [func loadBroadcastingApplicationInfo(completion handler: @escaping (String, String, UIImage?) -> Void)][1]
        extensionContext?.loadBroadcastingApplicationInfo (completion: {
            (bundleID, displayName, appIcon) in
        here is my code
        override func viewDidLoad() {
            // Do any additional setup after loading the view, typically from a nib.
            UIScreen.main.addObserver(self, forKeyPath: "captured", options: .new, context: nil)
        let broadcastPickerView = RPSystemBroadcastPickerView(frame: CGRect(x:0, y: 0, width: btnRS.frame.width, height: btnRS.frame.height))
        broadcastPickerView.translatesAutoresizingMaskIntoConstraints = false
        if let button = broadcastPickerView.subviews.first as? UIButton {
            button.imageView?.tintColor = UIColor.white
        broadcastPickerView.tintColor = .yellow
        broadcastPickerView.backgroundColor = .clear
        broadcastPickerView.showsMicrophoneButton = true
        btnRS.titleEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)