在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tichise/MaterialDesignSymbol开源软件地址(OpenSource Url):https://github.com/tichise/MaterialDesignSymbol开源编程语言(OpenSource Language):Swift 98.9%开源软件介绍(OpenSource Introduction):MaterialDesignSymbolIcon font library for Swift. Currently supports GoogleMaterialDesignIcons. ObjectiveC version is here. ImageLicencefont used in this project Author of the font used in this project: Google Link: https://github.com/google/material-design-icons Creative Commons Attribution 4.0 International (CC BY 4.0) Examples SwiftUIKit / UIImageimport MaterialDesignSymbol
let symbol = MaterialDesignSymbol(text:MaterialDesignIcon.list48px, size:25)
symbol.addAttribute(attributeName: NSAttributedStringKey.foregroundColor, value: UIColor.red)
let iconImage = symbol.image(size: CGSize(width:25, height:25)) or
UIKit / UILabelimport MaterialDesignSymbol
titleLabel.font = MaterialDesignFont.fontOfSize(20)
titleLabel.text = MaterialDesignIcon.list48px Examples ObjectiveCSupport for Objective C has ended with version 2.3.2. If you want to call from Objective C, please use ver 2.3.2 or earlier. Image@import MaterialDesignSymbol;
MaterialDesignSymbol *symbol = [[MaterialDesignSymbol alloc] initWithText:[MaterialDesignIcon home48px] size:30];
[symbol addAttributeWithAttributeName:NSForegroundColorAttributeName value:[UIColor blackColor]];
sampleImageView.image = [symbol imageWithSize:CGSizeMake(30, 30)]; Text@import MaterialDesignSymbol;
sampleLabel.font = [MaterialDesignFont fontOfSize:20];
sampleLabel.text = [MaterialDesignIcon clear48px]; Installation (CocoaPods)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论