mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-15 07:19:57 +00:00
30 lines
1.1 KiB
Objective-C
30 lines
1.1 KiB
Objective-C
/*
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <AsyncDisplayKit/ASEnvironment.h>
|
|
|
|
@interface ASTraitCollection : NSObject
|
|
|
|
@property (nonatomic, assign) BOOL isMutable;
|
|
|
|
@property (nonatomic, assign) CGFloat displayScale;
|
|
@property (nonatomic, assign) UIUserInterfaceSizeClass horizontalSizeClass;
|
|
@property (nonatomic, assign) UIUserInterfaceIdiom userInterfaceIdiom;
|
|
@property (nonatomic, assign) UIUserInterfaceSizeClass verticalSizeClass;
|
|
@property (nonatomic, assign) UIForceTouchCapability forceTouchCapability;
|
|
|
|
+ (ASTraitCollection *)displayTraitsWithASEnvironmentTraitCollection:(ASEnvironmentTraitCollection)traits;
|
|
+ (ASTraitCollection *)displayTraitsWithUITraitCollection:(UITraitCollection *)traitCollection;
|
|
|
|
- (ASEnvironmentTraitCollection)environmentTraitCollection;
|
|
|
|
@end
|