If you buy 2 shares at $10, and they grow to $100 each, and after holding for a year or more then you transfer one share to a DAF, you get a tax deduction for the $100 you donated.
If you then sell the other share, you'd pay taxes on the $90 of appreciation.