This file contains hidden or 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
| // NOTE: Nil values implicitly or explicitly passed as arguments to padding() are ignored. | |
| // This differs from the built-in SwiftUI version: | |
| // | |
| // view.padding(trailing: nil) // has no effect | |
| // view.padding(.trailing, nil) // resets to default | |
| // | |
| // See below for a version that matches the built-in behavior. | |
| extension View { | |
| func padding(horizontal: CGFloat? = nil, vertical: CGFloat? = nil, |
This file contains hidden or 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
| a: AM/PM | |
| A: 0~86399999 (Millisecond of Day) | |
| c/cc: 1~7 (Day of Week) | |
| ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat | |
| cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday | |
| d: 1~31 (0 padded Day of Month) | |
| D: 1~366 (0 padded Day of Year) | |