· Development  · 1 min read

Swift How-To's

Some quick tips to develop swifter!

    // Multiline text preserving newlines
    let publicPEM = """
    -----BEGIN PUBLIC KEY-----
    MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlmhaYmZ2/VOPDPjyo1uv
    YaN++WeuxVAgXDyxwlU25LEywZfRJPGwoOGvM9NARHxj2haem/iA1sl0MqhsLo/N
    Io6M7rmalP2CtTA19tfUAfHuISJDOZ0fERlD4N6ExHfbVCVzWzVhNrpFxvEic+i0
    lyqhs1vk6aqLzPR6xjz+kRtuHvKudoyVXsD03IUa4hPc0Y16REeLYsgPUNGvHT8p
    BsisCOh2GIx7t0sZNWIMB3C2hHNjhQ5dPjhZhlBHYi2NJkrvMz/sjkcNu4XlDgr3
    qs+YbLAGZ4qwAiNRJTqLw6gAOrJeJAu1HhQGihBIQaW6wWNR+uQtvCbqXeSxSTE2
    SQIDAQAB
    -----END PUBLIC KEY-----
    """
    // Multiline text not preserving newlines
    let publicPEM = """
    Are we \
    on the same line?
    """
Xcode Version 16.1
Swift Version 5.10
iOS Version 18.0
Share:

Related Posts

View All Posts »

Links

Useful links and information other people wrote so I don't have to.

Read more