Short answer
Taoism is not generally described as having a doctrine against LGBTQ people. The foundational texts, the Daodejing and the Zhuangzi, say nothing on the topic. Taoism also has no single central authority that issues official positions, so attitudes vary by teacher, lineage, country and era. Anyone claiming one “Taoist view” is simplifying.
What the core texts say
The Daodejing focuses on the Dao, humility, non-forcing action and rulers who govern lightly. It does not lay out rules about sexual orientation or gender identity. The Zhuangzi is playful and skeptical about fixed social categories, which some modern readers find welcoming, though it does not discuss the subject directly. Reading modern ideas into either text should be done carefully. For an overview of the main teachings, see what are the core teachings of Taoism.
Yin and yang
People sometimes cite yin and yang to argue about gender. In traditional Chinese thought, yin and yang describe complementary, changing aspects of everything, including weather, seasons and health, not just men and women. Some writers use the idea to argue for a binary, others to argue for fluidity, since each contains a seed of the other. Neither reading is part of a binding Taoist rule. The symbol itself is discussed in what does yin represent.
Practice and sexuality
Some religious Taoist traditions developed practices of inner alchemy, breath cultivation and, in certain schools, sexual cultivation texts. Most of these were written with a heterosexual married couple or an individual practitioner in mind, which reflects their time and place rather than a stated ban on anything. Modern practitioners interpret them in different ways. Monastic Taoists, like monastics elsewhere, often practice celibacy.
Folk religion and the rabbit god
Chinese popular religion, which overlaps with Taoism, includes Tu’er Shen, the “Rabbit God,” a deity in some Fujian-region traditions who is said to oversee love and affection between men. A temple dedicated to him has operated in Taiwan, and some LGBTQ visitors go there to ask for blessings. He is a folk figure rather than a core Taoist deity, so he shows what some communities do rather than what Taoism teaches.
Modern Taoist communities differ
Social attitudes in Chinese-speaking societies are shaped by many things, including Confucian family values, law, modernization and local culture. Some Taoist teachers and organizations in the West and in Taiwan have been openly welcoming. Others, particularly in conservative communities, hold traditional views about marriage and family. Because there is no pope-like authority, both can be found.
For a related look at how the question is framed, see Is Taoism LGBTQ friendly? and Is Confucianism against homosexuality?
Taoism compared with other traditions
Compared with religions that have formal teaching bodies and written moral codes on sexuality, Taoism has fewer explicit statements to point to. That is why attitudes within it depend on local culture and individual teachers. If you are asking for personal reasons, the best course is to talk with a teacher or community and see how they respond rather than relying on a general claim about the whole tradition.