Skip to content

Commit

Permalink
Merge pull request #9 from srfaytkn/ios-dev
Browse files Browse the repository at this point in the history
Bug Fix - didSet videoId
  • Loading branch information
ozgursoy authored Jun 29, 2019
2 parents 85a5328 + 973862e commit cc971af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ios/YouTubeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ import UIKit
self.player.isUserInteractionEnabled = showSeekBar
}
}

@objc var videoId: NSString = ""

@objc var videoId: NSString = "" {
didSet {
_ = player.load(videoId: videoId as String, playerVars: playerVars)
}
}

override init(frame: CGRect) {
super.init(frame: frame)
Expand Down

0 comments on commit cc971af

Please sign in to comment.