naldikt / NXSS

NX Style Sheet - customize your UI using CSS-like files & conventions.
1 stars 0 forks source link

Crash when parsing CGFloat #17

Closed kotzzi closed 8 years ago

kotzzi commented 8 years ago

Device: iPhone 5 SO: iOS 9.2.1 (13D15)

When loading Skyway project on this device (trying to get Home screen) this crash appears:

Skyway[915:542792] UIView.applyNXSS failed with error: [NXSS] Parse Error: String.toCGFloat() unable to parse 
Statement: Optional("11.5")
Line: nil
assertion failed: UIView.applyNXSS failed with error:
[NXSS] Parse Error: String.toCGFloat() unable to parse
Statement: Optional("11.5")
Line: nil
: file /Users/kotzi/Projects/iOS-skyway/NXSS/UI/UIView+NXSS.swift, line 34

This is the styling class:

.home-button-coin {
    background-color:$color-badge;
    corner-radius: circle;
    font-family: $font-1-regular;
    color: black;
    font-size: 11.5;
}
naldikt commented 8 years ago

https://github.com/naldikt/NXSS/pull/18