Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Peak Framework

Luke Stringer
February 03, 2019

The Peak Framework

The Peak Framework is a collection of open source, 100% Swift microframeworks providing a standardised approach to building iOS apps. This talk will cover the how and why the mobile team at 3Squared created the Peak Framework, their progress in updating legacy projects to use more and more Swift, and a demo of how the frameworks can be used in building a simple app talking to a web api.

Luke Stringer

February 03, 2019
Tweet

More Decks by Luke Stringer

Other Decks in Technology

Transcript

  1. The Peak Framework

    View Slide

  2. Sam Oakley
    @Sam_Oakley
    Luke Stringer
    @lukestringer90

    View Slide

  3. Powerful business applications to support the
    operations of today’s modern rail operators.

    View Slide

  4. View Slide

  5. NSManchester February 2017

    View Slide

  6. EDS MCA IFM TM
    PAM SE MTISA ERTMS
    You Docs Forms Hub

    View Slide

  7. PAM
    TM
    IFM
    You
    ERTMS
    SE
    EDS
    MCA
    Docs
    MTISA
    Forms
    Hub 1%
    1%
    5%
    8%
    22%
    33%
    85%
    85%
    92%
    97%
    99%
    100%
    % Swift % Obj-C
    25/09/2017
    20/11/2018
    20/10/2016
    05/03/2018
    15/07/2016
    03/11/2016
    15/09/2014
    17/04/2014
    06/08/2013
    08/09/2015
    18/09/2013
    15/07/2013

    View Slide

  8. PAM
    TM
    IFM
    You
    ERTMS
    SE
    EDS
    MCA
    Docs
    MTISA
    Forms
    Hub 1%
    1%
    5%
    8%
    22%
    33%
    85%
    85%
    92%
    97%
    99%
    100%
    % Swift % Obj-C
    15,282
    28,408
    54,387
    16,738
    35,072
    37,883
    8,681
    9,168
    7,750
    20,597
    14,724
    17,974
    Number of Lines
    25/09/2017
    20/11/2018
    20/10/2016
    05/03/2018
    15/07/2016
    03/11/2016
    15/09/2014
    17/04/2014
    06/08/2013
    08/09/2015
    18/09/2013
    15/07/2013

    View Slide

  9. Standardisation &
    Reusability

    View Slide

  10. View Slide

  11. Open Source

    View Slide

  12. THR?

    View Slide

  13. “Peak” Framework
    • Peak as a verb - “at the highest level, or the
    maximum”
    • Peak as a noun - reference to the Peak District
    • Peak as a short identifier - a prefix for our micro-
    frameworks

    View Slide

  14. View Slide


  15. SE-0235 - Add Result to the Standard Library

    View Slide

  16. Demo

    View Slide

  17. https://github.com/3squared/PeakOperation
    https://github.com/3squared/PeakNetwork
    https://github.com/3squared/PeakResult
    https://github.com/3squared/CoreData

    View Slide

  18. Thank You
    lukestringer90 & Sam_Oakley
    https://github.com/3squared

    View Slide