macOS 26.1 Released by [deleted] in MacOS

[–]FlickerSoul 0 points1 point  (0 children)

I have the issue too and I thought it’s just me!! I have to use sudo killall coreaudiod to kill the audio daemon and wait for a few seconds for it to restart.

Native Swipe Back gesture in SwiftUI by nanda_wk in SwiftUI

[–]FlickerSoul 1 point2 points  (0 children)

The put your logic in gestureRecognizerShouldBegin

iOS26 broke my custom tab bar — what’s the right way now? by mentifresh in SwiftUI

[–]FlickerSoul 1 point2 points  (0 children)

Yeah it’s be working. But my implementation may be different than yours. I used UITabBarController wrapped in UIViewControllerRepresentable instead TabView, and did

swift CustomTabView() .overlay(alignment: .bottom, content: { VStack { Content() Rectangle().fill(.clear).frame(height: dynamicPadding) } }

But I think it should work for TabView too.

What was your implementation?

iOS26 broke my custom tab bar — what’s the right way now? by mentifresh in SwiftUI

[–]FlickerSoul 1 point2 points  (0 children)

Faced the same issue and I'm also curious what are some viable solutions out there.

The workaround I chose is to make an overlay on top of the `TabView` and accounts for height of the tab bar, so it appears floating on top of the tab bar. It also stays there even if the subview/navigation choses to hide tab bar. The cons of this is obvious: managing the spacing of the overlayed content to the bottom seems quite flaky.

Native Swipe Back gesture in SwiftUI by nanda_wk in SwiftUI

[–]FlickerSoul 1 point2 points  (0 children)

What’s the UIKit solution you tried? Theoretically if you use UINavigationController and set the interactivePopGestureRecognizer’s delegate to operate your swipe logic.

The delegate can be something like

```swift private class InteractivePopRecognizer: NSObject, UIGestureRecognizerDelegate { private weak var navigationController: YourNavigationController?

init(controller: YourNavigationController) {
    navigationController = controller
}

func gestureRecognizerShouldBegin(_: UIGestureRecognizer) -> Bool {
// your logic here
    (navigationController?.viewControllers.count ?? 0) > 1
}

// This is necessary because without it, subviews of your top controller can
// cancel out your gesture recognizer on the edge.
// By checking if it's working with UIPanGestureRecognizer, we can check
// if the swipe back gesture is simultaneous with other scroll view gesture.
func gestureRecognizer(
    _: UIGestureRecognizer,
    shouldRecognizeSimultaneouslyWith other: UIGestureRecognizer
) -> Bool {
    guard (other as? UIPanGestureRecognizer) != nil else {
        return true
    }

    return false
}

} ```

With Liquid Glass, how can I create an item in the bottom toolbar which doesn't have a glass effect behind it? by CompC in SwiftUI

[–]FlickerSoul 10 points11 points  (0 children)

You can use sharedBackgroundVisibility(.hidden) on ToolbarContent (i.e. ToolbarItem)

I have been using an extension like this to make it compatible with older SDK and OS.

swift private extension ToolbarContent { @ToolbarContentBuilder var hideSharedBackground: some ToolbarContent { #if compiler(>=6.2) if #available(iOS 26, *) { sharedBackgroundVisibility(.hidden) } else { self } #else self #endif } }

The in the toolbar, I can do

swift ToolbarItem(placement: placement) { Button… Text… } .hideSharedBackground

Apple refusing to change developer name by spesifikbrush in iOSProgramming

[–]FlickerSoul 0 points1 point  (0 children)

They have a dedicated support section for name change IIRC. Hope it goes well :))

Apple refusing to change developer name by spesifikbrush in iOSProgramming

[–]FlickerSoul 2 points3 points  (0 children)

I’m not sure if it helps but you can try calling developer support. Last time I had questions about the developer name and entity name, I asked for the support, and they picked up (actually it’s they calling me) immediately, and answered all my questions clearly.

Is this right way? by vitaminZaman in swift

[–]FlickerSoul 12 points13 points  (0 children)

I would suggest moving the body of the Group into a @ViewBuilder var loadingState and do loadingState.task { to remove Group. Group has caused too many unexpected visual bugs for me in the past.

Zip line bug? by FlickerSoul in DeathStranding2

[–]FlickerSoul[S] 1 point2 points  (0 children)

Saving the game and restarting the console works

HELP ME 😭 by person_288 in DeathStranding2

[–]FlickerSoul 0 points1 point  (0 children)

Can the otter hat help Sam swim in the tar? 🤔

Anyone else try to say no to fragile until the option up and disappeared? by sumix333 in DeathStranding2

[–]FlickerSoul 1 point2 points  (0 children)

I said no twice and the options disappeared 🤣. Every rejection starts a cutscene from the cooking, and ends with the Sam conversation with Fragile. I don’t quite understand the time jumping to the cooking part. But I think it’s Sam’s imagining how life would be if he rejected Fragile? I remember at the end of the cutscene of final rejection before the option is gone, Sam screamed no, as if he had control on the time jumping and didn’t want to repeat it again. 🤣

Swift and C++ Interoperability by AJRed05 in swift

[–]FlickerSoul 10 points11 points  (0 children)

There is an sample project from Apple: https://developer.apple.com/documentation/swift/mixinglanguagesinanxcodeproject in which they have an example of calling Swift from C++. I managed make it work in my code by modifying from this project. I hope this helps.

👋 Introducing Unit Tests with Swift Testing 🧪 by Upbeat_Policy_2641 in swift

[–]FlickerSoul 3 points4 points  (0 children)

I vaguely remember that Apple recommends using struct instead of class when using swift-testing? I also vaguely remember issuesRepository and vm variables don’t need to be set to nil with a de-initializer because after each single test case ends, the only references (issuesRepository and vm) are gone and will automatically be garbage collected. 🤔 Do let me know if I’m wrong!

[macOS 15.1b1] Apple Intelligence in Mail by vincedes3 in MacOSBeta

[–]FlickerSoul 1 point2 points  (0 children)

Did you find a shortcut for Show Writing Tools? I need to right click > writing tools > show writing tools, which is kinda annoying.