This tutorial examines the use of user code to extend the capabilities of templates in Swift.
Adding simple ruby scripts to understand the principles behind its uses. Provide an overview of the Ruby Basics topic guide. User Code tab first look L1.
Chapter 1: Forcing the case of text strings to either upper or lowercase
Chapter 2: Resizing a word on a text string
Chapter 3: Resizing a word on a text string and forcing upper case
Chapter 4: Concatenating two text strings with different fonts
Examples:
# Chapter 1
_textUpper = _textUpper.upcase
_textLower = _textLower.downcase
#Chapter 2
_text.gsub!(/am/,"<sv 30.0>am</sv>")
#Chapter 3
_text.gsub!(/am/,"<sv 30.0>AM</sv>")
_text.gsub!(/AM/,"<sv 30.0>AM</sv>")
_text.gsub!(/pm/,"<sv 30.0>PM</sv>")
_text.gsub!(/PM/,"<sv 30.0>PM</sv>")
#Chapter 4
_userName = "<f FrutigerNext_LT_MediumCn_Bold>" + _userName + "</f> " + _userID + "<f FrutigerNext_LT_MediumCn_Regular>"
30 minutes
All new users