Andreas Ley

Results 10 comments of Andreas Ley

Xcode 12.5, which was released today, contains a File Provider Extension target template to help getting started with macOS File Provider extensions.

The following works, but I don't know nearly enough about Realm to guess what side-effects that might introduce: https://github.com/andreasley/realm-cocoa/commit/75211315a722b6c886a9705cec80501ffc1fae67 Maybe it would even be advisable to outright disable all non-transient...

I don't know enough about Realm's internals to contribute code with a good conscience. :) Just wanted to point out a missing piece of the puzzle and provide my workaround...

There is now an official proposal for binary dependencies: https://github.com/apple/swift-evolution/blob/master/proposals/0272-swiftpm-binary-dependencies.md Review (currently running): https://forums.swift.org/t/se-0272-package-manager-binary-dependencies/30753

I use this custom Middleware to register routes for specific domains: ```swift import Vapor // Workaround to be able to specify host-constrained routes in Vapor 4 struct HostBasedRoutingMiddleware : AsyncMiddleware...

I've ran into similar issues with a large Realm database (> 5GB). Despite lots of free memory, allocation failed in various ways. The solution was to add the entitlement [Extended...

The property `transparent` is not set automatically if you create an `Image`; it defaults to `false`. Your code works if you manually set your new image's `transparent` property to `true`....

How to return `LeafData` from `[Syntax]` (only works correctly if there are no nested Leaf tags, so doesn't solve your issue): ```swift let body = try ctx.requireBody() guard case let...

The problem originates here: https://github.com/hummingbird-project/hummingbird/blob/d29b0de9a2f83d9ac76d5062372da16ccf545613/Sources/HummingbirdCore/Server/HTTP/HTTPChannelHandler.swift#L99-L105 When closing the channel with mode `.input`, the function `doShutdown()` is never called on the `NIOSSL.SSLConnection`. Setting mode to `.all` fixes this. The same may...

1. Adding the `IdleStateHelper` like in the following snippet (to still use TLS) didn't help: ```swift var app = Application( router: Router(), server: try .tls(.http1(additionalChannelHandlers: [IdleStateHandler(readTimeout: .seconds(15))]), tlsConfiguration: tlsConfiguration), configuration:...