https://github.com/muukii/ignorenilassignmentoperator
value =? nil // This does not insert
https://github.com/muukii/ignorenilassignmentoperator
Last synced: about 1 month ago
JSON representation
value =? nil // This does not insert
- Host: GitHub
- URL: https://github.com/muukii/ignorenilassignmentoperator
- Owner: muukii
- License: mit
- Created: 2016-10-29T13:57:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T17:20:54.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T20:32:40.584Z (3 months ago)
- Language: Swift
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IgnoreNilAssignmentOperator
[](https://travis-ci.org/muukii/IgnoreNilAssignmentOperator)
[](http://cocoapods.org/pods/IgnoreNilAssignmentOperator)
[](http://cocoapods.org/pods/IgnoreNilAssignmentOperator)
[](http://cocoapods.org/pods/IgnoreNilAssignmentOperator)
[](https://github.com/Carthage/Carthage)## Example
### Before
```swift
var value: String? = ...var source: String? = ...
if let source = source {
value = source
}
```### After
```swift
var value: String? = ...var source: String? = ...
value =? source
```## Requirements
Swift 3.0
## Installation
**For iOS 8+ projects with Carthage:**
github "muukii/IgnoreNilAssignmentOperator"
## Author
muukii, [email protected]
## License
IgnoreNilAssignmentOperator is available under the MIT license. See the LICENSE file for more info.