This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To use it add | |
// val viewLifecycleOwner: ControllerViewLifecycleOwner<BaseViewController> | |
// by lazy { ControllerViewLifecycleOwner(this) } | |
// in you BaseViewController | |
class ControllerViewLifecycleOwner<T>(lifecycleController: T) : | |
LifecycleOwner where T : LifecycleOwner, T : Controller { | |
private val controllerRef = WeakReference(lifecycleController) | |
private var lifecycleRegistry: LifecycleRegistry? = null | |
private set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSString (MCHTMLToPlainTextConversion) | |
-(NSString *)stringByConvertingHTMLToPlainText; | |
@end |