Customize the personalized badge effect with simple configuration.
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0"];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0")
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" labelColor:[UIColor colorWithRed: 86/255.0 green: 88/255.0 blue: 224/255.0 alpha:1.000]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", labelColor: UIColor(red: 86/255.0, green: 88/255.0, blue: 224/255.0, alpha: 1.0))
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" messageColor:[UIColor colorWithRed: 86/255.0 green: 88/255.0 blue: 224/255.0 alpha:1.000]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", messageColor: UIColor(red: 86/255.0, green: 88/255.0, blue: 224/255.0, alpha: 1.0))
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" labelBackgroundColor:[UIColor colorWithRed: 241/255.0 green: 176/255.0 blue: 101/255.0 alpha:1.000]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", labelBackgroundColor: UIColor(red: 241/255.0, green: 176/255.0, blue: 101/255.0, alpha: 1.0))
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" messageBackgroundColor:[UIColor colorWithRed: 241/255.0 green: 176/255.0 blue: 101/255.0 alpha:1.000]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", messageBackgroundColor: UIColor(red: 241/255.0, green: 176/255.0, blue: 101/255.0, alpha: 1.0))
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" labelBackgroundColor:[UIColor colorWithRed: 241/255.0 green: 176/255.0 blue: 101/255.0 alpha:1.000] messageBackgroundColor:[UIColor colorWithRed: 86/255.0 green: 88/255.0 blue: 224/255.0 alpha:1.000]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", labelBackgroundColor: UIColor(red: 241/255.0, green: 176/255.0, blue: 101/255.0, alpha: 1.0), messageBackgroundColor: UIColor(red: 88/255.0, green: 88/255.0, blue: 101/255.0, alpha: 1.0))
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsDefault];
[shields configLabel:@"CreaterOS" message:@"v1.0" labelBackgroundColor:[UIColor colorWithRed: 86/255.0 green: 88/255.0 blue: 224/255.0 alpha:1.000] messageBackgroundColor:[UIColor colorWithRed: 241/255.0 green: 176/255.0 blue: 101/255.0 alpha:1.000] labelColor:UIColor.whiteColor messageColor:UIColor.whiteColor];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsDefault)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", labelBackgroundColor: UIColor(red: 241/255.0, green: 176/255.0, blue: 101/255.0, alpha: 1.0), messageBackgroundColor: UIColor(red: 88/255.0, green: 88/255.0, blue: 101/255.0, alpha: 1.0), labelColor: .white, messageColor: .white)
shields.center = self.view.center
view.addSubview(shields)
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsLogo];
[shields configLabel:@"CreaterOS" message:@"v1.0" labelBackgroundColor:[UIColor colorWithRed: 241/255.0 green: 176/255.0 blue: 101/255.0 alpha:1.000] messageBackgroundColor:[UIColor colorWithRed: 193/255.0 green: 241/255.0 blue: 172/255.0 alpha:1.000] labelColor:[UIColor colorWithRed: 242/255.0 green: 242/255.0 blue: 246/255.0 alpha:1.000] messageColor:[UIColor colorWithRed: 242/255.0 green: 242/255.0 blue: 246/255.0 alpha:1.000] logo:[UIImage imageNamed:@"lanmei"] logoWidth:15 logoPosition:CGPointMake(10, 10)];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsLogo)
shields.cornerRadius = 20
shields.configLabel(label: "CreaterOS", message: "v1.0", labelBackgroundColor: UIColor(red: 241/255.0, green: 176/255.0, blue: 101/255.0, alpha: 1.0), messageBackgroundColor: UIColor(red: 88/255.0, green: 88/255.0, blue: 101/255.0, alpha: 1.0), labelColor: .white, messageColor: .white, logo: UIImage(named: "lanmei"), logoWidth: 25.0, logoPosition: CGPoint(x: 15, y: 15))
shields.center = self.view.center
view.addSubview(shields)
{
"schemaVersion":1,
"label":"CreaterOS",
"message":"v1.0",
"labelBackgroundColor":{
"hex":"#8174D9",
"alpha":0.7
},
"messageBackgroundColor":{
"hex":"#81EBD9",
"alpha":0.7
},
"labelColor":{
"hex":"#B82B1D",
"alpha":1
},
"messageColor":{
"hex":"#FFFFFF",
"alpha":1
},
"logoName":"lanmei",
"logoWidth":25,
"logoPosition":{
"X":17,
"Y":20
}
}
Shields *shields = [[Shields alloc] initWithFrame:CGRectMake(0, 0, 320, 40) style:ShieldsLogo];
[shields configWithJsonFilePath:[[NSBundle mainBundle] pathForResource:@"shields" ofType:@"json"]];
shields.center = self.view.center;
[self.view addSubview:shields];
let shields = Shields(frame: CGRect(x: 0, y: 0, width: 320, height: 40), style: .ShieldsLogo)
shields.cornerRadius = 20
shields.configWithJsonFilePath(jsonPath: Bundle.main.path(forResource: "shields", ofType: "json")!)
shields.center = self.view.center
view.addSubview(shields)
MIT License
If you have a feature request or bug report, please feel free to send 863713745@qq.com to upload the problem, and we will provide you with revisions and help as soon as possible. Thank you very much for your support.
If you have found the Shields security vulnerabilities and vulnerabilities that need to be modified, you should email them to 863713745@qq.com as soon as possible. thank you for your support.