Var p As Picture = Picture.SystemImage("moon",50) These two lines of code will draw the “moon” glyph in the Canvas1 added to the by default Screen1 screen of the project. Var pencilMinus As New MobileToolbarButton(,"",Picture.SystemImage(".badge.minus",50)) Var PencilTip As New MobileToolbarButton(,"", Picture.SystemImage("",50)) Var PencilAdd As New MobileToolbarButton(,"",Picture.SystemImage(".us",50)) ![]() The following snippet in the Opening event handler of the default Screen will add three buttons to the Toolbar using the “”, “.us” and “.badge.minus” symbols (or font glyphs). Once you have the name of the symbols you want to use, it is time to use them in your Xojo code. For example, some of these are available from iOS 13.0 in advance, while others are only available if the iOS device is running iOS 14.0 or later. ![]() You should start downloading and installing on your Mac the SF Symbols utility in order to browse, get info and select the name of the symbols you want to use in your layouts. This feature is based on the symbols provided by the SF Symbols font installed in most of the latest releases of iOS and macOS. With Xojo 2020r2, we’ve given you a really easy way to provide hi-resolution and scalable symbols for use as images in Canvas drawings or as Toolbar Icons in your iOS Projects.įor this you only need to use the SystemImage shared method from the Picture class, passing along the name of the Symbol you want to use, its size, weight (think about it like the font weight) and, optionally, a ColorGroup to tint the symbol, plus the fallback picture you want to use in case that symbol is not available under the iOS version of the device running your app.
0 Comments
Leave a Reply. |