#swift
12 entries · All tags
-
Best thing about the #Swift syntax has to be the smiley faces that are spread around the documentation. :)
https://developer.apple.com/documentation/foundation/expression/4395589-init?language=swift
-
Is there no way in UIKit to do a custom animation from the preview of a context menu to a new view controller triggered from one of the menu actions?
I am stuck at getting the frame of the preview's view. The previewViewController property of the UIContextMenuInteractionAnimating is always nil. I can hang onto it manually, but it's not in the view hierarchy nor does it have a window, so I can't get the frame that way either.
-
It absolutely blows my mind that I can use Safari to live debug the JavaScript code running inside a WKWebView in my app – including breakpoints and whatnot. 🤯
So so soooo many kudos to the folks who worked on this!
-
Really cool how widgets demonstrate the flexibility of @maparoni in such a pretty way:
- You can point it at arbitrary APIs by describing how to extract location information from JSON/XML APIs.
- Use formulas to filter/sort/style the locations.
- The widget then draws the map using an appropriate projection.(Years of working on this in my spare time… 🤪)
Many, many thanks to @nicklockwood for his brilliant and super fast Expression library: https://github.com/nicklockwood/Expression
Many, many thanks also to @simonbs for his excellent Runestone library: https://github.com/simonbs/Runestone
If anyone's curious about the map projections, I've open sourced the component for drawing them in #Swift: https://github.com/maparoni/GeoProjector
-
I wonder if anyone else has a single repo with a mix of these languages.
The main web app is written in #Elm, with an #Elixir / Phoenix wrapper for additional pages, and the main logic is provided by an AWS Lambda written in #Swift (sharing the same code with the iOS/macOS app). Was a fun and rewarding challenge building this. Elixir will likely grow and take a bite out of Elm.
-
Is there a #Swift implementation of #ActivityPub around yet? Would be keen to play around with that in a project I’m working on that’s using server-side Swift (so far using an AWS Lambda but will likely end up switching to #Vapor).
-
Hit a really weird bug with the light-weight multi-selection on iPad:
Long tap one item with finger A to start dragging: fine. Tap another with finger B: fine, gets added to my stack of dragged items. Tap a third with finger B: 💥 Triggers primary action while the other two remain in dragging state. What the... Huh? Why?
Works fine in another app though. And in the app where it doesn't work, it works fine when using my Magic Keyboard and holding command and tapping all the items.
Now to comment out random blocks of code to figure out what's interfering here...
Got it! There was another gesture recogniser and its
shouldRequireFailureOfdelegate method was only getting called on the first two taps, but not the last one. Seems like a UIKit bug, but I'll work around it. -
Hello Fediverse,
I am a software engineer from Sydney 🇦🇺 working on backend systems as well as iOS and macOS apps. I like working with #swift, including server-side, and am dabbling occasionally with #elm.
Away from my computer, I enjoy family time, like to get around on two wheels, and play in the sand 🏐.
-
Tech Note: Using CoreData in a SPM executable
Suppose you have a Swift library which uses CoreData and you’d like to use that in a command line tool for something under your control, such as running it on CI or distributing it to colleagues. You could go the... more…
-
Tech Note: Vapor: Loading resources
When you’re creating a Vapor app, you might at some stage want to load some resources that you process in your code, e.g., some static data in JSON format that you want to augment. I couldn’t find documentation for it... more…
-
Tech Note: Vapor: Simple automatic deployment using Docker and GitLab CI
This is a little guide for how to deploy a non-essential API built in Vapor using Docker and GitLab CI on a Linux server. This guide shows how to prepare the project for deployment using Docker, having GitLab CI package... more…





