mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:23:58 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		
							
								
								
									
										34
									
								
								Tweaks/FLEX/Core/Views/Cells/FLEXCodeFontCell.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Tweaks/FLEX/Core/Views/Cells/FLEXCodeFontCell.m
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| // | ||||
| //  FLEXCodeFontCell.m | ||||
| //  FLEX | ||||
| // | ||||
| //  Created by Tanner on 12/27/19. | ||||
| //  Copyright © 2020 FLEX Team. All rights reserved. | ||||
| // | ||||
|  | ||||
| #import "FLEXCodeFontCell.h" | ||||
| #import "UIFont+FLEX.h" | ||||
|  | ||||
| @implementation FLEXCodeFontCell | ||||
|  | ||||
| - (void)postInit { | ||||
|     [super postInit]; | ||||
|      | ||||
|     self.titleLabel.font = UIFont.flex_codeFont; | ||||
|     self.subtitleLabel.font = UIFont.flex_codeFont; | ||||
|  | ||||
|     self.titleLabel.adjustsFontSizeToFitWidth = YES; | ||||
|     self.titleLabel.minimumScaleFactor = 0.9; | ||||
|     self.subtitleLabel.adjustsFontSizeToFitWidth = YES; | ||||
|     self.subtitleLabel.minimumScaleFactor = 0.75; | ||||
|      | ||||
|     // Disable mutli-line pre iOS 11 | ||||
|     if (@available(iOS 11, *)) { | ||||
|         self.subtitleLabel.numberOfLines = 5; | ||||
|     } else { | ||||
|         self.titleLabel.numberOfLines = 1; | ||||
|         self.subtitleLabel.numberOfLines = 1; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @end | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn