@JTostitos@techhub.social
@JTostitos@techhub.social avatar

JTostitos

@JTostitos@techhub.social

Swift Developer. Creator of Snippets Studio & SHOUT - Text Cases

Creator of open source project Spectra. A Prime Video client for
Apple Vision Pro.

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

davidbures, to swift
@davidbures@mstdn.social avatar

Earlier today, I shared the first prototype of starting and stopping services in Cork.

I've made some adjustments to it, including polishing up the progress indicator, and I think it looks pretty alright.

What do you think?

(@troz here's that 2nd part 😉)

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

Video of new Homebrew service starting workflow

JTostitos,
@JTostitos@techhub.social avatar

@davidbures @troz neat feature! I would suggest having a single button which changes its title based on whether you are starting or stopping the service. Also instead of reiterating the name of the service, just put Start Service and Stop Service. For the loading indicator, maybe something found in ButtonKit would be more streamlined. https://github.com/Dean151/ButtonKit

nileane, to random
@nileane@nileane.fr avatar

With Apple's support for digital IDs still nowhere to be seen outside of the US, I've taken a look at France's digital ID app on the iPhone, which was made publicly available earlier this year.

The app is a strange, frustrating mix of physical and digital that says a lot about the issues that inevitably get raised when a state wants to take their IDs digital without Apple's help.

Check out the story on @macstories: https://www.macstories.net/stories/hands-on-with-frances-digital-id-app-on-the-iphone-not-as-digital-as-digital-can-be/

JTostitos,
@JTostitos@techhub.social avatar

@nileane @macstories and even with Apple’s help in the US, there are only 4 states that have actually added support for it!!!

matt1corey, to iOS
@matt1corey@iosdev.space avatar

Opening Xcode lately (at least the last few months) has been taking around 30+ seconds before it even shows me the screen that lists my projects. This is on an M1 Pro MacBook that otherwise is still super fast. Anyone else seeing this?

JTostitos,
@JTostitos@techhub.social avatar

@matt1corey your Xcode lists your recent projects? Must be nice 😂

swiftly, to swift

Can anyone point me to any resources they recommend on building Widgets for macOS which pay particular attention to dynamic configuration (selecting user created values from the main app) and interactivity?

JTostitos,
@JTostitos@techhub.social avatar

@swiftly some of these examples may be of use to you: https://github.com/pawello2222/WidgetExamples#deeplink-widget

danielsaidi, to SwiftUI
@danielsaidi@mastodon.social avatar

It's interesting to see how different various open-source projects resonate with the community. My BadgeIcon library is a small lib with a bunch of scalable icons like the ones in System Settings. I personally love it, but it only has 28 stars 🧐
https://github.com/danielsaidi/BadgeIcon

JTostitos,
@JTostitos@techhub.social avatar

@danielsaidi I’m actually planning to use it in an upcoming update. Saved me a bunch of repetitive code I was using. It is a pretty neat little package

JTostitos,
@JTostitos@techhub.social avatar

@danielsaidi Np! I do have one suggestion. It would be awesome if I could rotate the SFSymbol I use. Had to make my bug report icon vertical instead of angled. Not a huge deal but would be a nice enhancement to the package.

JTostitos,
@JTostitos@techhub.social avatar

@danielsaidi Thanks for the update! 🎉

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Is any app actually using the animated SF Symbols support added last year? I was excited for more of the UI to do that by default, but I haven’t seen it anywhere

JTostitos,
@JTostitos@techhub.social avatar

@stroughtonsmith I use it in the settings view in Snippets Studio when a user adjusts a setting. But other than that I haven’t found a use for it in my app.

JTostitos, to random
@JTostitos@techhub.social avatar

Since when were these warnings a thing? The code that these warnings are popping up on hasn’t changed in forever…

Did this come along with the new-ish Concurrency changes?

JTostitos,
@JTostitos@techhub.social avatar

@mattiem and it was odd it was appearing on a standard SwiftUI Environment property.

uliwitness, to SwiftUI
@uliwitness@chaos.social avatar

Hey, is there any way to add a range check to a SwiftUI TextField?

I have an

struct MyView: View {
@ State var intValue: UInt16

var body: some View {
TextField("UInt16”, value: $intValue, format: .number)
}
}

and if I enter “-1” or “65537” into the text field, it calls fatalError() trying to convert the user-entered text into a UInt16, and I'd rather it just beep than crash the app on invalid user input.

JTostitos,
@JTostitos@techhub.social avatar
JTostitos,
@JTostitos@techhub.social avatar

@uliwitness likely that’s a bug with UInt in text fields. I’ve never used that, just Int or Int16, etc.

The answered question on the SO post shows how to use it in the text field. I’d recommend going with Int over UInt.

simonbs, to random
@simonbs@mastodon.social avatar

I had a tab open for just a couple of minutes, was reading its contents, and then navigated away—only for Safari to decide not to render it anymore.

Lately, my experience with Safari has been so unstable that it's become unusable, especially considering how crucial browsing is to my day-to-day activities.

JTostitos,
@JTostitos@techhub.social avatar

@simonbs @pawel Arc is awesome! And what’s even cooler is that Apple made their iCloud Passwords extension on the Chrome Store work on macOS! So you can still autofill passwords and I think 2FA codes as well.

JTostitos, to swift
@JTostitos@techhub.social avatar

Condensing some repeated code down into reusable components feels really good! Each individual component that makes up a snippet is shared across the snippets list AND the code viewer!

JTostitos, to random
@JTostitos@techhub.social avatar
JTostitos,
@JTostitos@techhub.social avatar

@mattiem @SnippetsStudio
Thanks! I was tinkering with the highlighting but want to create my own theme for it instead of using the built in ones with MarkdownUI/Splash.

For now I just wanted to get the basics working. I think the main problem I have with highlighting right now though, is that since Languages are user-created (an early intentional decision) it might be a little difficult to get that implemented properly. I haven’t looked too far into it though yet.

JTostitos,
@JTostitos@techhub.social avatar

@mattiem Yeah, so instead of having a pre-defined list of languages, the user can create one similar to tags. I guess it really shouldn’t be that difficult since, like you said, the Markdown code fences have to do that like swift {code} .

Users would just need to be careful to spell the language properly.

JTostitos, to SwiftUI
@JTostitos@techhub.social avatar

Have you ever made changes to your app and then it randomly started crashing and have no idea why? Then you realize hours later that it was because you accidentally left the . out when typing the name of a view modifier?

Thanks to @twostraws for this tip on how to catch that on your own custom view modifiers:

https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-swiftui-modifiers-safer-to-use-with-warn-unqualified-access

JTostitos, to random
@JTostitos@techhub.social avatar

pfffffft. APPLE WHERES CAN BUYZ EXTERNAL GPU FOR M3 APPLE SILICON???

lol. Funny though how after 3ish years, simulator still shows this option on Apple Silicon Macs which don’t support external GPUs and only have an Integrated GPU.

JTostitos, (edited ) to apple
@JTostitos@techhub.social avatar

Spectra for Prime Video is now OPEN SOURCE. I look forward to seeing this project grow to a degree that I could not make happen on my own!

🚀 Boosts Appreciated! 😃

For those who are unaware: Spectra is an app for Apple Vision Pro that allows you to watch Amazon Prime Video content. While the iPadOS app is available on , many have said it is hard to use. Spectra aims to solve that by wrapping the website in a native app using and .

As this is the first real project I’ve made, I’ve done some research and think I have setup this repository correctly. But I am open to suggestions on what things I need to look out for and what I should consider enabling or disabling to prevent unwanted things from happening.

https://github.com/JTostitos/Spectra

andy, to SwiftUI
@andy@iosdev.space avatar

In all seriousness, is there any way to give Swift more time to give me an accurate error here? #SwiftUI is a pain to work with sometimes and this isn't even too big of a view.

JTostitos,
@JTostitos@techhub.social avatar

@andy I just comment out sections of code until I find what’s causing all the fuss. 🤷🏻‍♂️

JTostitos, (edited ) to opensource
@JTostitos@techhub.social avatar

Thinking about making this open source and publishing it for free on the App Store, (probably with a tip jar). I just don’t know enough about JavaScript to do this properly all on my own and I’m sure there are others who would have a good idea on how to structure the project better than I do.

Thoughts?

Boosts appreciated 🚀

From: @JTostitos
https://techhub.social/@JTostitos/111926060769408827

JTostitos, to random
@JTostitos@techhub.social avatar
JTostitos, to random
@JTostitos@techhub.social avatar

💯

The fight to SAVE the iPhone - FPT

https://youtu.be/B5GbIALEYYE?si=P7WqskpxPiCU3D1d

JTostitos, to random
@JTostitos@techhub.social avatar

Welp, hopefully this isn’t the end of another great set of apps… (but likely it will be 😕)

From: @marcedwards
https://mastodon.social/@marcedwards/112158812623767877

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • mdbf
  • Youngstown
  • ngwrru68w68
  • ethstaker
  • slotface
  • PowerRangers
  • hgfsjryuu7
  • khanakhh
  • kavyap
  • tsrsr
  • InstantRegret
  • DreamBathrooms
  • GTA5RPClips
  • normalnudes
  • magazineikmin
  • rosin
  • tacticalgear
  • thenastyranch
  • Durango
  • osvaldo12
  • vwfavf
  • cisconetworking
  • everett
  • cubers
  • modclub
  • tester
  • anitta
  • All magazines