@dandylyons@iosdev.space avatar

dandylyons

@dandylyons@iosdev.space

Fledgling iOS developer building my first app. #buildinpublic

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

finestructure, to swift
@finestructure@mastodon.social avatar

My first package build / test run ever on 🚀

It’s actually quite easy to get started thanks to winget. Use it to install the dependencies (git, python, VS Studio 2022) and then Swift itself

winget install --id Swift.Toolchain -e

and off you go! 🎉

dandylyons,
@dandylyons@iosdev.space avatar

@finestructure Sounds like the game porting toolkit accidentally ported you to Windows.

nighthawk, to random
@nighthawk@aus.social avatar

Transcripts with built-in search in Apple Podcasts are such a timer saver, doubly so for shows without chapter markers. Makes me prefer public feeds with ads and transcripts, over private members-only feeds without ads. I hope apps like Overcast catch up with this.

dandylyons,
@dandylyons@iosdev.space avatar

@nighthawk check out Snipd. Time-synced transcriptions, auto generated chapters and summaries.

dandylyons, to random
@dandylyons@iosdev.space avatar

I just discovered @qcoding
His YouTube channel is named "Quality Coding" and his content lives up to that name.

Follow his channel if you value quality Swift content.

https://www.youtube.com/@QualityCoding/featured

davidbures, to SwiftUI
@davidbures@mstdn.social avatar

Is there something I'm misunderstanding about detecting if a .searchable field is focused in SwiftUI? I'm trying to use @Environment(\.isSearching) to detect if the search field is currently focused.

In the attached video, you can see that the isSearching environment var is true even after the keyboard is dismissed and the field is no longer focused.

The (very ugly) code: https://pastes.io/cfqejgpgbe

@swiftui

Searchable demo that doesn't work

dandylyons,
@dandylyons@iosdev.space avatar
dandylyons,
@dandylyons@iosdev.space avatar

@davidbures @swiftui Interesting. I didn't know that. Thanks for the tip.

One janky workaround is you could save the search text to somewhere else, then set isPresented to false, then fill the search field again.

(It's probably not gonna look great though. haha.)

christianselig, to random
@christianselig@mastodon.social avatar

SwiftUI question: I'm trying to make a slider that expands on touch. How do I make it so the progress part's height animates (instead of jumping), but the width stays instantly responsive (no animation)?

No matter where I put the .animation() modifiers I cannot seem to get it, haha

Gist: https://gist.github.com/christianselig/eda075422436f4e4934565da001455d4

Video of code with an interactive SwiftUI custom slider that jumps into place as soon as you start dragging, which looks weird. Code is available in linked GitHub Gist.

dandylyons,
@dandylyons@iosdev.space avatar

@christianselig

One option is to drop to the Animatable protocol. Then the height and width could animate based off of different state.

https://swiftui-lab.com/swiftui-animations-part1/

shnhrrsn, to SwiftUI
@shnhrrsn@mastodon.social avatar

Is anyone using SwiftUI/Xcode Previews in a full app?

I ten to use (and love) them for initial prototyping but as soon as I start really building the app, I end up tearing them out.

Once the codebase gets larger than a handful of views, they're too slow almost become annoying — curious if there ways to scale them up?

@swiftui

dandylyons,
@dandylyons@iosdev.space avatar

@litso @shnhrrsn @swiftui

I love this approach and it has helped so much.

But my Previews are basically dead ever since I started using macros.

For one, using ‘’ is amazing, but there are certain edge cases where it bugs out.

Also, any package with macros depend on SwiftSyntax which is massive and so my previews give up before the compiler can finish.

MuseumShuffle, (edited ) to SwiftUI
@MuseumShuffle@mastodon.social avatar

VoiceOver question:

A date of "Feb 4" is read out by VO as "February fourth", which is what I would expect.

However, a date of "2/4" is read as "two slash four", which seems wrong to me. If "Feb 4" was read literally as "Feb four" I wouldn't feel this way.

Does this seem wrong and something I should file feedback for?

edit: FYI, I got around this by passing .wide to the .month in the label.

dandylyons,
@dandylyons@iosdev.space avatar

@MuseumShuffle SwiftUI has a Text(_:, format:)

That’s probably the best option, because that way VO would have access to the actual Date and it could adjust based on the device’s localization, and preferences

But with your approach, it only has a String. It has to somehow realize the String is a date and then determine the correct way to parse that date, which has so many edge cases.

RobW, to random
@RobW@iosdev.space avatar

Why are all the rich douche bags obsessed with space, and not spending their money bringing back dinosaurs? This would be an infinitely greater pursuit.
Being a 90s kid, I was promised dinosaurs.

dandylyons,
@dandylyons@iosdev.space avatar

@RobW Holupaminute…
You’re telling me you WANT rich douche bags to be making an army of giant human-eating zombie death lizards?

dandylyons,
@dandylyons@iosdev.space avatar
kepano, to random
@kepano@mastodon.social avatar

the next big feature for @obsidian is not AI

dandylyons,
@dandylyons@iosdev.space avatar

@kepano @obsidian What are your thoughts about on device LLM’s. The tech’s not ready yet but would you be open to AI when it can be run privately, on device?

obsidian, to random
@obsidian@mas.to avatar

Obsidian Mobile 1.4.12 is now available for early access!

This update adds support for Properties on iOS and Android ✨

Release notes:
https://obsidian.md/changelog/2023-09-22-mobile-v1.4.12/

dandylyons,
@dandylyons@iosdev.space avatar

@obsidian How do we get the catalyst preview on mobile again?

jamesthomson, to random
@jamesthomson@mastodon.social avatar

Somebody said they could get in-store pickup on the 22nd still, so I had a look, and it suggested the nearest store. The word “near" is doing a lot of work here.

dandylyons,
@dandylyons@iosdev.space avatar

@jamesthomson I worked at an Apple Store. At the time we had customers visiting Hawaii from American Samoa. We were out of the product they wanted so we offered to help them order online. Apple delivers nationwide, inclu. territories. No problem right?

Well, Apple doesn’t ship with USPS, and American Samoa only has PO Boxes, and the USPS has a legal monopoly on delivering to PO Boxes.

So yeah, that was a poor experience.

viticci, to random
@viticci@macstories.net avatar

I love the Reminders app, but how is this still a bug in the (almost) shipping version of iOS 17?

dandylyons,
@dandylyons@iosdev.space avatar

@viticci What's extra funny is why on earth would you ever suggest a reminder time to be right now? What's the point of reminding you about something right now?

RobW, to random
@RobW@iosdev.space avatar

deleted_by_author

  • Loading...
  • dandylyons,
    @dandylyons@iosdev.space avatar

    @RobW One of my favorites is Tucker and Dale vs. Evil.

    More of a Horror Parody though. But it's surprisingly good.

    StewartLynch, to random
    @StewartLynch@iosdev.space avatar

    In case you missed it, learn all about the new features in ScrollViews in my latest video. From content margins to transition effects.

    https://youtu.be/8YHbhSmiKwU

    video/mp4

    dandylyons,
    @dandylyons@iosdev.space avatar

    @StewartLynch Fantastic video. It almost feels like we won't need ScrollViewReader anymore, post iOS 17. What do you think?

    dandylyons,
    @dandylyons@iosdev.space avatar

    @StewartLynch Yeah, I’m sure you’re right. I just feel like this new API covers all the use cases that I would want to use ScrollViewReader for in the past. I can't think of a scenario yet that ScrollViewReader can handle but the the new API can't.

    christianselig, to random
    @christianselig@mastodon.social avatar

    Lazy toot: how do I pass a Button as an initializer to another SwiftUI View? Say the ButtonHolderView can accept two Buttons: one optional and one required. If it helps, they're created via Button(intent: AppIntent, label: Label).

    dandylyons,
    @dandylyons@iosdev.space avatar

    @christianselig @Warlock That GPT response is pretty close to what I was going to suggest. But here, I don't think that Label refers to the type that Button is generic over. I think it's referring to the SwiftUI View called Label. I have to double check though. It depends on the context.

    dandylyons,
    @dandylyons@iosdev.space avatar

    @christianselig Ok, this would be my suggestion.

    dandylyons, to typescript
    @dandylyons@iosdev.space avatar
    StewartLynch, to random
    @StewartLynch@iosdev.space avatar

    Did you realize that unlike @.ObservableObject, you cannot have an @.AppStorage property in your class if you use the new @.Observable macro.
    Here is how you can get around that.

    dandylyons,
    @dandylyons@iosdev.space avatar

    @StewartLynch Great tip. Sounds like a good use case for a macro.

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