This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
struct StringConstants { | |
static let bullet1 = "This is a small string." | |
static let bullet2 = "This is more of medium string with a few more words etc." | |
static let bullet3 = "Well this is certainly a longer string, with many more words than either of the previuos two strings." | |
} | |
typealias ParagraphData = (bullet: String, paragraph: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
struct StringConstants { | |
static let bullet = "This is a long string, which should make the label wrap to multiple lines, showing us that the bullet point has rendered correctly with a sufficient indent on subsequent lines of text." | |
} | |
class MyViewController : UIViewController { | |
private let label = UILabel() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class SpiralViewController : UIViewController { | |
var spiralView: SpiralView! | |
override func loadView() { | |
let view = SpiralView() | |
spiralView = view | |
view.backgroundColor = .white | |
self.view = view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftUI | |
@MainActor | |
@Observable | |
public final class OrientationMonitor { | |
public enum RotationDirection: String { | |
case anticlockwise | |
case clockwise |