Skip to content

Instantly share code, notes, and snippets.

import { DiscussionEmbed } from 'disqus-react'
import React from 'react'
function DisqusComments({post}) {
const pageUrl = typeof window !== 'undefined'? window.location.href : ""
const disqusConfig = {
url: pageUrl,
identifier: post.slug,
title: post.title
}
@higracehuang
higracehuang / ContentView.swift
Last active December 12, 2022 21:41
Prompt to review (iOS)
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
Button("Click me 10 times", action: {
@higracehuang
higracehuang / ContentView.swift
Last active December 12, 2022 20:41
Review Link for both iOS and macOS
import SwiftUI
struct ContentView: View {
// Replace with the id below with your app's
let writeReviewURL = URL(string: "https://apps.apple.com/us/app/twitter/id333903271?action=write-review")
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)