Suppose $f$ is an analytic function on $|z|\leq 1$ with $f(0)=0$, and let $|f(z)|$ have a maximum for $|z|\leq 1$ at 1, show that $f'(1)\neq 0$ unless $f$ is a constant.
Remarks:
1, At first attempt, I tried to construct some function related to $f$, and then try to use Schwarz's lemma, but I got stuck; now I guess there exists an direction from $1$ such that the modulus locally increase.
2, To be precise, when applying Schwarz's lemma to $\frac{f}{|f(1)|}$, I got stuck because 1 is not in the open disk.

