mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[MTMaterialView]] is a [[UIView]] subclass in [[MaterialKit.framework]]. | [https://headers.cynder.me/index.php?sdk=ios/16.0&fw=/PrivateFrameworks/MaterialKit.framework&file=Headers%2FMTMaterialView.h [[MTMaterialView]]] is a [[UIView]] subclass in [[MaterialKit.framework]]. | ||
==Creating an instance== | ==Creating an instance== |
Latest revision as of 15:11, 24 November 2022
MTMaterialView is a UIView subclass in MaterialKit.framework.
Creating an instance
The simplest way to create an instance of this is class is using the following method:
+(id)materialViewWithRecipe:(NSInteger)arg0 configuration:(NSInteger)arg1 ;
In Context:
MTMaterialView *materialVIew = [objc_getClass("MTMaterialView") materialViewWithRecipe:1 configuration:1];
Notes
Options for recipe:
- = folder[Dark/Light] (homescreen folders)
- = platter (Notifications / Widgets)
- = ??? -- can be tested
- = ??? -- can be tested
- = modules (CCModules)
The meaning of configuration is unknown.
Important properties
Weighting
@property (nonatomic) CGFloat weighting;
weighting is basically the amount of blur/texture on the view, ranging from 0.0 - 1.0.
Other info
The blur and colouring are internally CAFilters on the layer of the view.
|