Last active
June 24, 2023 12:29
-
-
Save tolo/d3d9afbca5578f1fccaa to your computer and use it in GitHub Desktop.
ISSPlayground demo view definition file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Demo InterfaCSS view definition file. | |
--> | |
<view id="demoRootView"> | |
<view id="demoHeaderView" class="headerView"> | |
<label id="demoHeaderLabel"/> | |
</view> | |
<label id="demoLabel1" class="labelStyle1"/> | |
<label id="demoLabel2" class="labelStyle2"/> | |
<label id="demoLabel3" class="labelStyle3"/> | |
<button id="demoButton1" class="buttonStyle1 roundedCorners"/> <!-- Multiple style classes, separated by whitespace, can be set --> | |
<button id="demoButton2" class="buttonStyle2 roundedCorners"/> | |
<button id="demoButton3" class="buttonStyle3 roundedCorners"/> | |
<activityIndicator id="demoSpinner"/> | |
<slider id="demoSlider"/> | |
<switch id="demoSwitch"/> | |
</view> | |
<!-- | |
View definition file quick reference: | |
Tags: | |
* collectionView - UICollectionView | |
* imageView - UIImageView | |
* scrollView - UIScrollView | |
* tableView - UITableView | |
* view - UIView | |
* webView - UIWebView | |
* activityIndicator - UIActivityIndicatorView | |
* button - UIButton | |
* collectionViewCell - UICollectionViewCell | |
* label - UILabel | |
* progressView - UIProgressView | |
* slider - UISlider | |
* stepper - UIStepper | |
* switch - UISwitch | |
* textfield - UITextField | |
* textview - UITextView | |
* tableviewCell - UITableViewCell | |
Properties: | |
* id - a string used to (uniquely) identify the element. This can be used as an element id selector in stylesheets (which is useful when for instance using ISSLayout). | |
* class - style class (multiple classes are separated by whitespace) | |
* property - the name of a property in the closest parent element, or the specified fileOwner, to which a reference to the created element will be assigned. | |
* layout - an ISSLayout definition | |
* prototype - specifies the name of a prototype. When this attribute is specified, the element will not be directly added to the view hierarchy - instead, only a prototype will be registered. | |
* prototypeScope - parent (meaning that the prototype only will be available within/below the parent element) or global | |
* addSubview - add as subview (YES/NO, default is YES) | |
* implementation - custom implementation class name - overrides the default class name corresponding to the tag name | |
* layoutClass - UICollectionViewLayout class name | |
For a complete description of the view definition file format, check here: https://github.com/tolo/InterfaCSS/wiki/View-Definition-File-Reference | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment