Let $K$ be an uncountable compact set in $\mathbb{C}$ such that zero is a limit point of $\partial K$, and such that $|k|\leq 1$ for all $k\in K$. I would like to find an analytic function $f:U\to\mathbb{C}$, where $U$ is some open connected subset of $\mathbb{C}$ such that $K\subseteq U$, satisfying the following properties:
(1) $|f(k)|<1$ for infinitely many $k\in \partial K$; and
(2) $|f(k)|=1$ for infinitely many $k\in \partial K$.
I'm not a complex analyst, so I have no earthly idea how to make this rigorous. But it seems to me that we can divide this up into two cases. It could be that $K$ has infinitely many extreme points, in which case we could push those out to the unit circle without bothering the points near zero, nor pushing other points in $K$ further than the unit disk. Or, it could be that $K$ has finitely many extreme points, in which case we should be able to find a smooth part of the boundary that we could push out to the unit circle, again without disturbing the points near zero nor pushing other points beyond the unit disk.
Has anything like this been studied before? I would appreciate some tips, or an answer if one is available. Thank you.
EDIT: It might also be nice--although not necessary--to get this condition too:
(3) $|f(k)|\leq 1$ for all $k\in K$.