Denken
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    1
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Ptt-iOS 開發文件 ###### 維護人: Denken ###### tags: `Ptt App` ###### 位置: [主目錄](https://hackmd.io/@twbbs/Root)/iOS/ ## [置頂] 專案文件 - Code https://github.com/Ptt-official-app/Ptt-iOS - API 文件 - [go-pttbbs](https://github.com/Ptt-official-app/go-pttbbs):[Swagger](https://api.devptt.dev:5000/) - [go-bbs](https://github.com/Ptt-official-app/go-bbs):[Google Docs](https://docs.google.com/document/d/18DsZOyrlr5BIl2kKxZH7P2QxFLG02xL2SO0PzVHVY3k/) - [舊版文件](https://webptt.azurewebsites.net/swagger/index.html) - Zeplin 設計稿 https://app.zeplin.io/project/5d7346333838ff497428d1c5 ## 加入方式 由於開發階段的內部討論與變動較快,目前會需要你主動要求加入。可以分成以下階段: 1. 在 [g0v slack](https://g0v-tw.slack.com) 找負責人「denkeni」,會協助你加入 Ptt-iOS 的 Telegram 群組。 2. 協助你加入 Zeplin、TestFlight、GitHub 等相關文件程式碼。 3. 協助你加入 Ptt 官方 app 籌備小組的 Telegram 主群組。 這之後就有足夠資訊,可以跟進專案近況。 ## 參與功能開發 有兩種參與模式: - 參與每週線上大會議,主動跟進並提出想做的功能 - 認領負責人不定期釋出的功能開發需求項目(會放在 [未認領的 GitHub Issues](https://github.com/Ptt-official-app/Ptt-iOS/issues?q=is:open+is:issue+no:assignee) 與公告在 Ptt-iOS 的 Telegram 群組) 參與流程: 1. 建議在 Ptt-iOS 的 Telegram 群組先提出討論或舉手認領後,記錄在 GitHub Issues 以免重工。 3. 負責人會再協助給予 GitHub 的 Write 權限,開發階段可以隨時 push 上自己的 branch。 4. 完成時再發 pull request,由其他成員協助 review。 幾點提醒: - 廣泛接受原生方式(layoutSubviews、Auto Layout、Storyboard、SwiftUI)來刻畫面。 - 採用 MVC + Coordinator 架構,但並不強制功能開發組學習或實作 coordinator;架構組負責 coordinator 與流程整合。 - 推薦遵循的 [commit message guidelines](https://chris.beams.io/posts/git-commit/),要求首行的首字大寫且行末無句點。 P.S. 預計在上架 App Store 後,將會對外公開專案程式碼以及 Ptt-iOS 的 Telegram 群組,並轉為一般開源專案的協作模式([Creating a pull request from a fork](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork))。 # 專案初始化 * Clone or Download ZIP of the project on GitHub. * Build with Xcode, and make sure you've installed [SwiftGen](https://github.com/SwiftGen/SwiftGen/tree/stable?tab=readme-ov-file#installation) and [Swiftlint](https://github.com/realm/SwiftLint). * If you encounter the error shown below when building, make sure there are no spaces in the path of the project folder. ![PhaseScriptExecutionfailed](https://hackmd.io/_uploads/ryDYlgTlC.png) from: https://github.com/Ptt-official-app/Ptt-iOS/pull/92 # 專案討論文件 ## 架構:MVC + C (Coordinator) https://github.com/Ptt-official-app/Ptt-iOS/pull/12 ## DEVELOP 功能開發中 部分開發中功能、尚未排入初版的功能,已經用 `#if DEVELOP` 區隔出來:功能介面保留於 DEBUG 模式,但不會在 RELEASE 版本顯示出來。 如需預覽 RELEASE 版本,可以到 Xcode 專案設定 - Build Settings - Swift Compiler - Custom Flags/Active Compilation Conditions - Debug 暫時移除 DEVELOP。 ### 2020-12-23 會議記錄 出席人員:Denken, Marcus, 又鋼, Anson, Jacqueline, Teemo. #### 議程 - 討論分享對 coordinator pattern 的想法或經驗 - 討論分享對於這個 coordinator 實作版本的意見 - 最後決策 #### 決策選項 1. 接受 merge 此 PR,這會使得後續功能開發也需實作此 coordinator 的規格。由各位夥伴提出的調整建議,則在 merge 之後再請實作者補上。 2. 暫不 merge 此 PR。由於之後預期將會展開更多功能開發,這會使得實作者後續若希望繼續推動 coordinator pattern,可能要考慮另拆成小型 PR 來分別完善或逐步試行。 希望盡量以共識決方式。 #### 會議經過 - Anson 與 Marcus 的 coordinator 使用經驗,也是有 base coordinator 來 subclass - 多數人傾向決策 2 原因包含比較不影響開發 or 應該要小範圍試行 - 少數人支持決策 1 主要考量拖太久 merge 不易 #### 最後決策:1 - 切割出架構組(請 Anson 加入協助)與功能開發組 - 功能開發組:可沿用既有 UIKit 的 push/present 來開發,未來亦不強制使用 coordinator(以便不影響開發)。 - 架構組:須負責未來後續整合功能開發組的頁面流程,以及補足 review 過程中提出的建議。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully