Skip to content

Commit 902e090

Browse files
committed
updated OwnView handling
1 parent 638cdab commit 902e090

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

UIKitExtensions.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'UIKitExtensions'
11-
s.version = '0.2.4'
11+
s.version = '0.2.5'
1212
s.summary = 'UIKitExtensions adds usefull features to UIKit classes.'
1313

1414
# This description is used to generate tags and improve search results.

UIKitExtensions/OwnView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ open class OwnView: UIView {
2929

3030
open func loadView() {
3131
if let conformingProtocolView = self as? OwnViewProtocol {
32-
self.contentView = Bundle.main.loadNibNamed(
32+
let bundle = Bundle(for: self.classForCoder)
33+
self.contentView = bundle.loadNibNamed(
3334
conformingProtocolView.viewName,
3435
owner: self,
3536
options: nil

0 commit comments

Comments
 (0)