-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSSDynamicTextView.h
More file actions
29 lines (23 loc) · 870 Bytes
/
SSDynamicTextView.h
File metadata and controls
29 lines (23 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// SSDynamicTextView.h
// SSDynamicText
//
// Created by Jonathan Hersh on 10/6/13.
// Copyright (c) 2013 Splinesoft. All rights reserved.
//
@import UIKit;
#import "SSDynamicAttributedTextSizable.h"
@interface SSDynamicTextView : UITextView <SSDynamicAttributedTextSizable>
/**
* Create a dynamic-sizing textview that will adjust its size in response to changes
* to the user's preferred text size.
*/
+ (nonnull instancetype)textViewWithFont:(nonnull NSString *)fontName
baseSize:(CGFloat)size;
/**
* Create a dynamic-sizing label using a base font descriptor.
* If `descriptor` is nil, sets font descriptor with `-ss_defaultFontName` and `-ss_defaultBaseSize` values.
* @see ss_defaultFontName, ss_defaultBaseSize.
*/
+ (nonnull instancetype)textViewWithFontDescriptor:(nullable UIFontDescriptor *)descriptor;
@end