This repository was archived by the owner on Jun 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
AMXFontAutoScale.xcodeproj Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
Pod ::Spec . new do |s |
3
3
4
4
s . name = "AMXFontAutoScale"
5
- s . version = "1.0.0 "
5
+ s . version = "1.0.1 "
6
6
s . summary = "Scale the font for UILabel and UITextView proportionally across all the screen sizes."
7
7
8
8
s . description = <<-DESC
@@ -15,11 +15,11 @@ Pod::Spec.new do |s|
15
15
s . authors = { "Alex Maimescu" => "maimescu.alex@gmail.com" }
16
16
17
17
s . platform = :ios
18
- s . ios . deployment_target = '9 .0'
18
+ s . ios . deployment_target = '8 .0'
19
19
20
20
s . pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }
21
21
22
22
s . source = { :git => "https://github.com/alexmx/AMXFontAutoScale.git" , :tag => "v#{ s . version } " }
23
23
s . source_files = "AMXFontAutoScale/**/*.{h,m,swift}"
24
24
25
- end
25
+ end
Original file line number Diff line number Diff line change 366
366
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
367
367
GCC_WARN_UNUSED_FUNCTION = YES;
368
368
GCC_WARN_UNUSED_VARIABLE = YES;
369
- IPHONEOS_DEPLOYMENT_TARGET = 9 .0;
369
+ IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
370
370
MTL_ENABLE_DEBUG_INFO = YES;
371
371
ONLY_ACTIVE_ARCH = YES;
372
372
SDKROOT = iphoneos;
411
411
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
412
412
GCC_WARN_UNUSED_FUNCTION = YES;
413
413
GCC_WARN_UNUSED_VARIABLE = YES;
414
- IPHONEOS_DEPLOYMENT_TARGET = 9 .0;
414
+ IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
415
415
MTL_ENABLE_DEBUG_INFO = NO;
416
416
SDKROOT = iphoneos;
417
417
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ - (instancetype)amx_scaleForReferenceScreenSize:(AMXScreenSize)screenSize
16
16
UIFont *finalFont = self;
17
17
18
18
if (multiplier != 1 ) {
19
- finalFont = [self fontWithSize : (self .pointSize * multiplier)];
19
+ finalFont = [UIFont fontWithDescriptor: self .fontDescriptor size : (self .pointSize * multiplier)];
20
20
}
21
21
22
22
return finalFont;
You can’t perform that action at this time.
0 commit comments