That’s the ternary operator
Basically it’s saying “set the corner radius of the background view to 0.4 times the frame’s height if rounded, otherwise set the corner radius to 2”.
More Related Contents:
- Global Variable Not Update ( Swift ) [closed]
- Use of unresolved identifier ‘UIScreen’; did you mean ‘NSScreen’? DynamicTypes works fine on iOS, but it doesn’t on macOS
- Swift extract regex matches
- How to group by the elements of an array in Swift
- Save images in NSUserDefaults?
- In absence of preprocessor macros, is there a way to define practical scheme specific flags at project level in Xcode project
- reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling
- How to create NS_OPTIONS-style bitmask enumerations in Swift?
- How to load GIF image in Swift?
- MKMapView: Instead of Annotation Pin, a custom view
- How do I hide the status bar in a Swift iOS app?
- Extract RGB Values From UIColor
- How to reload data in a TableView from a different ViewController in Swift
- NSURLConnection sendAsynchronousRequest can’t get variable out of closure
- How to capitalize each word in a string using Swift iOS
- Why is main window of type double optional?
- Passing Image to another View Controller (Swift)
- Usage of protocols as array types and function parameters in swift
- Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler
- Decimal to Fraction conversion in Swift
- swift NSTimer in Background
- Swift – Saving highscore using NSUserDefaults
- HTML Format in UITextView
- How to remove border of the navigationBar in swift?
- Create Directory in Swift 3.0
- Setting up UIScrollView to swipe between 3 view controllers
- Swift 3 JSON NSFastEnumerationIterator has no subscript members
- How to use NSUnderlineStyle.PatternDot
- arc4random_uniform not available in Xcode 7.0 beta (7a176x) on OSX 10.10.4
- Delaying function in swift [duplicate]