@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.

thatvirtualboy, to swift
@thatvirtualboy@techhub.social avatar

App Review rejected my macOS menu bar app, Done, because the “app menu is missing the required Quit option.“

However, the app allows a quit operation by right clicking the menu bar app icon and choosing quit. Do menu bar apps usually support other methods to quit? Is it possible they didn’t try this?

#iOSDev #swift

JTostitos,
@JTostitos@techhub.social avatar

@thatvirtualboy annoying, but probably just explaining and including that screenshot will solve it. Unless they wanted you to upload a new binary… 🫠

JTostitos, to macos
@JTostitos@techhub.social avatar
donnywals, to random
@donnywals@chaos.social avatar

Good morning and a happy Monday, folks! Hope you’ve had a nice weekend!

Do you have any plans for the week? Working on something cool, learning something new, anything at all?

Tell me all about it! 😎

JTostitos,
@JTostitos@techhub.social avatar

@donnywals just released an update to my app Snippets Studio yesterday!

https://indieapps.space/@SnippetsStudio/112508897546009780

JTostitos, to swift
@JTostitos@techhub.social avatar

Well, I wanted to use the App Store Connect API to download the CSV file of total payment for a particular month.

The API seems to only download what is provided from the create reports button (red box in image) which is not what I want; it doesn’t include a number of the total sales for a month once it has been paid. And adding each of the totals does not equal the correct payment amount.

The second image has an orange box that shows the accurate number. This is what the file looks like when using the download button in the green box in the first image.

Maybe I am using the API incorrectly? I am using this swift package: https://github.com/AvdLee/appstoreconnect-swift-sdk

#swift #swiftui #appstoreconnect

image/jpeg

charliemchapman, to random
@charliemchapman@mastodon.social avatar

I got mistaken for being Italian by an Italian and I’ll be riding that high for the rest of this trip

JTostitos,
@JTostitos@techhub.social avatar

@charliemchapman @iPabloSB this is a bad Italian thing to do 😂

JTostitos, to swift
@JTostitos@techhub.social avatar

Swift/SwiftUI Question: App Store Connect API provides a gzip when the response is successful for a particular endpoint I am accessing.

How do I take this gzip and save the contents of it to a files app / sandbox directory / swift data, so that I can read it and view the contents? From what I understand, gzip is similar to a zip file?

So far my attempts to save it to files to read the contents have failed. It says “Inappropriate file type or format”.

JTostitos,
@JTostitos@techhub.social avatar

@mattiem sorry I meant the files app says…

JTostitos,
@JTostitos@techhub.social avatar

@mattiem oh okay, maybe that’s what I was missing. The file that I typically download from App Store Connect in the UI is a csv for the financial reports. Would I gunzip and save as a csv?

JTostitos,
@JTostitos@techhub.social avatar

@mattiem Awesome thanks! It worked.

JTostitos, to iOS
@JTostitos@techhub.social avatar

Guys, its 2024 and you cannot play an MP3 file sent through iMessage or downloaded to the Files app…

#ios #ipados

charliemchapman, to random
@charliemchapman@mastodon.social avatar

What's everyone's go-to travel power bank these days?

I have and love the Anker MagSafe one, but I also like to carry a 10,000mAh one for wired recharging or my MacBook and I think I lost mine. Would love one with a built-in USBC cord

JTostitos,
@JTostitos@techhub.social avatar

@charliemchapman just got this recently and its awesome! No wireless charging but it includes a USB-C cable AND a 65W charger which a lot of power banks I’ve seen don’t provide at all. It’s the max mah you can take on an airplane and can charge a MacBook. It’s also on sale right now.

https://a.co/d/iENRqy6

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 😉)

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!

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