vtourraine / AcknowList

Acknowledgements screen displaying a list of licenses, for example from CocoaPods and Swift Package Manager dependencies.
MIT License
807 stars 60 forks source link

feat: load default acknow list when init AcknowListSwiftUIView #126

Open tisfeng opened 6 days ago

tisfeng commented 6 days ago

Refer https://github.com/vtourraine/AcknowList/issues/124

    public init(acknowList: AcknowList? = AcknowParser.defaultAcknowList()) {
        self.init(
            acknowledgements: acknowList?.acknowledgements ?? [],
            headerText: acknowList?.headerText,
            footerText: acknowList?.footerText)
    }
tisfeng commented 6 days ago

I didn't change a lot of the code, there were some code changes that were caused by IDE auto-formatting, so feel free to change that back if it matters to you.