The correct way to write it should be:
if name.count > 1 {
// Your code here
}
More Related Contents:
- How to display and hide table view cells in swift
- dyld: Library not loaded: @rpath/libswiftCore.dylib
- Fast and Lean PDF Viewer for iPhone / iPad / iOS – tips and hints?
- What is an “unwrapped value” in Swift?
- Fatal error: use of unimplemented initializer ‘init(coder:)’ for class
- Execute action when back bar button of UINavigationController is pressed
- How to encode a URL in Swift [duplicate]
- How do I get the color of a pixel in a UIImage with Swift?
- POST request with a simple string in body with Alamofire
- How to access own window within SwiftUI view?
- “Reading from public effective user settings” in iOS 10
- Perform background tasks when app is terminated
- Static properties in Swift
- Create PDF with multiple pages
- how to call presentViewController from within a UICollectionViewCell
- Automatically adjustable view height based on text height in SwiftUI
- Why is UICollectionViewCell’s outlet nil?
- Implement Document Picker in swift (iOS)
- Tap on a part of text of UILabel
- Calculating bearing between two CLLocation points in Swift [duplicate]
- Negative number modulo in swift
- SwiftUI – how to avoid navigation hardcoded into the view?
- Is there a swift native function to convert a number to a hex string?
- Confused about Orthographic Projection of camera in SceneKit
- The default app has not been configured yet
- SwiftUI: Translucent background for fullScreenCover
- How do you properly order data from Firebase chronologically
- ios swift: Is it possible to change the font style of a certain word in a string?
- Have a variable with multiple types in Swift
- uicollectionview remove top padding