teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2020/06/15 20:37

投稿

hoshi-takanori
hoshi-takanori

スコア7903

answer CHANGED
@@ -4,4 +4,9 @@
4
4
  ```diff
5
5
  - Circle().trim(from: 0, to: countDownTimer.counter)
6
6
  + Circle().trim(from: 0, to: countDownTimer.counter / 10)
7
- ```
7
+ ```
8
+
9
+ ---
10
+
11
+ ちなみに、trim を選んで副ボタンクリックして Show Quick Help するとこんなのが出てきて、from と to のデフォルト値がそれぞれ 0, 1 なのできっと 0 〜 1 で指定するんだろうと判断しましたが、はっきりとは書いてないですね。また、[Web 上のリファレンス](https://developer.apple.com/documentation/swiftui/circle/3363482-trim) は情報が少なすぎ…。
12
+ ![イメージ説明](f097498edd1c700b47741ff2155548f8.png)