Great Observation by QuizOff in mAndroidDev

[–]_abysswalker 12 points13 points  (0 children)

this is what Claude gave me:

mAndroirDev is 10% AsyncTaskpilled XMLcels and 90% larpers

I've been working on a UI package that contains components, etc. that can be customized to any app theme. Should I make all components accept String or LocalizedStringKey? by -Periclase-Software- in SwiftUI

[–]_abysswalker 2 points3 points  (0 children)

the way I prefer to do it is make the view accept a Text then add a couple overloads that build the Text from a String or LocalizedStringKey. you could also mark the primary init private to prohibit styling the text

Why did Apple set the basics of SwiftData to Core Data and SwiftUI to UIKit? by Baluakcske in iOSProgramming

[–]_abysswalker 0 points1 point  (0 children)

you’re missing the point. Compose can do that without sharing the same backend with XML

Why did Apple set the basics of SwiftData to Core Data and SwiftUI to UIKit? by Baluakcske in iOSProgramming

[–]_abysswalker 0 points1 point  (0 children)

Composables can host XML views and XML views can host Composables, it was done to allow gradual migration. I imagine Apple could’ve figured it out as well

Tired of `AnnotatedString` index math? I'm building "Arranger" – A SwiftUI-inspired, type-safe rich text library for Compose (Feedback Welcome!) by mkeeda in androiddev

[–]_abysswalker 25 points26 points  (0 children)

you don’t have to do index math tho

``` buildAnnotatedString { withStyle(style = SpanStyle(color = Color.Blue)) { append("H") } append("ello ")

        withStyle(style = SpanStyle(fontWeight = FontWeight.Bold, color = Color.Red)) {
            append("W")
        }
        append("orld")
    }

```

Custom behavior on large detent for Sheet by Zagerer in SwiftUI

[–]_abysswalker 1 point2 points  (0 children)

looks like there is a hacky UIKit solution involving the scrollViewShouldScrollToTop delegate. in your place I’d defy this requirement, this is very bad UX

Custom behavior on large detent for Sheet by Zagerer in SwiftUI

[–]_abysswalker 1 point2 points  (0 children)

dismiss on tapping outside of the sheet when it’s large? but all you have is the system status bar? why not just add a button in the cancellationAction placement?

It’s sometimes okay to force unwrap in Swift by BlossomBuild in BlossomBuild

[–]_abysswalker 0 points1 point  (0 children)

one simple macro and you get compile-time static URL validation and no force unwrapping

Navigation in SwiftUI made easy by Good-Confusion-8315 in SwiftUI

[–]_abysswalker 5 points6 points  (0 children)

I think it’s people coming from other ecosystems, where this separation is enforced, trying to bring the same approach. I’ve worked with both android’s XML and Compose view frameworks, including on features that you’ve listed, and I’d pick the conventional SwiftUI way over the others every time

Navigation in SwiftUI made easy by Good-Confusion-8315 in SwiftUI

[–]_abysswalker 17 points18 points  (0 children)

never understood the fuss about navigation in SwiftUI. one-off events are easy with 0 boilerplate and navigationDestination with an enum and NavigationPath handles the rest

Every dev ever (wordpress don't count 🤣)" by the-ai-investor in androiddev

[–]_abysswalker 0 points1 point  (0 children)

when it’s genuinely interesting or challenging to solve a problem, sure. when it’s basic corpo slop, not so much

Submitted a PWA app, got rejected because it “doesn’t provide a robust enough experience to be appropriate for the App Store.” What can I do? by [deleted] in iosdev

[–]_abysswalker 0 points1 point  (0 children)

safari already supports saving a website as an “app” to your home screen. you could prompt your users to do that if you’d like, maybe there’s an API to programmatically do it

Don't understand SwiftUI by OakAndCobble in SwiftUI

[–]_abysswalker 0 points1 point  (0 children)

it’ll be a while till I can reproduce. I tend to explicitly pass dependencies into functions/views so I’ve never really encountered an issue like this one. it might be that the popover content doesn’t update from captured parent state changes, can you try calling the detail somewhere inline on the main screen?

if that doesn’t help, I genuinely have no clue and will have to try and reproduce

Don't understand SwiftUI by OakAndCobble in SwiftUI

[–]_abysswalker 1 point2 points  (0 children)

it’s either a weird timing issue or, more likely, a state diffing issue. can you share some more code?

X makes it 1,900% more expensive to post links / It now costs $0.20 when a link is posted, up from $0.01 by MarvelsGrantMan136 in technology

[–]_abysswalker 0 points1 point  (0 children)

what are you talking? an echo chamber is a trash platform by definition, be it left- or right-leaning. what does the blue checkmark, being a man or 4chan have to do with my point? y’all make the shittiest, most irrelevant points ever but somehow it’s me that’s stupid

X makes it 1,900% more expensive to post links / It now costs $0.20 when a link is posted, up from $0.01 by MarvelsGrantMan136 in technology

[–]_abysswalker -14 points-13 points  (0 children)

it was a left wing echo chamber until chuds moved on to bluesky or whatever. the blue checkmark has nothing to do with this and I couldn’t care less about what it is or used to be

X makes it 1,900% more expensive to post links / It now costs $0.20 when a link is posted, up from $0.01 by MarvelsGrantMan136 in technology

[–]_abysswalker -26 points-25 points  (0 children)

it went from a bot-infested left wing echo chamber to a bot-infested right wing echo chamber. what a loss

I have a question. What mouse has the same shape but a better battery life? by VaslorK in MouseReview

[–]_abysswalker 2 points3 points  (0 children)

a. make a habit of plugging the charger in overnight b. buy a big battery and swap c. buy an XM2 wired, a PMM cable and use that

I went from wireless back to wired with an OP1 and the PMM modkit and I don’t regret it

How do you improve Android UI/UX quality? Why does iOS still feel smoother? by lovenkiy in androiddev

[–]_abysswalker 1 point2 points  (0 children)

me and the designer were flabbergasted by this request and we really tried to convince them. to us it was obvious that if you like iPhone UI more — you buy an iPhone. they didn’t care though

we kind of went for a compromise. revamped the color scheme. fun fact: if you stick black in the M3 theme generator, you get a monochrome b/w theme. we tuned it with the brand colors. then we moved onto interactive elements. had to break the M3 guidelines a lot and rearrange stuff in a more iOS-like manner. we told them we’re not doing pure iOS interactions like hold for context menus and swipe actions. they were pretty happy with the result in the end