Readme and better Markdown

This commit is contained in:
Thomas Ricouard 2022-12-20 14:35:47 +01:00
parent 22281aa7eb
commit 029b625acd
3 changed files with 18 additions and 3 deletions

View file

@ -16,7 +16,9 @@ extension HTMLString {
public var asSafeAttributedString: AttributedString {
do {
return try AttributedString(markdown: asMarkdown)
let options = AttributedString.MarkdownParsingOptions(allowsExtendedAttributes: true,
interpretedSyntax: .inlineOnlyPreservingWhitespace)
return try AttributedString(markdown: asMarkdown, options: options)
} catch {
return AttributedString(stringLiteral: self)
}

View file

@ -2,7 +2,7 @@ import Foundation
public protocol AnyStatus {
var id: String { get }
var content: String { get }
var content: HTMLString { get }
var account: Account { get }
var createdAt: String { get }
var mediaAttachments: [MediaAttachement] { get }

View file

@ -1,4 +1,17 @@
# IceCubesApp
A SwiftUI Mastodon client
IceCubesApp is an open source application for accessing the decentralized social network Mastodon! It's built entirely in SwiftUI, making it fast, lightweight, and easy to use.
You can connect to any Mastodon instance and browse your timeline, interact with other users, and post updates and media.
The project is split into different Swift Packages to make it easier to manage and maintain the codebase. Each package is focused on a specific aspect of the application, such as the UI, network communication, or data models. This modular approach allows for easier collaboration and ensures that the code is organized and easy to understand.
It's a great starting point for learning SwiftUI. The app covers many of the basic concepts of SwiftUI, such as building layouts, working with data, and handling user interaction. By exploring the code, you can gain a solid understanding of how to use SwiftUI in your daily life. Plus, the open source nature of IceCubesApp means that you can see how real-world applications are built and get a sense of best practices for using SwiftUI.
The architecture is straighforward MVVM for most parts, no redux on this one ;)
Please note that IceCubesApp is currently in an early stage of development and as such, there are many features that are still missing. While the app is functional and can be used to browse and interact with Mastodon, there are still many features that are planned for the future.
Thanks!
![Icon](IceCubesApp/Assets.xcassets/AppIcon.appiconset/icon.png?)