Elektrine lite

← Feed

Daniel Fortes

dfortes@mastodon.social

<p><a href="http://github.com/dmbfm/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">http://</span><span class="">github.com/dmbfm/</span><span class="invisible"></span></a></p>

Posts

  • Post #1091656

    Its so trivial to get key modifiers (command, option, etc) in Gesture Recognizers both in UIKit and AppKit that is puzzling to me why Apple didn&amp;#39;t include them in SwiftUI&amp;#39;s `DragGesture`. It&amp;#39;s something you can do in about 10 minutes by creating a custom gesture recognizer representable. #swiftui #apple #iOS #macos #indiedev

  • Post #974909

    TIL a #swiftui `.inspector` can simply crash your program when you try to resize it (on macOS at least). Not to mention that it can easily mess up the layout of views that are inside it.

  • Post #634952

    Another day another hacky solution to go around SwiftUI limitations on macOS. I wanted to be able to use the &amp;quot;Select All&amp;quot; item from the app menu without having to replace the built items that SwiftUI provides. I was pretty sure that implementing a `selectAll` method in my AppDelegate *should* work but it just would not happen. Turns out you must also make the app delegate conform to `NSStandardKeyBindingResponding` *which doesn&amp;#39;t even have this method in it!!* #sw...