<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments for Corner Software	</title>
	<atom:link href="https://csdcorp.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://csdcorp.com</link>
	<description></description>
	<lastBuildDate>Mon, 13 Feb 2023 11:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>
		Comment on OAuth2 &#8211; Get a Token Via REST Google Sign In by Anonymous		</title>
		<link>https://csdcorp.com/blog/coding/oauth2-get-a-token-via-rest-google-sign-in/#comment-1093</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Mon, 13 Feb 2023 11:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=572#comment-1093</guid>

					<description><![CDATA[In reply to Rhythm Sharma.

While getting the code, give prompt=consent as the first query parameter followed by the rest, sign in again, get the code and update the code in your request.]]></description>
			<content:encoded><![CDATA[<p>In reply to Rhythm Sharma.</p>
<p>While getting the code, give prompt=consent as the first query parameter followed by the rest, sign in again, get the code and update the code in your request.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Compressing POST Requests in Flutter by Zee		</title>
		<link>https://csdcorp.com/blog/coding/compressing-post-requests-in-flutter/#comment-1022</link>

		<dc:creator><![CDATA[Zee]]></dc:creator>
		<pubDate>Mon, 05 Dec 2022 11:02:29 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=517#comment-1022</guid>

					<description><![CDATA[When I follow the above example. The .Net core backend throws an error 
&quot;The archive entry was compressed using an unsupported compression method&quot;
It is working in javascript/Angular. I followed following links

https://stackoverflow.com/questions/51942451/compress-outgoing-requests-in-angular-2
https://stackoverflow.com/questions/34251856/compress-requests-from-angular-to-web-api]]></description>
			<content:encoded><![CDATA[<p>When I follow the above example. The .Net core backend throws an error<br />
&#8220;The archive entry was compressed using an unsupported compression method&#8221;<br />
It is working in javascript/Angular. I followed following links</p>
<p>https://stackoverflow.com/questions/51942451/compress-outgoing-requests-in-angular-2<br />
https://stackoverflow.com/questions/34251856/compress-requests-from-angular-to-web-api</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on OAuth2 &#8211; Get a Token Via REST Google Sign In by Anonymous		</title>
		<link>https://csdcorp.com/blog/coding/oauth2-get-a-token-via-rest-google-sign-in/#comment-1009</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Fri, 02 Dec 2022 10:54:29 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=572#comment-1009</guid>

					<description><![CDATA[great documenation]]></description>
			<content:encoded><![CDATA[<p>great documenation</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on OAuth2 &#8211; Get a Token Via REST Google Sign In by Rhythm Sharma		</title>
		<link>https://csdcorp.com/blog/coding/oauth2-get-a-token-via-rest-google-sign-in/#comment-924</link>

		<dc:creator><![CDATA[Rhythm Sharma]]></dc:creator>
		<pubDate>Thu, 22 Sep 2022 06:33:49 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=572#comment-924</guid>

					<description><![CDATA[for getting refresh token I did the same thing but i got this error
{
    &quot;error&quot;: &quot;invalid_grant&quot;,
    &quot;error_description&quot;: &quot;Bad Request&quot;
}

what can I do now ?]]></description>
			<content:encoded><![CDATA[<p>for getting refresh token I did the same thing but i got this error<br />
{<br />
    &#8220;error&#8221;: &#8220;invalid_grant&#8221;,<br />
    &#8220;error_description&#8221;: &#8220;Bad Request&#8221;<br />
}</p>
<p>what can I do now ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Simple HTML Parsing in Swift by Stephen Owens		</title>
		<link>https://csdcorp.com/blog/coding/simple-html-parsing-in-swift/#comment-909</link>

		<dc:creator><![CDATA[Stephen Owens]]></dc:creator>
		<pubDate>Wed, 14 Sep 2022 18:02:26 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=730#comment-909</guid>

					<description><![CDATA[In reply to Andrew.

There are restrictions about what code you can put in a SwiftUI view. There are a few conditional or assignment statements you can use but not many. You should declare a function and use it. For example, I use something like this:


func textFromHTML( html: String?, completion:@escaping (String) -&gt; () ) {
        guard let htmlContent = html else {
            completion(&quot;&quot;)
            return
        }
#if os(iOS)
        guard let data: Data = htmlContent.data(using: .utf8) else {
            completion(htmlContent)
            return
        }
        NSAttributedString.loadFromHTML(data: data, options: [.characterEncoding: String.Encoding.utf8.rawValue]) { attributed,attrs,error  in
            guard nil == error else {
                completion(htmlContent)
                return
            }
            if let attributedHtml = attributed {
                completion( attributedHtml.string)
            }
        }
#else
        completion(htmlContent)
#endif
    }
]]></description>
			<content:encoded><![CDATA[<p>In reply to Andrew.</p>
<p>There are restrictions about what code you can put in a SwiftUI view. There are a few conditional or assignment statements you can use but not many. You should declare a function and use it. For example, I use something like this:</p>
<p>func textFromHTML( html: String?, completion:@escaping (String) -> () ) {<br />
        guard let htmlContent = html else {<br />
            completion(&#8220;&#8221;)<br />
            return<br />
        }<br />
#if os(iOS)<br />
        guard let data: Data = htmlContent.data(using: .utf8) else {<br />
            completion(htmlContent)<br />
            return<br />
        }<br />
        NSAttributedString.loadFromHTML(data: data, options: [.characterEncoding: String.Encoding.utf8.rawValue]) { attributed,attrs,error  in<br />
            guard nil == error else {<br />
                completion(htmlContent)<br />
                return<br />
            }<br />
            if let attributedHtml = attributed {<br />
                completion( attributedHtml.string)<br />
            }<br />
        }<br />
#else<br />
        completion(htmlContent)<br />
#endif<br />
    }</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Simple HTML Parsing in Swift by Andrew		</title>
		<link>https://csdcorp.com/blog/coding/simple-html-parsing-in-swift/#comment-907</link>

		<dc:creator><![CDATA[Andrew]]></dc:creator>
		<pubDate>Mon, 12 Sep 2022 20:28:35 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=730#comment-907</guid>

					<description><![CDATA[Hello Stephen, 

Thank you for your post - and hopefully this will assist me with a project I am working on. I would like to implement this in a SwiftUI view, but when I copy the code you posted I get a series of errors. 

Here is my code: (ContentView.swiftui)

import SwiftUI
import WebKit

struct ContentView: View { [error build: Function declares an opaque return type, but has no return statements in its body from which to infer an underlying type]

    var body: some View {
        
        htmlContent = &quot;The text I needed&quot; [error build: Cannot find &#039;htmlContent&#039; in scope]

        guard let data: Data = htmlContent.data(using: .utf8) [1. error build: Cannot find &#039;htmlContent&#039; in scope
                                                                                                  2. error build: Expected &#039;else&#039; after &#039;guard&#039; condition]
          // handle the error
          return [error build: Non-void function should return a value]

        }

[errors for the section below: 
1. error build: Expected &#039;{&#039; in body of function declaration
2. error build: Expected &#039;func&#039; keyword in instance method declaration
3. error build: Expected &#039;(&#039; in argument list of function declaration
4. error build: Expected &#039;(&#039; in argument list of function declaration
5. error build: Expected declaration In declaration of &#039;ContentView&#039;

        NSAttributedString.loadFromHTML(data: data, options: [.characterEncoding: String.Encoding.utf8.rawValue]) { attributed,attrs,error
          guard nil == error else {
            // handle the error
            return
          }
          if let attributedHtml = attributed {
            // do something with the text of the result
            print(attributedHtml.string)
          }
        }
    }

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

As you can see I literally copied your code straight into my ContentView file. Please will you give me guidance on what I am doing wrong...



What I want to do is extract/parse selected data from an HTML document in my Documents folder on my Mac to either a textfield or textEditor. Is this possible using your code? Can you give me some guidance please?]]></description>
			<content:encoded><![CDATA[<p>Hello Stephen, </p>
<p>Thank you for your post &#8211; and hopefully this will assist me with a project I am working on. I would like to implement this in a SwiftUI view, but when I copy the code you posted I get a series of errors. </p>
<p>Here is my code: (ContentView.swiftui)</p>
<p>import SwiftUI<br />
import WebKit</p>
<p>struct ContentView: View { [error build: Function declares an opaque return type, but has no return statements in its body from which to infer an underlying type]</p>
<p>    var body: some View {</p>
<p>        htmlContent = &#8220;The text I needed&#8221; [error build: Cannot find &#8216;htmlContent&#8217; in scope]</p>
<p>        guard let data: Data = htmlContent.data(using: .utf8) [1. error build: Cannot find &#8216;htmlContent&#8217; in scope<br />
                                                                                                  2. error build: Expected &#8216;else&#8217; after &#8216;guard&#8217; condition]<br />
          // handle the error<br />
          return [error build: Non-void function should return a value]</p>
<p>        }</p>
<p>[errors for the section below:<br />
1. error build: Expected &#8216;{&#8216; in body of function declaration<br />
2. error build: Expected &#8216;func&#8217; keyword in instance method declaration<br />
3. error build: Expected &#8216;(&#8216; in argument list of function declaration<br />
4. error build: Expected &#8216;(&#8216; in argument list of function declaration<br />
5. error build: Expected declaration In declaration of &#8216;ContentView&#8217;</p>
<p>        NSAttributedString.loadFromHTML(data: data, options: [.characterEncoding: String.Encoding.utf8.rawValue]) { attributed,attrs,error<br />
          guard nil == error else {<br />
            // handle the error<br />
            return<br />
          }<br />
          if let attributedHtml = attributed {<br />
            // do something with the text of the result<br />
            print(attributedHtml.string)<br />
          }<br />
        }<br />
    }</p>
<p>struct ContentView_Previews: PreviewProvider {<br />
    static var previews: some View {<br />
        ContentView()<br />
    }<br />
}</p>
<p>As you can see I literally copied your code straight into my ContentView file. Please will you give me guidance on what I am doing wrong&#8230;</p>
<p>What I want to do is extract/parse selected data from an HTML document in my Documents folder on my Mac to either a textfield or textEditor. Is this possible using your code? Can you give me some guidance please?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on OAuth2 &#8211; Get a Token Via REST Google Sign In by NB		</title>
		<link>https://csdcorp.com/blog/coding/oauth2-get-a-token-via-rest-google-sign-in/#comment-658</link>

		<dc:creator><![CDATA[NB]]></dc:creator>
		<pubDate>Sat, 07 May 2022 07:40:51 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=572#comment-658</guid>

					<description><![CDATA[bro ... I feel like I owe you money for this :)
Thank you so much !!!]]></description>
			<content:encoded><![CDATA[<p>bro &#8230; I feel like I owe you money for this 🙂<br />
Thank you so much !!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on GOLANG unexpected directory layout error by Anonymous		</title>
		<link>https://csdcorp.com/blog/coding/golang-unexpected-directory-layout-error/#comment-370</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Fri, 28 Jan 2022 11:57:27 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=612#comment-370</guid>

					<description><![CDATA[Awesome solution. I encountered the same problem.]]></description>
			<content:encoded><![CDATA[<p>Awesome solution. I encountered the same problem.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on DST Dart and DateTime &#038; How to Unit Test by Michael		</title>
		<link>https://csdcorp.com/blog/coding/dst-dart-and-datetime/#comment-274</link>

		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Fri, 10 Dec 2021 10:18:15 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=484#comment-274</guid>

					<description><![CDATA[There&#039;s way more easy way: use DateTime.utc(...) instead.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s way more easy way: use DateTime.utc(&#8230;) instead.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Flutter plugin iOS tests in Swift by Alili		</title>
		<link>https://csdcorp.com/blog/coding/flutter-plugin-ios-tests-in-swift/#comment-241</link>

		<dc:creator><![CDATA[Alili]]></dc:creator>
		<pubDate>Mon, 27 Sep 2021 07:34:45 +0000</pubDate>
		<guid isPermaLink="false">https://csdcorp.com/?p=192#comment-241</guid>

					<description><![CDATA[Hi, this post is very helpful, but I have some questions during study. How did you implement  findById( id, maxCount, result)? and How did you call flutter method using Swift?

I hope to get your reply.

Thank you!]]></description>
			<content:encoded><![CDATA[<p>Hi, this post is very helpful, but I have some questions during study. How did you implement  findById( id, maxCount, result)? and How did you call flutter method using Swift?</p>
<p>I hope to get your reply.</p>
<p>Thank you!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: csdcorp.com @ 2026-10-25 00:02:08 by W3 Total Cache
-->