profile
viewpoint
Marco Cancellieri Marcocanc Trade Republic Bank GmbH Berlin, Germany https://marco.sh/ Co-Founder @traderepublic

Marcocanc/NELineLabel 36

🖋 A UILabel subclass that adds a decorative line / separator

Marcocanc/mi-lamp-re 34

💡 Reverse Engineering Notes for the Yeelight Bedside Lamp (BLE)

Marcocanc/node-od11 11

🔊 Node library to interface with the Teenage Engineering OD-11

Marcocanc/Orthoplay 8

🔊Swift Framework to interface with the Teenage Engineering OD-11 Cloud Speaker [🛠Work in Progress]

Marcocanc/orthoplay-re 6

🔊 Reversing Orthoplay Websocket communication (Teenage Engineering OD-11)

Cosmo/bashtv 5

Hackathon Project — Watch public television in your terminal. No browser needed.

Marcocanc/bdemu-switcher 2

🎮 BDEMU default slot switcher (OS X/Linux) written in Qt

Marcocanc/node-eyefi 1

node-eyefi modified to work with newer eyefi firmwares

Marcocanc/ahoyrtc-ios 0

AhoyRTC SDK for iOS (including the WebRTC framework)

startedsecuring/IOSSecuritySuite

started time in 44 minutes

push eventReactiveCocoa/ReactiveSwift

Niclas Kristek

commit sha 11a7d832c5da0530cf7e6fca6baab4540b5ded07

Add ExpressibleByNilLiteral constraint on OptionalProtocol Optional already implements this and this makes it possible to just write nil instead of .init(reconstructing: nil)

view details

Niclas Kristek

commit sha c29c6b5f1e74c62c4e9927a8b2fc395cb0a72f97

Fix typo in documentation comment

view details

Niclas Kristek

commit sha b346a977c836bcaaf9f483e5147a10ab5d7277c1

Add changelog entry

view details

Marco Cancellieri

commit sha 7140b2e60bef72e5336455e5bf892c15a37943ce

Merge branch 'master' into optionalprotocol_expressiblebynilliteral

view details

Marco Cancellieri

commit sha c9b8fa54d89964cf2dc962d493cc5cbff07bf98c

Merge pull request #805 from nkristek/optionalprotocol_expressiblebynilliteral

view details

push time in 4 days

PR merged ReactiveCocoa/ReactiveSwift

Add ExpressibleByNilLiteral constraint to OptionalProtocol

Hi, this is just a very small contribution regarding the OptionalProtocol and adds the ExpressibleByNilLiteral constraint to it. It is already implemented by Optional<Wrapped> and requires no further change. This makes it possible to initialise a value of type OptionalProtocol with nil instead of having to write .init(reconstructing: nil).

There also was a small typo in the documentation of the associatedType which I fixed as well.

Example

extension Property where Value: OptionalProtocol {
    func mapNil() -> Property<Value> {
        // now possible to write
        return Property(value: nil)
        // instead of
        return Property(value: .init(reconstructing: nil))
    }
}

Extending OptionalProtocol with the implementation of ExpressibleByNilLiteral is not possible due to a language constraint:

/// error: Extension of protocol 'OptionalProtocol' cannot have an inheritance clause
extension OptionalProtocol: ExpressibleByNilLiteral {
    
}

For now, as a workaround, one needs to append ExpressibleByNilLiteral to the generic constraint like so:

extension Property where Value: OptionalProtocol & ExpressibleByNilLiteral {
    func mapNil() -> Property<Value> {
        return Property(value: nil)
    }
}

Checklist

  • [x] Updated CHANGELOG.md.
+3 -2

0 comment

2 changed files

nkristek

pr closed time in 4 days

startedsamdmarshall/nslocalizer

started time in 7 days

push eventnkristek/ReactiveSwift

hirotaka

commit sha f3545c01aba6c083cd9ded16f92e16aa809c6cce

Fix caption `Combine` to `ReactiveSwift`

view details

Rui Peres

commit sha 06f63476c72dec63ec091202b739aa42831162cc

Merge pull request #804 from hirotakan/fix-rx-cheatsheet Fix caption `Combine` to `ReactiveSwift`

view details

Marco Cancellieri

commit sha 7140b2e60bef72e5336455e5bf892c15a37943ce

Merge branch 'master' into optionalprotocol_expressiblebynilliteral

view details

push time in 8 days

issue closedahoyconference/ahoyrtc-ios

demo.ahoyrtc.com SSL certificate expired

The SSL certificate for the demo.ahoyrtc.com domain has expired. Since that is where the binary framework is hosted, we currently cannot fetch the SDK.

closed time in 10 days

Marcocanc

issue commentahoyconference/ahoyrtc-ios

demo.ahoyrtc.com SSL certificate expired

Certificate has been renewed..

Marcocanc

comment created time in 10 days

issue closedReactiveCocoa/ReactiveSwift

I need help.bro

image

I don't konw what happen.

closed time in 13 days

wdq123550

issue commentReactiveCocoa/ReactiveSwift

I need help.bro

Please provide more context so we can actually help you.

wdq123550

comment created time in 13 days

issue openedahoyconference/ahoyrtc-ios

demo.ahoyrtc.com SSL certificate expired

The SSL certificate for the demo.ahoyrtc.com domain has expired. Since that is where the binary framework is hosted, we currently cannot fetch the SDK.

created time in 18 days

PullRequestReviewEvent

startedpointfreeco/swift-snapshot-testing

started time in 22 days

startedmlostekk/Stadia_iOS

started time in 23 days

startedapple/swift-atomics

started time in 24 days

delete branch Marcocanc/PhoneNumberKit

delete branch : lower-deployment-target

delete time in a month

create barnchMarcocanc/PhoneNumberKit

branch : lower-deployment-target

created branch time in a month

fork Marcocanc/PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.

fork in a month

issue openedmarmelroy/PhoneNumberKit

Minimum Deployment Target set to iOS 12

Hi is there any reason why the deployment target has been raised to iOS 12? iOS 11 is still very popular and I couldn't find any code change that would require the minimum deployment target to be raised to 12.

created time in a month

issue commentCarthage/Carthage

Build failed, logs with "** BUILD SUCCEEDED **"

Having the same issue!

skywinder

comment created time in a month

startedAdyen/adyen-ios

started time in 2 months

push eventMarcocanc/marcocanc-recipes

Marco Cancellieri

commit sha fe636fb160e624e1b9578a68da382f2956c54544

Set Category to VPN

view details

Marco Cancellieri

commit sha ea3074edd0845c33e623143b354c1833ebf61a6b

Add Sipgate Softphone

view details

push time in 2 months

issue closedahoyconference/ahoyrtc-ios

Bitcode Support on iOS

Bitcode is still not supported on iOS, therefore requiring the entire project using this SDK to disable bitcode support.

closed time in 3 months

Marcocanc
more