<commit_before>//
//  BaseNavigationBar.swift
//  Rocket.Chat
//
//  Created by <NAME> on 6/14/18.
//  Copyright © 2018 Rocket.Chat. All rights reserved.
//

import UIKit

protocol BaseNavigationBarThemeSource {
    var navigationBarTheme: Theme? { get }
}

class BaseNavigationBar: UINavigationBar {
    var themeSource: BaseNavigationBarThemeSource?
    override var theme: Theme? {
        return themeSource?.navigationBarTheme
    }
}<commit_msg>Fix retain cycle on BaseNavigationBar<commit_after>//
//  BaseNavigationBar.swift
//  Rocket.Chat
//
//  Created by <NAME> on 6/14/18.
//  Copyright © 2018 Rocket.Chat. All rights reserved.
//

import UIKit

protocol BaseNavigationBarThemeSource: class {
    var navigationBarTheme: Theme? { get }
}

class BaseNavigationBar: UINavigationBar {
    weak var themeSource: BaseNavigationBarThemeSource?
    override var theme: Theme? {
        return themeSource?.navigationBarTheme
    }
}
{'fraction_non_alphanumeric': 0.09701492537313433, 'fraction_numerical': 0.019189765458422176, 'mean_word_length': 3.4502369668246446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5442415', 'n_tokens_mistral': 294, 'n_tokens_neox': 276, 'n_words': 76}