swiftcosmicmind

Material TextView via Storyboard?


Is there a way to implement the material TextView via the storyboard? The example only shows via programmatically. Please help?


Solution

  • The tricky part about using a TextView in storyboards with the Material Text class that does pattern detection is the instantiation part. Storyboards take care of the initialization for you, which makes it difficult to update the textContainer layer, as it needs to be passed to the TextView when initialized. I am looking into this to see if there is a solution.