humblehacker

@humblehacker@mastodon.online

Long time iOS and Android developer

This profile is from a federated server and may be incomplete. Browse more on the original instance.

humblehacker, to SwiftUI
dale_price, to swift
@dale_price@mastodon.online avatar

#iOSDev What's the proper way of handling Required Reason APIs when the API in question is only referenced by a part of a #swift package dependency that I'm not ever calling?

None of the usage reasons fit – there's no way to declare “this is only linked because a dependency references it, but I pinky promise my app doesn’t actually call it”

humblehacker,

@dale_price I'd work with the package maintainer to make that part of the package optional. In the short term, I'd consider forking, removing the problematic code, and using my fork until the changes can be upstreamed.

masukomi, to hardware
@masukomi@connectified.com avatar

Question for the geeks.
Every night i take my mac to the living room, bring it back, and plug it in to power with the lid closed. Each morning I plug it into the monitor and open the lid.

Why is it that all of my devices (mouse & airpods) seem to be reconnected just fine, but my split keyboard, & the split keyboard refuse to. I have to restart bluetooth on the computer for them to be connected.

???

humblehacker,

@masukomi yep, very annoying. I think it's a bug in ZMK? I have a shortcut on my dock to toggle Bluetooth just because of this.

humblehacker, to macos

I noticed some inconsistency in text selection behavior. If I have some text selected and I shift-click before the selection, the selection start point moves to the clicked point. But in some places, the end point also moves to the previous start point.

Try it! Shift-click before some selected text …

  • Safari address bar: extends selection
  • Settings search field: replaces selection

Anyone know why?

I thought maybe vs , but after many experiments I don't think so.

humblehacker,

A little code goes a long way. Just popped up a SwiftUI view with a TextField and a TextEditor, and sure enough, that's the difference! TextField (NSTextField) has the selection replacement behavior, while TextEditor (NSTextView) has the selection extending behavior.
@bgannin

humblehacker,

@krzyzanowskim @bgannin Do you mean NSTextView.isFieldEditor? AFAICT that doesn't change the selection style.

Incidentally, I checked out your STTextView, and it has the "replace" selection style of NSTextField rather than the "extend" style of NSTextView. Was this intentional?

rhysmorgan, to random
@rhysmorgan@mastodon.social avatar

Is UIImagePickerController the only way to get an iOS native camera control? #iosdev #swiftlang

humblehacker,

@rhysmorgan you can use AVFoundation to build your own. https://developer.apple.com/documentation/avfoundation

devontechnologies, to Wyze
@devontechnologies@devontechnologies.com avatar

Tip of the day: #DEVONthink is a good place to build a digital book collection. Users of the Pro or Server edition of #DEVONthink can add custom metadata to their books from the millions of books available in Google Books with a script. Here is, how to do that. #academics #automation #paperless #pkm #productivity #research #tipoftheday #workflow https://www.devontechnologies.com/blog/20230328-google-books-metadata

humblehacker,

@devontechnologies keeping ebooks in DevonThink is great, but when is DevonThink To Go going to remember my reading position?

humblehacker,
humblehacker, to swift

Ever wish you could see the history for just a single #Swift function in #git? You can use:

git log -L :function:file

But git doesn’t know how to find Swift functions by default. You can help it by following these instructions to add “Better diff hunk headers with Swift”: https://juripakaste.fi/swift-git-attributes/

Then the following example would show you all the changes to the login function in APIClient.swift:

git log -L :login:APIClient.swift

erictopol, to random
@erictopol@mstdn.social avatar

In people with severe Covid, fungus in the gut (such as Candida albicans) can induce pathologic, chronic inflammation consistent with Long Covid

https://www.nature.com/articles/s41590-023-01648-1

humblehacker,
humblehacker, to neovim

This looks like a good how-to on setting up code completion for #Xcode projects in editors like #neovim and #vscode. My search for the best post #AppCode solution continues ... https://wojciechkulik.pl/ios/how-to-develop-ios-and-macos-apps-in-other-ides-like-neovim-or-vs-code

krzyzanowskim, to iOS
@krzyzanowskim@mastodon.social avatar

deleted_by_author

  • Loading...
  • humblehacker, (edited )

    @krzyzanowskim Manual download here:
    https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg

    Install from command line:

    xcrun simctl runtime add ~/Downloads/iOS_17_Simulator_Runtime.dmg

    (I had to manually delete all iOS 17 runtimes from Settings → Platforms first)

    Relevant Apple Dev forum thread: https://developer.apple.com/forums/thread/737648

    humblehacker, to macos

    I made a thing! #MacHelix is a native #macOS app wrapping #HelixEditor. It uses #SwiftTerm to embed a terminal and my fork of helix with a rudimentary IPC scheme for bidirectional communication between it and the mac app.

    It's really prototype quality and may never become a real thing, but I’m having a good time learning new things (like #Rust).

    #SwiftDev #macOSDev

    humblehacker, to rust

    Learning a bit of so I can tinker with source. Coming from a long history with where we don't really have to consider ownership, Rust is reminding me of my former long history with C++ (), where ownership was very important, but something you had to work at to ensure correctness. Rust seems to enforce safe ownership.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines