You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the get and set methods of the variables, you cannot set a variable in it's "set" method or return a variable in its own "get" method, or else you get recursion. For variables such as style, you need to do something like
private var _style: RZVibrantButtonStyle!
public var style:RZVibrantButtonStyle{
get {
if self._style == nil {
self._style = RZVibrantButtonStyle.Invert
}
return self._style
}
set{
self._style = newValue
...
The text was updated successfully, but these errors were encountered:
For the get and set methods of the variables, you cannot set a variable in it's "set" method or return a variable in its own "get" method, or else you get recursion. For variables such as style, you need to do something like
private var _style: RZVibrantButtonStyle!
public var style:RZVibrantButtonStyle{
get {
if self._style == nil {
self._style = RZVibrantButtonStyle.Invert
}
return self._style
}
set{
self._style = newValue
...
The text was updated successfully, but these errors were encountered: