ramzesenok, to random
@ramzesenok@mastodon.social avatar

For quite some time I’ve been collecting some tips and tricks in and that I’d like to share with you. I’ll share a new tip every day and hope to last until at least WWDC

I'll also post same content on Twitter in case you prefer it over Mastodon

teissler, to SwiftUI
@teissler@hachyderm.io avatar

WWDC24 is right around the corner. Before the excitement and rush of what's to come, I want to share some navigation fun facts and tips. None of this is new, having been discussed previously in sessions, etc. From talking with developers, these are parts of the system that are often overlooked, or forgotten about This is all running on macOS Sonoma 14.4, Xcode 15.3

marcel, to SwiftUI
@marcel@mastodon.social avatar

I recently read a book about meditation practices and it mentioned a 3x3 gratefulness meditation, which made a lot of sense to me. You spend a couple of minutes each day finding three things you're thankful for in each of the categories: life, work, and self.

Anyway! I accidentally built an app prototype around this idea.

#SwiftUI

video/mp4

phill, to random
@phill@mastodon.notsobig.co avatar

Arghhh. Another #SwiftUI regression in 16.4: NavigationSplitView won’t animate the first push of the detail column if the content column goes from List, to no List. Again, this worked just fine in prior releases! https://gist.github.com/phillipcaudell/a125708c3075abcabe9940427c57d1a3

video/mp4

jknlsn, to SwiftUI
@jknlsn@hachyderm.io avatar

Radiant for Mastodon is available on iPhone now!

@radiant is a new Mastodon client with an intuitive native design and powerful flexible features.

Highlights:

  • nested threads
  • per account theming
  • in line quote posts
  • mutuals highlight
  • thread composer
  • multi-tags!

Optional Radiant Prime subscription unlocks:

  • multiple accounts
  • instant notifications
  • even more app icons

https://apps.apple.com/app/id6444323022?ct=mastodon

Boosts / reblogs appreciated 🙏

#MastodonApps #MastodonClient #IndieDev #SwiftUI #iOS

marcel, to SwiftUI
@marcel@mastodon.social avatar

Is this stupid or genius?

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

SwiftUI Challenge: 🏆

Can You Port this from #AutoLayout to #SwiftUI? Does it take you 10 minutes (like Auto Layout), less or more?

https://christiantietze.de/posts/2024/03/swiftui-challenge-port-from-auto-layout-to-swiftui

Share your solutions! 🔥

MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

Is there a way that I could have made the text in these Labels line up without specifying a width with .frame?

ctietze, to random
@ctietze@mastodon.social avatar

"Stop using for "
https://developer.apple.com/forums/thread/699003

I'm not sure if this is, a polemic, a joke, or meant as serious advice.

It's a huge forum thread with 90% images of slides and sample code.

I do get that Model + View suffice for Apple's sample apps, but then you throw out the testing baby with the bathwater completely, for example 🤔

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

question:

StateObject is about ownership;
ObservedObject about, well observing.

What if I inject the instance for the, let's say, "View Model" into the View's initialzier?

Does it still require usage of the StateObject property wrapper, or does ObservedObject somehow magically do the trick?

Asking because a lot of samples use ObservedObject for this case even though the view owns the reference.

davidbures, to SwiftUI
@davidbures@mstdn.social avatar

I need some design help, I’m not good at iOS development 😅

I have this screen. Originally, it was called “Dictionary”. This is where you look up words.

Then, due to SwiftUI being annoying, I had to add another title to that bottom sheet. Because that technically is also a part of the dictionary, I also gave it the title “Dictionary”. See pic no2 for what inside that bottom sheet.

But now I have the same title on the same screen twice, which is bad.

How would you solve it?

#swiftui #iOSDev

davidbures, to iOS
@davidbures@mstdn.social avatar

Do you struggle with modern slang? Are you confused by stuff like "level 5" and "rizzler"?

If yes, my new app is right for you! Rizzference has just entered public TestFlight, so give it a try before anyone else: https://testflight.apple.com/join/hSVtJLRj

It can:

  • Pull slang out of an entire sentence + define multiple words at once
  • Do 👆 through Shortcuts
  • Show multiple possible definitions for words
  • Run on #iOS and #macOS

Built in #SwiftUI for iOS 17 and macOS 13

#iosdev #showcase #macdev #buildinpublic

alpennec, to SwiftUI
@alpennec@iosdev.space avatar

Ok, let's see if will help me revive Skipper, my boating logbook app!

Plans:

  • Migrate to
  • Ditch old 3rd-party libraries
  • Support CloudKit sync (database migration required 😱)
  • Play with Widgets/Live Activity, AppIntents/Shortcuts, , etc.

But not all at once this time 🤣

App Store link: https://apps.apple.com/app/id671764434

davidbures, to swift
@davidbures@mstdn.social avatar

I took what the pros are saying to heart and measured the memory and CPU impact of three different ways of storing data inside Cork:

  1. Array, the original implementation that’s been around since the beginning
  2. IdentifiedArray from https://github.com/pointfreeco/swift-identified-collections
  3. Set

Set ended up being the best overall in memory consumption. The CPU benchmarks weren’t that decisive.

So I gotta convert Cork to Sets now! Where appropriate, of course :)

#swift #swiftUI #macOS #buildinpublic #homebrew #CorkApp

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

The bad awakening in #SwiftUI StateObject trickery:

init(foo: Foo) {
_foo = .init(wrappedValue: foo)
}

If this view is in a ViewBuilder that tries to update a lot, the Foo created on the outside will be initialized and then discarded immediately after.

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

I'm struggling trying to convert my NavigationStack into one that has a path. When I tap on my Picker that has a style of .navigationLink the app locks up.

I tried making a test project to recreate but it works fine.

Is there something in particular I should be doing for a style of .navigationLink? The default style of menu works.

edit: Filed FB12615246. The screenshot below is using ".id" instead of the correct ".tag".

#SwiftUI

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

This is the WWDC21 NavigationCookbook #SwiftUI demo app that shows the then new NavigationSplitView in action.

The toolbar transitions are horrible!

I believed I did something wrong, but it's the framework 😩

mackuba, to SwiftUI
@mackuba@martianbase.net avatar

And one more thing today: I've updated the #SwiftUI Index & Changelog with the new APIs from #WWDC23 https://mackuba.eu/swiftui/changelog 😎
#iOSDev #MacDev #Swift

dimillian, to SwiftUI
@dimillian@mastodon.social avatar

When doing this, do you see any problem? #SwiftUI

dimillian, to SwiftUI
@dimillian@mastodon.social avatar

Ice Cubes is the perfect example of something wrong with the #SwiftUI List. I hope we'll see some improvements next #WWDC. It's time to say goodbye to the UICollectionView backend.

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

This is getting somewhere.

(You have to imagine the scanning process that resulted in the quote being there.)

#swiftui

collin, to SwiftUI
@collin@ruby.social avatar

It’s weird, but to my understanding implementing MVC as originally envisioned is easier with due to the whole obervables thing than it was with UIKit.

In MVC, the model was meant to notify the view of changes after the controller updated it, and funneling that both ways through the controller was always a variation.

rafa, to SwiftUI
@rafa@mastodon.design avatar

My Safari window 10 minutes into development

ryanlintott, to random
@ryanlintott@mastodon.social avatar

When looking into custom accessible list reordering for @MuseumShuffle I had assumed .onMove would also provide accessibility actions similar to those in Notes or Reminders. I just did some checking and it seems onMove, onDrag, and draggable do not provide accessibility actions. Am I missing something? Is there a default Apple-recommended way to implement these features as accessibility actions?
#SwiftUI #iOSDev

MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

My SwiftUI previews for Please Don’t Rain stopped working and I couldn’t figure out why. I finally filed a TSI asking for help.

I have my answer.

They broke because I have an apostrophe in my app name. 😭

In order to get them working again now they are suggesting I do a “pretty thorough rename” throughout the app. My concern about breaking something else (and the time it would take to fix) is greatly overwhelming my desire to use previews that haven’t worked for months.

#SwiftUI #Xcode

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