<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Just2us - Latest Comments</title><link>http://just2us.disqus.com/</link><description></description><atom:link href="https://just2us.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 01 Apr 2026 20:33:32 -0000</lastBuildDate><item><title>Re: Xcode 26.4 Simulator Paste Is Broken: Here’s the Workaround | @samwize</title><link>https://samwize.com/2026/03/30/xcode-simulator-paste-broken-workaround/#comment-6858154833</link><description>&lt;p&gt;Thanks Herman! This is much better. Updated the post with your suggestion.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">samwize</dc:creator><pubDate>Wed, 01 Apr 2026 20:33:32 -0000</pubDate></item><item><title>Re: Xcode 26.4 Simulator Paste Is Broken: Here’s the Workaround | @samwize</title><link>https://samwize.com/2026/03/30/xcode-simulator-paste-broken-workaround/#comment-6857896110</link><description>&lt;p&gt;`pbpaste | xcrun simctl pbcopy booted` &lt;br&gt;is much simpler; same command each time!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Herman Banken</dc:creator><pubDate>Wed, 01 Apr 2026 10:14:24 -0000</pubDate></item><item><title>Re: Setup Codex CLI notifications on macOS (iTerm2 + terminal-notifier)</title><link>https://samwize.com/2026/02/05/setup-codex-cli-notifications-on-macos-iterm2-terminal-notifier/#comment-6843758139</link><description>&lt;p&gt;thanks, this worked. but an easier setup guide would be much appreciated.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Cheers.&lt;/b&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steven</dc:creator><pubDate>Fri, 27 Feb 2026 21:10:58 -0000</pubDate></item><item><title>Re: Guide to Integrating CodePush for iOS React Native Project</title><link>http://samwize.com/2017/01/19/guide-to-integrating-codepush-for-ios-react-native-project/#comment-6672811380</link><description>&lt;p&gt;Hii Junda, this blog is nice but as you know MS App Center is soon to shut. Amid this closing, choosing a CodePush alternative has become mandatory.&lt;/p&gt;&lt;p&gt;I am from AppsOnAir, a plug-n-play CodePush alternative which allows users to push real-time app updates.  You can visit our site and if you find it useful, please add AppsOnAir to your blog.&lt;/p&gt;&lt;p&gt;This will help both of us. We will get exposure and your reader will be benefitted by new tool.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pujan</dc:creator><pubDate>Wed, 19 Mar 2025 03:44:49 -0000</pubDate></item><item><title>Re: Do NOT init State externally in SwiftUI</title><link>https://samwize.com/2024/05/08/do-not-init-state-externally-in-swiftui-view/#comment-6471530582</link><description>&lt;p&gt;"Would ChildView update when parentCount is changed? The answer is surprisingly no." – What surprise are you talking about, if you pass an Int, a value type? It's not even a matter of using or misusing Sate or any other property wrapper, it's a matter how good you are at programming basics.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nikita Lazarev-Zubov</dc:creator><pubDate>Sat, 01 Jun 2024 10:08:26 -0000</pubDate></item><item><title>Re: Do NOT init State externally in SwiftUI</title><link>https://samwize.com/2024/05/08/do-not-init-state-externally-in-swiftui-view/#comment-6471245663</link><description>&lt;p&gt;it’s ok to use StateObject(wrapped value:) as it uses an auto closure to make sure the wrapped value is only created once, unlike State. However yes it won’t update when the input changes from the parent, to can use it to set initial data or static configuration (eg the on one screen you want to count to start fro&lt;br&gt; 100 instead of 0, or you pass in a boolean that says if it should count up or down).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 31 May 2024 21:07:52 -0000</pubDate></item><item><title>Re: A gitattributes template for Xcode projects</title><link>https://samwize.com/2022/05/27/gitattributes-templatefor-xcode-projects/#comment-6448744788</link><description>&lt;blockquote&gt;and the prefix - is to unset the attribute&lt;/blockquote&gt;&lt;p&gt; &lt;br&gt;did you mean to include a dash in the following line?&lt;br&gt;&lt;code&gt;*.pbxproj diff merge&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Clint M</dc:creator><pubDate>Wed, 01 May 2024 11:51:59 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6354292592</link><description>&lt;p&gt;I didn't mean to say that you add final so that other modules cannot override it. As we know, final is for the same module to prevent you/other devs from trying to override it later on. I believe we understood this the same.&lt;/p&gt;&lt;p&gt;The entire point comes from the last paragraph of &lt;a href="https://developer.apple.com/swift/blog/?id=27" rel="nofollow noopener" target="_blank" title="https://developer.apple.com/swift/blog/?id=27"&gt;https://developer.apple.com...&lt;/a&gt; -- The compiler can infer for internal, but not when there is public access.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">samwize</dc:creator><pubDate>Thu, 28 Dec 2023 19:52:27 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6354120231</link><description>&lt;p&gt;`public` classes or properties are already not overridable. You use `open` for that. Apple's blogpost predates the `open` keyword, so the entire point 3 of this article kinda makes no sense. The compiler cannot infer anything for other modules, the public/open dichotomy is used for that. Final should only be used to indicate internal constraints.&lt;/p&gt;&lt;p&gt;In short – use `public final ` if there are no descendants in the same module, it's perfectly fine.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmitry</dc:creator><pubDate>Thu, 28 Dec 2023 14:51:06 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6349217064</link><description>&lt;p&gt;If you added final because you don't want it to be overridden in your module, that's fine because you know what you're doing :) But 90% of the time, devs don't think about overridability clearly. How do you decide well why a class should never be subclassed?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">samwize</dc:creator><pubDate>Wed, 20 Dec 2023 22:35:55 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6348897480</link><description>&lt;p&gt;Furthermore, by always explicitly adding final even to a private or internal type, we avoid the possibility that the ACL is increased in the future without consideration of the finality, such as making it public without adding final.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Dec 2023 14:30:23 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6348895573</link><description>&lt;p&gt;Oh, I see what you are saying. Final is able to be inferred when Whole Module Optimization is enabled.&lt;/p&gt;&lt;p&gt;I see a problem with this however. It appears that the inference occurs based on whether the declaration is overridden somewhere within the module. Therefore, as the author of the class, you often want to declare the type as final explicitly to ensure that it cannot not be overridden within the module.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Dec 2023 14:27:43 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6348887839</link><description>&lt;p&gt;It is not clear from your post what occurs when the class is internal. Is an internal class inferred to be final? Asking since that is where I find most of our usage of final, for internal final classes.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Dec 2023 14:17:47 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6346906548</link><description>&lt;p&gt;👍&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will</dc:creator><pubDate>Sun, 17 Dec 2023 21:53:57 -0000</pubDate></item><item><title>Re: Should you add final to all your Swift classes?</title><link>https://samwize.com/2023/12/15/should-you-add-final-to-all-your-swift-classes/#comment-6345539158</link><description>&lt;p&gt;interesting&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">download Foxie 🔛 the app store</dc:creator><pubDate>Fri, 15 Dec 2023 19:21:18 -0000</pubDate></item><item><title>Re: What mongoose never explain to you (on case sentivity) - Junda Ong</title><link>http://samwize.com/2014/03/07/what-mongoose-never-explain-to-you-on-case-sentivity/#comment-6276368532</link><description>&lt;p&gt;I tried use this form but in mongoDb fails. I dont know what happen.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Juan Pablo</dc:creator><pubDate>Tue, 12 Sep 2023 10:13:21 -0000</pubDate></item><item><title>Re: iPhone Photos import error -9934</title><link>https://blog.just2us.com/2022/11/20/iphone-photos-import-error-9934/#comment-6153385353</link><description>&lt;p&gt;OMG I love you! This totally solved an issue that's been such a frustration for me for so long! Every time I record with my iPhone using FilmicPro, I can't seem to transfer the video from the iPhone to the Mac, and when I finally finagle it to work, it takes FOREVER. Now this totally solved my issue, not only was I able to transfer the video EASILY, it took hardly any time at all! Thank you so much for posting this, I sincerely appreciate it! 🙏💖&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tom Yogeshwar Leichardt</dc:creator><pubDate>Mon, 03 Apr 2023 19:03:16 -0000</pubDate></item><item><title>Re: How to Create Multiple Tappable Links in a UILabel</title><link>http://samwize.com/2016/03/04/how-to-create-multiple-tappable-links-in-a-uilabel/#comment-6121186312</link><description>&lt;p&gt;Thanks, it solve my problem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">moyir mirtox</dc:creator><pubDate>Tue, 21 Feb 2023 22:53:51 -0000</pubDate></item><item><title>Re: How to Create Multiple Tappable Links in a UILabel</title><link>http://samwize.com/2016/03/04/how-to-create-multiple-tappable-links-in-a-uilabel/#comment-6097595818</link><description>&lt;p&gt;Hi guys, if you're getting bad ranges, you could try to add the font of your attributed string. I put an example because the other people didn't, hope this helps.&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br&gt;let paragraphStyle = NSMutableParagraphStyle()&lt;br&gt;        paragraphStyle.lineSpacing = 1 // Whatever line spacing you want in points&lt;br&gt;        let attributedText = NSMutableAttributedString(string: self.text!, attributes: [&lt;br&gt;            NSAttributedString.Key.font: UIFont(name: AMSConstants.FamilyFontBarlow.medium, size: 16.0)!&lt;br&gt;        ])&lt;br&gt;        if !emphasis.isEmpty {&lt;br&gt;            emphasis.forEach { emp in&lt;br&gt;                debugPrint(emp)&lt;br&gt;                let range = (text! as NSString).range(of: emp)&lt;br&gt;                attributedText.addAttribute(NSAttributedString.Key.underlineStyle, value: NSUnderlineStyle.double.rawValue, range: range)&lt;br&gt;                attributedText.addAttribute(NSAttributedString.Key.foregroundColor, value: UIColor.red, range: range)&lt;br&gt;                attributedText.addAttribute(NSAttributedString.Key.paragraphStyle, value: paragraphStyle, range: NSMakeRange(0, attributedText.length))&lt;br&gt;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        &lt;br&gt;        self.attributedText = attributedText&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;I do this on the text setup&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rogelio Heredia</dc:creator><pubDate>Mon, 23 Jan 2023 19:34:11 -0000</pubDate></item><item><title>Re: Localization - Fallback to Base Language</title><link>http://samwize.com/2018/01/23/localization-fall-back-to-base-language/#comment-6073183143</link><description>&lt;p&gt;Thanks for the article!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paulo Henrique Vasconcelos</dc:creator><pubDate>Fri, 23 Dec 2022 13:24:02 -0000</pubDate></item><item><title>Re: Reducing Xcode debugger logs</title><link>https://samwize.com/2022/10/29/reduce-xcode-debugger-logs/#comment-6031117363</link><description>&lt;p&gt;Interesting, thanks for the tip.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilson Muñoz</dc:creator><pubDate>Fri, 04 Nov 2022 12:16:08 -0000</pubDate></item><item><title>Re: Everything About Xcode UI Testing</title><link>https://samwize.com/2016/02/28/everything-about-xcode-ui-testing-snapshot/#comment-6011264612</link><description>&lt;p&gt;Thanks so much for this post! Saved me so much time!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Baftek</dc:creator><pubDate>Thu, 13 Oct 2022 07:22:22 -0000</pubDate></item><item><title>Re: Pitfall of Nested ObservableObject</title><link>https://samwize.com/2022/09/30/pitfall-of-nested-observableobject/#comment-6006281458</link><description>&lt;p&gt;Technically ok but in this situation the correct solution was to simply observe the inner property in your View and not the whole parent object; if you apply your fix to more complex view models, soon or later, you will find yourself dealing with a lot of unwanted refreshes.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ilwoody</dc:creator><pubDate>Fri, 07 Oct 2022 15:21:30 -0000</pubDate></item><item><title>Re: Pitfall of Nested ObservableObject</title><link>https://samwize.com/2022/09/30/pitfall-of-nested-observableobject/#comment-6006209853</link><description>&lt;p&gt;I use the following extension&lt;/p&gt;&lt;p&gt;&lt;code&gt;import Combine&lt;br&gt;&lt;br&gt;extension ObservableObject {&lt;br&gt;    func republishObservable&amp;lt;child: observableobject=""&amp;gt;(child: Child) -&amp;gt; AnyCancellable {&lt;br&gt;        return child.objectWillChange&lt;br&gt;            .receive(on: DispatchQueue.main)&lt;br&gt;            .sink {&lt;br&gt;            [weak self] _ in&lt;br&gt;            if let publisher = self?.objectWillChange as? ObservableObjectPublisher {&lt;br&gt;                publisher.send()&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p&gt;then just&lt;/p&gt;&lt;p&gt;&lt;code&gt;republishObservable(child:bookService).store(in: &amp;amp;cancellables)&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ConfusedVorlon</dc:creator><pubDate>Fri, 07 Oct 2022 13:55:13 -0000</pubDate></item><item><title>Re: Replacing if let in Swift 5.7</title><link>https://samwize.com/2022/09/22/replacing-if-let-in-swift-5-7/#comment-5998228525</link><description>&lt;p&gt;what about implicit self in closures?&lt;br&gt;afaik if let self. variable {} doesn't work&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ktoosiu</dc:creator><pubDate>Wed, 28 Sep 2022 09:54:23 -0000</pubDate></item></channel></rss>