This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
var text = "long text" | |
@State private var lines = 3.0 | |
var body: some View { | |
ScrollView { | |
ReadMore(lineLimit: Int(lines)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
## | |
## This script converts an IPS crash report (.ips) to the legacy crash report format. | |
## | |
## The .ips file (JSON) is read from STDIN and the legacy crash report is written to | |
## STDOUT. | |
## | |
use strict; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
if ! test -x "`which ldid`"; then | |
echo "Cannot find ldid, you may install it via Homebrew." | |
exit 1 | |
fi | |
if [ ! -d "$(xcode-select -p)" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
// This is an example of how to keep the ObservableObjects near the root of the view hierarchy | |
// and dispatch actions from any view easily without having to pass too many things down. This | |
// helps keep the views simple and makes previews a lot easier. | |
// | |
// This is inspired from what Apple is doing with `DismissAction`, `OpenURLAction`, `OpenWindowAction`, etc... | |
// The following is a very simple example with only two view-levels and we could pass closures directly, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes for the scripts of the Anki Wanikani Ultimate 2 deck, feel free to use them how you like. | |
Features: | |
- Automatic Romaji to Kana conversion in reading input using WanaKana. | |
- Multiple input support (separated by a space for readings and by a comma for meanings, | |
eg: "axe, loaf bread counter" or "あめ あま"). | |
- Shows each right and wrong answer from your input. | |
- Automatic resizing of characters for small screens. | |
- Reordered the Back template of the cards to be more similar to the Wanikani site (reading related things come first in reading cards, | |
same for meaning). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExampleWindowReaderApp.swift | |
// Shared | |
// | |
// Created by Matthaus Woolard on 21/12/2020. | |
// | |
import SwiftUI | |
@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app-store-connect": { | |
"101 TestFlight": [ | |
"https://devstreaming-cdn.apple.com/videos/tutorials/TestFlight_App_Store_Connect_2018/TestFlight_App_Store_Connect_2018_hd.mp4", | |
"https://devstreaming-cdn.apple.com/videos/tutorials/TestFlight_App_Store_Connect_2018/TestFlight_App_Store_Connect_2018_sd.mp4" | |
], | |
"102 App Analytics Overview": [ | |
"https://devstreaming-cdn.apple.com/videos/tutorials/Analytics_Overview_Pt2/Analytics_Overview_hd.mp4", | |
"https://devstreaming-cdn.apple.com/videos/tutorials/Analytics_Overview_Pt2/Analytics_Overview_sd.mp4" | |
], |
NewerOlder