Here's how you can create a two-color view in Swift with the colors of the Turkish flag:
main.swift1419 chars38 lines
This will create a view with a red background on the left half of the view and a white background on the right half of the view, with a crescent and star in the center. This matches the colors and design of the Turkish flag.
gistlibby LogSnag