Skip to content

Instantly share code, notes, and snippets.

View vistar941's full-sized avatar

ビスター(Vistar) vistar941

View GitHub Profile
@vistar941
vistar941 / SKILL.md
Created June 18, 2026 03:59 — forked from k16shikano/SKILL.md
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

# Owning binary : TextComposerRuntime
# Status : NEW in iOS 27 (not in 26.5.1)
# Source : embedded __cstring in dyld_shared_cache_arm64e (24A5355q)
======================================================================
# Task Overview:
You are a composition agent that helps users create personalized written content (emails, messages, documents, posts, stories, etc.)
As an Assistant, you must:
1. Analyze the request to determine if you have sufficient information
@vistar941
vistar941 / ViewController.swift
Last active June 2, 2026 15:38
Work around UIButton limitations using only public APIs.
import UIKit
final class MenuControl: UIControl {
private let label: UILabel = {
let label = UILabel()
label.text = "Public API-Only Menu"
label.font = .boldSystemFont(ofSize: 15)
label.textAlignment = .center
label.textColor = .white
import SwiftUI
struct CustomScrollTargetBehavior: ScrollTargetBehavior {
func properties(context: PropertiesContext) -> Properties {
var properties = ScrollTargetBehaviorProperties.init()
properties.limitsScrolls = false
return properties
}
@vistar941
vistar941 / !swiftui-reflection-dump.md
Created November 24, 2025 16:17 — forked from ole/!swiftui-reflection-dump.md
A dump of the SwiftUI.framework binary for the iOS simulator (as of Xcode 12.0 beta 2) using the swift-reflection-dump tool.

A dump of the SwiftUI.framework binary for the iOS simulator (as of Xcode 12.0 beta 2) using the swift-reflection-dump tool.

Note: I used a Swift 5.3 compiler build from a few weeks ago that I had laying around. Because of ABI stability, I don't think the swift-reflection-dump version has to match the compiler version that was used to build the binary, but I'm not 100% sure.

@vistar941
vistar941 / FullSheet.Swift
Created August 14, 2025 13:13
FullDetentSheet
import SwiftUI
struct FullSheet: View {
@State private var isPresented: Bool = false
@Namespace private var namespace
var body: some View {
TabView {
Tab("Home", systemImage: "house") {
NavigationStack {
list
@vistar941
vistar941 / BackdropBlurView.swift
Last active July 22, 2025 20:07 — forked from Rukh/BackdropBlurView.swift
UIVisualEffectView with any blur radius in SwiftUI
//
// BackdropBlurView.swift
//
// Created by Dmitry Gulyagin on 20.09.2022.
//
import SwiftUI
/// A View which content reflects all behind it
struct BackdropView: UIViewRepresentable {
@vistar941
vistar941 / AllowsSwipeBack.Swift
Created May 16, 2025 17:59
This should be declared only once in the root view of the NavigationStack.
import SwiftUI
extension View {
/// Allows swipe back when navigation bar is hidden.
/// This modifier should be applied to a view that resides within a NavigationStack.
/// - Returns: A view that allows swipe back when navigation bar is hidden.
public func allowsSwipeBackWhenNavBarHidden() -> some View {
modifier( AllowsSwipeBackWhenNavBarHiddenModifier() )
}
}
@vistar941
vistar941 / MarqueeLabel-Minimal.swift
Created May 13, 2025 15:19
MarqueeLabel Please be fully aware that these use Private APIs.
let label = UILabel()
label.text = "Swift is a modern, intuitive programming language crafted for all Apple platforms."
label.setValue(true, forKey: "marqueeEnabled")
label.setValue(true, forKey: "marqueeRunning")
label.setValue(0, forKey: "marqueeRepeatCount")
@vistar941
vistar941 / Example.Swift
Last active June 22, 2025 18:54
UIBlurEffectStyle一覧
// Example
// Custom extension to add a blur effect style with raw value 1100
extension UIBlurEffect.Style {
static var systemChromeBackground: UIBlurEffect.Style {
return UIBlurEffect.Style(rawValue: 1100) ?? .dark
}
}