-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
style :clickme,
origin: [10, 10], extends: :rounded_button,
title: "Click Me!"
style :rounded_button,
width: 300,
height: 50,
#font: "Helvetica".uifont(20),
#titleColor: "#FFFFFF".uicolor,
backgroundColor: UIColor.tealColor,
layer: {
#shadowColor: "#c6c6c6".uicolor,
shadowOpacity: 0.5,
shadowOffset: CGSizeMake(2.0, 4.0),
shadowRadius: 3.0,
masksToBounds: false,
cornerRadius: 8
},
clipsToBounds: true- if i set font on, the shadow will disappear ... why?
- how to set titleColor、shadowPath accurately?something like the code in https://github.com/bennyguitar/Colours-for-iOS/blob/master/ColoursDemo/ColoursDemo/ViewController.m
thank you :)
Metadata
Metadata
Assignees
Labels
No labels
